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.

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