Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

490 lines
16 KiB

8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # ESPurna change log
  2. The format is based on [Keep a Changelog](http://keepachangelog.com/)
  3. and this project adheres to [Semantic Versioning](http://semver.org/).
  4. ## [1.9.2] 2017-08-31
  5. ### Added
  6. - System stability check (turns off everything except WIFI AP, OTA and telnet if there is a boot crash loop) (#196)
  7. - Telnet support (enabled by default only on AP interface)
  8. - Option to set WiFi gain from web UI
  9. - Option to disable MQTT from web UI
  10. - MQTT autodiscover, with the option to autoconnect if no broker defined
  11. - Home Assistant MQTT autodiscover feature
  12. - List enabled modules in INIT debug info
  13. - Counter module (counts and reports transitions in a digital pin)
  14. ### Changed
  15. - Updated NoFUSS support
  16. - Web UI documentation changes
  17. - Changes in terminal commands
  18. ### Fixed
  19. - Crash in settings saving (#190) and fixed UDP debug conditional build clauses
  20. ## [1.9.1] 2017-08-27
  21. ### Added
  22. - Support to build without NTP support
  23. - Added current time, uptime, free heap, firmware size and free space to web interface
  24. ### Changed
  25. - Changed settings keys for Itead Sonoff RF Bridge
  26. - Disable Domoticz by default
  27. ### Fixed
  28. - Fixed build flags for DHT and DS18B20 in platformio.ini file
  29. - Fixed Itead Sonoff B1 by updating the my9291 library
  30. - Fixed light status on boot (#157)
  31. - Fixed CSS bug cause by a bad merge
  32. ## [1.9.0] 2017-08-25
  33. ### Added
  34. - Support for IteadStudio BN-SZ01 Ceiling Light (#132)
  35. - Support for IteadStudio Sonoff RF Bridge (#173)
  36. - Support for IteadStudio Sonoff 4CH Pro (#174)
  37. - Support for IteadStudio Sonoff B1
  38. - Support for IteadStudio Sonoff LED
  39. - Support for IteadStudio Sonoff T1 wall switches (1, 2 and 4 channels)
  40. - Support for WiOn 50055 WiFi Wall Outlet & Tap
  41. - Support for EXS WiFi Relay v3.1 (and other future latching relay boards) (#152)
  42. - TLS/SSL support for MQTT (caution: eats a lot of memory, do not use with web interface) (#64)
  43. - Add support for delayed ON/OFF switches (#123, #161, #188)
  44. - Added ON and OFF actions for button events (previously only TOGGLE available) (#182)
  45. - Sliders in web interface to control dimmer channels independently (also for brightness)
  46. - Debug info about MQTT disconnect reason
  47. ### Changed
  48. - MQTT setters ending with "/set" by default
  49. - Using DOUT flash mode on all devices (#167)
  50. - Longer timeout for WiFi connection (better chances for Sonoff Basic to connect)
  51. - Changed MQTT topics for light devices (COLOR, BRIGHTNESS, MIRED, KELVIN, CHANNEL) (#144)
  52. - Changed the way light devices are defined (see LIGHT_PROVIDER_DIMMER)
  53. - Allow to disable color picker in web interface
  54. - API returns processed values for HLW8012 sensor (not raw values anymore) (#176)
  55. - Major refactoring of settings
  56. ### Fixed
  57. - Discard MQTT messages with empty payload (#185)
  58. - Wifi connection issue (https://github.com/esp8266/Arduino/issues/2186)
  59. - Alexa connection issue
  60. ## [1.8.3] 2017-07-23
  61. ### Added
  62. - Issue #85 and #90. Option to report MQTT messages with JSON payloads
  63. - Issue #170. Updated DebouceEvent library to allow disabling double click and get faster click responses
  64. - Using memory layout with no SPIFFS for 1Mb devices
  65. ### Changed
  66. - Rename settings s/POW/HLW8012/
  67. - Return times in ISO8601 format
  68. ### Fixed
  69. - Issue #168. Added H801 to arduino.h file
  70. - Issue #171. Fix corrupted will message
  71. ## [1.8.2] 2017-07-16
  72. ### Added
  73. - InfluxDB support via HTTP API
  74. - Added custom reset reason to debug log
  75. - Enable WIFI debug on hardware reset (button long click)
  76. ### Changed
  77. - Issue #159. Allow decimals in relay pulse interval
  78. - Updated HLW8012 library
  79. ### Fixed
  80. - Issue #148. Fix bug in conditional compilation check
  81. - Issue #149. Using different pulse counters for each relay (thanks to Lauris Ieviņš)
  82. - Issue #141. Limit relay pulse interval to 60s
  83. - Fixed units for apparent & reactive power (thanks to Lauris Ieviņš)
  84. - Fixed mDNS setup when using custom HTTP port for web interface
  85. ## [1.8.1] 2017-05-22
  86. ### Fixed
  87. - Issue #140. Fix no relay control bug in Sonoff Dual
  88. ## [1.8.0] 2017-05-21
  89. ### Added
  90. - Added gamma correction to RGB strips. Thanks to Chris Ward.
  91. - Added support for Huacanxing H801 WiFi LED Controller. Thanks to Minh Phuong Ly.
  92. - Issue #138. Added NTP configuration from web interface
  93. - Issue #128. Report color when booting and in heartbeat stream.
  94. - Issue #126. Show NTP status in web interface.
  95. - Added filter limits on POW readings.
  96. - Added color temperature to RGB calculation. Thanks to Sacha Telgenhof.
  97. - Issue #120. Added relay flood protection. Thanks to Izik Dubnov.
  98. - Support for "#RRGGBB", "RRR,GGG,BBB" and "WWW" color formats.
  99. - Issue #117. Added build date & time to web interface.
  100. ### Fixed
  101. - Fix MQTT_RELAY board conifugration. Thanks to Denis French.
  102. - Issue #125. Fix bug in relay status reading from EEPROM
  103. - Issue #127. Fix button action in DUAL.
  104. - Fix bug in Sonoff POW current reading. Thanks to Emmanuel Tatto.
  105. - Minimizing my9291 flickering when booting.
  106. - Fix conditional flags in hardware.ino to support Arduino IDE.
  107. ## [1.7.1] 2017-03-28
  108. ### Fixed
  109. - Issue #113. Fix restoring color from EEPROM upon reboot
  110. - Issue #113. Fix bug in API handlers
  111. ## [1.7.0] 2017-03-27
  112. ### Added
  113. - Web interface embedded in firmware image by default
  114. - Upload firmware image from web interface
  115. - Added API entry point to change light color
  116. - Added generic analog sensor. Thanks to Francesco Boscarino
  117. - Report RSSI value in debug console and MQTT status messages
  118. - Added support for Magic Home LED Controller
  119. - Added support for ESPurna-H Board (based on HLW8012)
  120. - Added forward compatible code for v2.0
  121. ### Changed
  122. - Added ellipsis (...) in debug messages longer than 80 characters
  123. - Changed topic constants in code
  124. - Prevent the SDK from saving WiFi configuration to flash
  125. ### Fixed
  126. - Issue #113. Fix light bulb state to OFF in library prevented the bulb from turning on
  127. - Issue #58. Added code to handle spurious readings
  128. - Fix bug in HLW8012 calibration current parameter casting to int instead of float
  129. - Issue #115. Removed local declaration of _mqttForward variable. Thanks to Paweł Fiedor
  130. - Fix MQTT will topic. Thanks to Asbjorn Tronhus
  131. ## [1.6.9] 2017-03-12
  132. ### Added
  133. - Two stage read for DS18B20 devices. Thanks to Izik Dubnov.
  134. - Option to report the relay status via MQTT periodically
  135. - Terminal commands to change relay status an light color
  136. - Added debug via UDP (disabled by default)
  137. - Moved debug strings to PROGMEM. ~1.5KByes memory freed
  138. - Avoid broadcasting websocket messages if no clients connected
  139. ### Fixed
  140. - Fixing use after free bug that leads to corrupted auth credentials. Thanks to David Guillen
  141. ## [1.6.8] 2017-03-01
  142. ### Added
  143. - Issue #85. Heartbeat reports now free heap, uptime and VCC every 5 minutes
  144. ### Changed
  145. - Wait two minutes instead of one in AP mode before trying to reconnect to the router
  146. - Issue #92. Debug log enabled by default in Arduino IDE
  147. - Issue #91. Using AsyncMqttClient as default MQTT client again
  148. ### Fixed
  149. - Report data from all sensors via websocket even if no MQTT connection
  150. - Issue #92. Fix unknown reference in Arduino IDE
  151. - Split data.h contents into 1k lines, otherwise Arduino IDE chokes on them
  152. - Discard empty MQTT topic while subscribing
  153. ## [1.6.7] 2017-02-25
  154. ### Added
  155. - Support for OpenLight / AI-Light by AI-Thinker based on MY9291 LED driver
  156. - Issue #87. Factory reset when physical button pressed for >10 seconds
  157. ## [1.6.6] 2017-02-23
  158. ### Fixed
  159. - Issue #82. Fix critical bug on Sonoff Dual
  160. ## [1.6.5] 2017-02-22
  161. ### Added
  162. - Option to backup and restore settings from the web interface
  163. - Footer in the web interface
  164. ### Changed
  165. - Using PubSubClient as MQTT client by default (please read the documentation)
  166. - Double & long clicks do nothing except for the first defined button
  167. ### Fixed
  168. - Issue #79. Fix bug in WiFi led notification & MQTT connectivity (using PubSubClient)
  169. - Issue #73. Fix bug when building without Domoticz support
  170. - Fix Gulp tasks dependencies
  171. ## [1.6.4] 2017-02-20
  172. ### Added
  173. - Option to embed the web interface in the firmware, disabled by default
  174. - Change relay status with a GET request (browser friendly)
  175. - Support for PROGMEM debug messages (only wifi module has been changed)
  176. - Option to disable mDNS, enabled by default
  177. - Show current web server port in debug log
  178. - Issue #75. Link relays to LEDs
  179. - Issue #76. Using http://espurna.local when in AP mode
  180. ### Changed
  181. - Images and favicon is now embedded in the HTML
  182. - Authentication challenge only in /auth request. All static contents are un-authenticated
  183. - HTTP response code when out of websocket slots changed from 423 to 429
  184. ### Fixed
  185. - Memory leak in MQTT connection method
  186. - Wait 60 seconds before retrying to connect when in AP mode
  187. - Issue #24 & #74. Update ESPAsyncTCP and ESPAsyncWebServer to latest GIT version that supports MSS defragmenting
  188. - Issue #73. Fixes for windows machines
  189. ### Removed
  190. - Captive portal removed, mDNS resolution for AP mode too
  191. ## [1.6.3] 2017-02-15
  192. ### Added
  193. - Issue #69. Temperature unit configuration from the web interface
  194. - Issue #55. WebServer port configurable from the web interface, defaults to 80
  195. - Expand network configuration when adding a new network
  196. ### Changed
  197. - Merged web contents except images in a single compressed file for reliability
  198. - Update support for Itead Motor Clockwise/Anticlockwise board
  199. - Scan for strongest network only if more than 1 network configured
  200. ### Fixed
  201. - Issue #71. Added default values for netmask and DNS in web configuration
  202. - Fixed Itead 1CH self-locking/inching board definition
  203. - Fixed PlatformIO environments for ESP8285 boards (4CH and Touch)
  204. ## [1.6.2] 2017-02-10
  205. ### Fixed
  206. - Check if there is an MQTT broker defined before the MQTT_MAX_TRIES check
  207. ## [1.6.1] 2017-02-10
  208. ### Added
  209. - Added support for [Jorge Garcia's Wifi+Relay Board Kit](https://www.tindie.com/products/jorgegarciadev/wifi--relays-board-kit/)
  210. - Reporting current and energy incrementals to a separate counters in Domoticz (thanks to Toni Arte)
  211. - Force WiFi reconnect after MQTT_MAX_TRIES fails trying to connect to MQTT broker
  212. ## [1.6.0] 2017-02-05
  213. ### Added
  214. - Added support for toggle switches
  215. - Allow reset the board via an MQTT message
  216. - Allow reset the board via an RPC (HTTP) message
  217. - Added support for ADC121 I2C for current monitoring (Check [http://tinkerman.cat/power-monitoring-sonoff-th-adc121/](http://tinkerman.cat/power-monitoring-sonoff-th-adc121/))
  218. - Reporting voltage to Domoticz (only HLW8012)
  219. - Map button events to actions (toggle relay, AP mode, reset, pulse mode)
  220. ### Changed
  221. - Reporting energy incrementals (Domoticz, MQTT)
  222. ### Removed
  223. - Removed current monitor bypass when relay is OFF
  224. - Removed energy API entry point
  225. ## [1.5.4] 2017-02-03
  226. ### Fixed
  227. - Issue #50. Fix type bug in window variable when calculating energy for HLW8012 devices (Sonoff POW)
  228. ## [1.5.3] 2017-02-02
  229. ### Fixed
  230. - Issue #50 and #54. Fixed domoticz MQTT message format
  231. ### Added
  232. - Energy calculation and aggregation. API entry points and MQTT messages.
  233. ## [1.5.2] 2017-01-29
  234. ### Fixed
  235. - Fix bug in emon topic payload
  236. ## [1.5.1] 2017-01-28
  237. ### Added
  238. - OpenEnergyMonitor WiFi MQTT Relay / Thermostat support (thanks to Denis French)
  239. ### Fixed
  240. - NTP connection refresh upon wifi connection
  241. - Filesystem image build using local gulp installation
  242. ## [1.5.0] 2017-01-21
  243. ### Added
  244. - Pulse mode. Allows to define a pulse time after which the relay will switch back
  245. - API entry points for sensor data (power, current, voltage, temperature and humidity)
  246. - Export sensor data to Domoticz (power, current, voltage, temperature and humidity)
  247. - Configurable (in code) mapping between buttons and relays
  248. - MQTT messages for button events
  249. - Added support for Itead Studio 1CH inching/self locking smart switch board
  250. - Added support for Jan Goedeke Wifi Relay boards (both NC and NO versions)
  251. - Notify OTA updates to websocket clients, automatically reload page
  252. - Support for pulse mode notification LED and button
  253. - Revert relay state mode on boot (thanks to Minh Phuong Ly)
  254. ### Fixed
  255. - MQTT will topic
  256. - Crash with HLW812 interrupts while trying to create a WIFI connection
  257. - Issue #20 Better inline documentation for Alexa and Domoticz default settings
  258. - Issue #39 Fixed autoconnect issue with static IP (fixed in JustWifi library)
  259. - Issue #41 Added password requirements to initial password change page
  260. ### Changed
  261. - Changed LED pattern for WIFI notifications (shorter pulses)
  262. ## [1.4.4] 2017-01-13
  263. ### Added
  264. - Adding current, voltage, apparent and reactive power reports to Sonoff POW (Web & MQTT)
  265. ### Fixed
  266. - Issue #35 Fixed frequent MQTT connection drops after WIFI reconnect
  267. - Defer wifi disconnection from web interface to allow request to return
  268. ### Changed
  269. - Move all Arduino IDE configuration values to their own file
  270. - Using latest HLW8012 library in interrupt mode
  271. ## [1.4.3] 2017-01-11
  272. ### Fixed
  273. - Issue #6 Using forked Time library to prevent conflict with Arduino Core for ESP8266 time.h file in windows machines
  274. ## [1.4.2] 2017-01-09
  275. ### Added
  276. - Support for inverse logic relays
  277. ### Fixed
  278. - Issue #31. Fixed error in relay identification from MQTT messages
  279. ## [1.4.1] 2017-01-05
  280. ### Added
  281. - Alexa support by default on all devices
  282. - Added support for Wemos D1 Mini board with official Relay Shield
  283. ### Fixed
  284. - Multi-packet websocket frames
  285. ## [1.4.0] 2016-12-31
  286. ### Added
  287. - Domoticz support via MQTT (https://www.domoticz.com/wiki/MQTT)
  288. - Support for static IP connections
  289. ### Fixed
  290. - Issue #16. Enforce minimum password strength in web interface
  291. ### Changed
  292. - Using default client_id provided by AsyncMqttClient
  293. - Allow up to 5 different WIFI networks
  294. ### Removed
  295. - File system version file
  296. ## [1.3.1] 2016-12-31
  297. ### Fixed
  298. - data_dir fix for PlatformIO
  299. ## [1.3.0] 2016-12-30
  300. ### Changed
  301. - Arduino IDE support (changes in the folder structure and documentation)
  302. ## [1.2.0] 2016-12-27
  303. ### Added
  304. - Force password changing if it's the default one
  305. - Added Last-Modified header to static contents
  306. - Added DNS captive portal for AP mode
  307. - Added support for Sonoff 4CH
  308. - Added support for WorkChoice ecoPlug (ECOPLUG). Thanks to David Myers
  309. - Added support for Sonoff SV
  310. - Added support for Sonoff Touch
  311. - Comment out hardware selection in hardware.h if using Arduino IDE
  312. - Added support for MQTT get/set suffixes (/status, /set, ...)
  313. - Added support for LED notifications via MQTT
  314. - Added EEPROM check commands to terminal interface
  315. ### Changed
  316. - Using unreleased AsyncMqttClient with stability improvements
  317. - Better decoupling between MQTT and relays/websockets
  318. - Skipping retained MQTT messages (configurable)
  319. ### Fixed
  320. - Issue #11 Compile error when building sonoff-dual-debug
  321. - Issue #14 MQTT Connection with Username an Password not working
  322. - Issue #17 Moved static variable 'pending' to class variable
  323. ## [1.1.0] 2016-12-06
  324. ### Added
  325. - Added support for DS18B20 temperature sensor. Thanks to Francesco Boscarino
  326. - Added reset command from console
  327. - Added support for multirelay boards like Sonoff DUAL or Electrodragon ESP Relay Board
  328. ### Changed
  329. - Not using espressif8266_stage in default environment
  330. - Relay MQTT topics
  331. - API entry points
  332. ### Removed
  333. - Old non protected API
  334. ## [1.0.3] 2016-11-29
  335. ### Added
  336. - WeMo emulation through the fauxmoESP library (control your switch from Alexa!)
  337. - REST API for relay management
  338. - Better dependency definitions in platformio.ini
  339. - Option to define inverse logic to on-board LED
  340. - Built data folder included in repo
  341. ### Changed
  342. - Using non-interrupt driven mode for HLW8012
  343. - Better documentation
  344. - Small changes to web interface
  345. - Same admin password for web, OTA and WIFI AP mode
  346. ### Fixed
  347. - Prevent fauxmoESP to be compiled by default
  348. ### Removed
  349. - Removed ESPurna board to its own repo
  350. ## [1.0.1] 2016-11-13
  351. ### Added
  352. - Basic authentication and CSRF to websocket requests
  353. ## [1.0.0] 2016-11-13
  354. ### Added
  355. - Using ESPAsyncWebServer (for web & websockets) and AsyncMqttClient
  356. ## [0.9.9] 2016-11-12
  357. ### Added
  358. - Preliminary support for Sonoff POW
  359. - Replace AJAX requests with websockets
  360. - Using sprites for images
  361. - Hostname can be changed
  362. - Added initial relay state mode
  363. - Reconnect and reset buttons on web interface
  364. ### Changed
  365. - Changed long click to reset and double click to AP mode
  366. - Using officially supported platformio.ini file by default
  367. ### Fixed
  368. - Removed unnecessary memory inefficient code
  369. - Temprary fix for Adafruit DHT library (see https://github.com/adafruit/DHT-sensor-library/issues/62)
  370. ## [0.9.8] 2016-10-06
  371. ### Added
  372. - Using PureCMS for the web interface
  373. - Using gulp to build the filesystem files
  374. - Using Embedis for configuration
  375. ### Changed
  376. - Updated JustWifi library
  377. - Web interface changes
  378. - Using custom platformio.ini file
  379. - Loads of changes in modules
  380. - Added DEBUG_MSG
  381. ### Fixed
  382. - Clean gulp builder script
  383. ## [0.9.7] 2016-08-28
  384. ### Changed
  385. - Moving wifi management to library (JustWifi)
  386. - Split code into modules
  387. ## [0.9.6] 2016-08-12
  388. ### Added
  389. - Added heartbeat, version and fsversion MQTT messages
  390. ### Changed
  391. - GZip 3rd party contents
  392. ## [0.9.5] 2016-07-31
  393. - Initial stable version