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.

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