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.

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