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.

411 lines
14 KiB

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