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.

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