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.

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