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.

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