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.

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