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.

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