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.

711 lines
26 KiB

8 years ago
6 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
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
  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.11.2] 2017-12-30
  5. ### Fixed
  6. - Fix my92xx and pwm references for Arduino IDE (#346)
  7. - Fix SHT3X I2C sensor magnitude count (#337)
  8. - Fix timing for DHT11 sensors (#294)
  9. - Fix overflow in relayParsePayload with long MQTT messages (#344)
  10. - Fix loading of Dallas and DHT sensors for Sonoff TH images (#352)
  11. - Subscribe to Domoticz MQTT topics only if Domotic< is enabled
  12. ### Added
  13. - Added option to change MQTT retain flag, QoS and keepalive time from webUI (#321)
  14. - Added LED modes "always off" and "always on" (#348)
  15. - Defined new ESPurna switch (no HLW8012 support & touch button ready)
  16. ### Changed
  17. - Stop requiring definition of boards in migrate module
  18. ## [1.11.1] 2017-12-29
  19. ### Fixed
  20. - Fixed relay status on reboot
  21. ### Added
  22. - Added support for Arilux AL-LC01 and AL-LC11
  23. - Added support for BH1750 luminosity sensor
  24. - Added automatic memory size identification in ota_flash script
  25. ## [1.11.0] 2017-12-28
  26. ### Fixed
  27. - Fixed Arduino IDE compilation issues (#330)
  28. - Fixed issues with IE
  29. - Fixed websocket auth issue with Safari (temporary)
  30. - Fixed MQTT group sync when different switches share same group
  31. - Fixed casting issue in buttonStore (#327)
  32. - Fixed crash in InfluxDB initial heartbeat (#318)
  33. - Fixed LED logic for ESPurna H08 board
  34. ### Added
  35. - New sensors module (major change)
  36. + Existing sensor have been migrated: EMON*, ECH1560, V9261F, HLW8012, DHT, DALLAS, ANALOG, DIGITAL and EVENTS
  37. + New sensor have bee added: BMP280/BME280, EMON over ADS1115, MHZ19, PMSX003 (thanks to Òscar Rovira), SHT3X over I2C and SI7021
  38. - Option to change boot and pulse modes per relay from the web UI
  39. - Option to select sensor read interval and report interval from web UI
  40. - Itead RF Bridge
  41. + Match MQTT RFOUT codes to relays
  42. + Force RFBridge to send messages even if switch is already in requested state (#324)
  43. + Implemented RFbridge message queue asynchronously
  44. - Added option to load config via HTTP POST & reset (#335)
  45. - Added option to define behaviour of the first LED between WIFI, MQTT, FIND-ME (#317)
  46. - Added HTML linter to gulp builder
  47. - Added Help command on terminal (#338)
  48. - Added preliminary support for SSDP (untested, disabled by default) (#282)
  49. - Reporting NTP datetime on MQTT heartbeat (thanks to Eldon R. Brown)
  50. - Added version tracking and migration code
  51. - I2C and GPIO locking features
  52. - Changed default button action for touch button devices (TOUCH and T1) (#327)
  53. - Generic 8 channel board (#336)
  54. ### Changed
  55. - Added more sensor data filters (Max, MobileAverage)
  56. - Changed max pulse time to 1h (#316)
  57. - Renamed "reset" to "reboot" for clarity (#315)
  58. - UI refactor
  59. - Change apiRegister signature
  60. ## [1.10.1] 2017-12-05
  61. ### Fixed
  62. - Fix Sonoff RFBridge learn message from web UI (#287)
  63. - Fix unstability in "one and just one" sync mode (#290)
  64. - Fix unnecessary inclusion of my92xx library (#293)
  65. - Limit the MQTT queue to 10 messages when "Use JSON payload" enabled (#296)
  66. - Fix Sonoff RFBridge OFF button toggling switch (#303)
  67. - Allow defining only ON or OFF codes in Sonoff RFBridge (#304)
  68. - Disabled terminal support for Sonoff Dual (#310)
  69. ### Added
  70. - Support for SI7021-based sensor by Itead Studio compatible with Sonoff TH (#216)
  71. - Support for Sonoff Dual R2 (#286)
  72. - MQTT group topics (sync two or more switches from different devices, #300)
  73. - Color transitions (enabled by default, can be disabled from web UI)
  74. - Option to disable MQTT support at build time
  75. ### Changed
  76. - Decreased PWM frequency for dimmer lights
  77. - Changed password policy (#297)
  78. ## [1.10.0] 2017-11-26
  79. ### Fixed
  80. - Temperatures with 1 decimal resolution
  81. - Issues with Sonoff B1 due to bad driver management (using my92xx library now)
  82. - Avoid recursive messages on Domoticz (#272)
  83. - Fixed Sonoff T1 configuration
  84. - Simplify and fix web auth (#284)
  85. - Fix Embedis custom parser
  86. ### Added
  87. - Added option to define a temperature correction factor (thanks to Pawel Raszewski)
  88. - Option to disable system check on build time
  89. - Power saving features (loopDelay and wifi sleep)
  90. - Added Sonoff TH build environment
  91. - Send Home Assistant auto discover messages on connect (#279)
  92. - Implemented Home Assistant availability topic (#280)
  93. - Update time, uptime and heap on webUI every heartbeat
  94. - Support for LLMNR and NetBIOS (#282)
  95. - Added I2C clean bus code
  96. - Added realm to auth challenge
  97. ### Changed
  98. - Changed default hostname to "ESPURNA_XXXXXX"
  99. - Binaries built against stable core (~40Kb less, #274)
  100. - Enabled TERMINAL_SUPPORT for Sonoff Dual (only available via TELNET)
  101. - Dinamically resize debug strings (now messages are not cropped)
  102. - MQTT: unsubscribe to '#' before subscribing
  103. - Updated ESPAsyncWebServer and ESPAsyncTCP libraries
  104. - Removed InfluxDB support by default
  105. - Using stock slider in webUI to reduce size
  106. - Unify DHT and DS18B20 code, show NOT CONNECTED on webUI
  107. ## [1.9.9] 2017-11-09
  108. ### Fixed
  109. - Fixed bug in MY9291-based light bulbs at full brightness
  110. ### Added
  111. - RFBridge: toggle when RF codes for ON and OFF are the same (#270)
  112. - Support for HSV color schema (MQTT, API and webUI via a selector)
  113. ### Changed
  114. - "COLOR" entry point deprecated, use "RGB" instead (MQTT and API, ex. topic "light/rgb/set" instead of "light/color/set")
  115. ## [1.9.8] 2017-11-08
  116. ### Fixed
  117. - Removed dimmer lights flicker when saving to EEPROM (#191)
  118. - Fixed low brightness in dimmer lights (#157)
  119. - Fixed blank fields in energy (#258, #259)
  120. - Fixed support for Arilux AL-LC06
  121. - Updated fauxmoESP library with support for GetBinaryState actions
  122. ### Added
  123. - Support for IR remotes
  124. - Option to select power read and report interval from webUI
  125. - Option to report real-time values in API, configurable via webUI
  126. - Support for ESPurna-H Board v0.8
  127. - Support for Arilux E27 light bulb (untested)
  128. - Support for YJZK 2-gang switch
  129. ### Changed
  130. - PWM using ESP8266_new_pwm by Stephan Bruens (https://github.com/StefanBruens/ESP8266_new_pwm)
  131. - Using own DHT implementation (removed dependency on Adafruit libraries)
  132. - Disabled serial debug for Sonoff RFBridge
  133. ## [1.9.7] 2017-10-25
  134. ### Fixed
  135. - Fix Alexa interface switching on all lights (#256)
  136. ## [1.9.6] 2017-10-23
  137. ### Fixed
  138. - Fix power report in Domoticz (#236)
  139. - Fix Sonoff POW in AP mode (#241)
  140. - Fix Home Automation auto-discovery (support for single relay switches and RGB lights, #235)
  141. - Check WS authentication only on start event
  142. ### Added
  143. - Support for 2.4.0 RC2 Arduino Core that fixes KRACK vulnerablity (pre-built images are compiled against this, #242)
  144. - Support for ManCaveMade ESPLive board (thanks to Michael A. Cox)
  145. - Support for InterMIT Tech QuinLED 2.6 (thanks to Colin Shorts)
  146. - Support for Magic Home LED Controller 2.0 (thanks to users @gimi87 and @soif, #231)
  147. - Support for Arilux AL-LC06 (thanks to Martijn Kruissen)
  148. - Support for Xenon SM-PW702U Wifi boards (thanks to Joshua Harden, #212)
  149. - Support for Authometion LYT8266 (testing, thanks to Joe Blellik, #213)
  150. - Support for an external button for D1 Mini boards (thanks to user @PieBru, #239)
  151. - Option to query relay status via MQTT or WS (thanks to Wesley Tuzza)
  152. - Automatically install dependencies for web interface builder (thanks to Hermann Kraus)
  153. - Support for HSV and IR for Magic Home LED Controller (optional, disabled by default, thanks to Wesley Tuzza)
  154. - Added option to report DS18B20 temperatures based on changes (thanks to Michael A. Cox)
  155. - Safer buffer handling for websocket data (thanks to Hermann Kraus & Björn Bergman)
  156. - Updates HL8012 library with energy counting support (thanks to Hermann Kraus)
  157. - Added option to disable light color persistence to avoid flickering (#191)
  158. - Option to enable TELNET in STA mode from web UI (#203)
  159. ### Changed
  160. - Changed default MQTT base topic to "{identifier}" (no leading slashes, #208)
  161. - Prevent reconnecting when in AP mode if a web session or a telnet session is active (#244)
  162. - Web UI checks for pending changes before reset/reconnect options (#226)
  163. - Increase WIFI connect timeout and reconnect interval
  164. ## [1.9.5] 2017-09-28
  165. ### Fixed
  166. - Revert to JustWifi 1.1.4 (#228)
  167. ## [1.9.4] 2017-09-22
  168. ### Added
  169. - Added ESPurna specific mDNS text registers (app_name, app_version, device_name)
  170. - Crash dump info is stored in EEPROM and retrieved via terminal ("crash" command)
  171. - Support for Huacanxing H802
  172. - Support for powermeters based on V9261F IC
  173. - Support for powermeters based on ECH1560 IC (beta, untested)
  174. ### Changed
  175. - Changed behaviour on MQTT connection failure (#215)
  176. - Removed boot delay
  177. - Refactor power modules
  178. - Updated JustWifi library
  179. ### Fixed
  180. - Set all esp8285 devices to use esp01_1m (#210, #225)
  181. - Removed wifi gain option since it prevents some devices to connect (#204)
  182. ## [1.9.3] 2017-09-04
  183. ### Added
  184. - New "erase.config" option in terminal to delete SDK settings
  185. - Added error code to error message when updating from web UI
  186. - Fixed Web UI to be behind a proxy (http://tinkerman.cat/secure-remote-access-to-your-iot-devices/)
  187. - 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/)
  188. ### Changed
  189. - Updated fauxmoESP library to 2.2.0
  190. ### Fixed
  191. - Fix HLW8012 calibration (#194)
  192. - Fix telnet dropping connection
  193. - Fix WiFiSecureClient connection with PubSubClient (#64)
  194. ## [1.9.2] 2017-08-31
  195. ### Added
  196. - System stability check (turns off everything except WIFI AP, OTA and telnet if there is a boot crash loop) (#196)
  197. - Telnet support (enabled by default only on AP interface)
  198. - Option to set WiFi gain from web UI
  199. - Option to disable MQTT from web UI
  200. - MQTT autodiscover, with the option to autoconnect if no broker defined
  201. - Home Assistant MQTT autodiscover feature
  202. - List enabled modules in INIT debug info
  203. - Counter module (counts and reports transitions in a digital pin)
  204. ### Changed
  205. - Updated NoFUSS support
  206. - Web UI documentation changes
  207. - Changes in terminal commands ("reconnect" is now "reset.wifi", also new commands added)
  208. ### Fixed
  209. - Crash in settings saving (#190) and fixed UDP debug conditional build clauses
  210. ## [1.9.1] 2017-08-27
  211. ### Added
  212. - Support to build without NTP support
  213. - Added current time, uptime, free heap, firmware size and free space to web interface
  214. ### Changed
  215. - Changed settings keys for Itead Sonoff RF Bridge
  216. - Disable Domoticz by default
  217. ### Fixed
  218. - Fixed build flags for DHT and DS18B20 in platformio.ini file
  219. - Fixed Itead Sonoff B1 by updating the my9291 library
  220. - Fixed light status on boot (#157)
  221. - Fixed CSS bug cause by a bad merge
  222. ## [1.9.0] 2017-08-25
  223. ### Added
  224. - Support for IteadStudio BN-SZ01 Ceiling Light (#132)
  225. - Support for IteadStudio Sonoff RF Bridge (#173)
  226. - Support for IteadStudio Sonoff 4CH Pro (#174)
  227. - Support for IteadStudio Sonoff B1
  228. - Support for IteadStudio Sonoff LED
  229. - Support for IteadStudio Sonoff T1 wall switches (1, 2 and 4 channels)
  230. - Support for WiOn 50055 WiFi Wall Outlet & Tap
  231. - Support for EXS WiFi Relay v3.1 (and other future latching relay boards) (#152)
  232. - TLS/SSL support for MQTT (caution: eats a lot of memory, do not use with web interface) (#64)
  233. - Add support for delayed ON/OFF switches (#123, #161, #188)
  234. - Added ON and OFF actions for button events (previously only TOGGLE available) (#182)
  235. - Sliders in web interface to control dimmer channels independently (also for brightness)
  236. - Debug info about MQTT disconnect reason
  237. ### Changed
  238. - MQTT setters ending with "/set" by default
  239. - Using DOUT flash mode on all devices (#167)
  240. - Longer timeout for WiFi connection (better chances for Sonoff Basic to connect)
  241. - Changed MQTT topics for light devices (COLOR, BRIGHTNESS, MIRED, KELVIN, CHANNEL) (#144)
  242. - Changed the way light devices are defined (see LIGHT_PROVIDER_DIMMER)
  243. - Allow to disable color picker in web interface
  244. - API returns processed values for HLW8012 sensor (not raw values anymore) (#176)
  245. - Major refactoring of settings
  246. ### Fixed
  247. - Discard MQTT messages with empty payload (#185)
  248. - Wifi connection issue (https://github.com/esp8266/Arduino/issues/2186)
  249. - Alexa connection issue
  250. ## [1.8.3] 2017-07-23
  251. ### Added
  252. - Issue #85 and #90. Option to report MQTT messages with JSON payloads
  253. - Issue #170. Updated DebouceEvent library to allow disabling double click and get faster click responses
  254. - Using memory layout with no SPIFFS for 1Mb devices
  255. ### Changed
  256. - Rename settings s/POW/HLW8012/
  257. - Return times in ISO8601 format
  258. ### Fixed
  259. - Issue #168. Added H801 to arduino.h file
  260. - Issue #171. Fix corrupted will message
  261. ## [1.8.2] 2017-07-16
  262. ### Added
  263. - InfluxDB support via HTTP API
  264. - Added custom reset reason to debug log
  265. - Enable WIFI debug on hardware reset (button long click)
  266. ### Changed
  267. - Issue #159. Allow decimals in relay pulse interval
  268. - Updated HLW8012 library
  269. ### Fixed
  270. - Issue #148. Fix bug in conditional compilation check
  271. - Issue #149. Using different pulse counters for each relay (thanks to Lauris Ieviņš)
  272. - Issue #141. Limit relay pulse interval to 60s
  273. - Fixed units for apparent & reactive power (thanks to Lauris Ieviņš)
  274. - Fixed mDNS setup when using custom HTTP port for web interface
  275. ## [1.8.1] 2017-05-22
  276. ### Fixed
  277. - Issue #140. Fix no relay control bug in Sonoff Dual
  278. ## [1.8.0] 2017-05-21
  279. ### Added
  280. - Added gamma correction to RGB strips. Thanks to Chris Ward.
  281. - Added support for Huacanxing H801 WiFi LED Controller. Thanks to Minh Phuong Ly.
  282. - Issue #138. Added NTP configuration from web interface
  283. - Issue #128. Report color when booting and in heartbeat stream.
  284. - Issue #126. Show NTP status in web interface.
  285. - Added filter limits on POW readings.
  286. - Added color temperature to RGB calculation. Thanks to Sacha Telgenhof.
  287. - Issue #120. Added relay flood protection. Thanks to Izik Dubnov.
  288. - Support for "#RRGGBB", "RRR,GGG,BBB" and "WWW" color formats.
  289. - Issue #117. Added build date & time to web interface.
  290. ### Fixed
  291. - Fix MQTT_RELAY board conifugration. Thanks to Denis French.
  292. - Issue #125. Fix bug in relay status reading from EEPROM
  293. - Issue #127. Fix button action in DUAL.
  294. - Fix bug in Sonoff POW current reading. Thanks to Emmanuel Tatto.
  295. - Minimizing my9291 flickering when booting.
  296. - Fix conditional flags in hardware.ino to support Arduino IDE.
  297. ## [1.7.1] 2017-03-28
  298. ### Fixed
  299. - Issue #113. Fix restoring color from EEPROM upon reboot
  300. - Issue #113. Fix bug in API handlers
  301. ## [1.7.0] 2017-03-27
  302. ### Added
  303. - Web interface embedded in firmware image by default
  304. - Upload firmware image from web interface
  305. - Added API entry point to change light color
  306. - Added generic analog sensor. Thanks to Francesco Boscarino
  307. - Report RSSI value in debug console and MQTT status messages
  308. - Added support for Magic Home LED Controller
  309. - Added support for ESPurna-H Board (based on HLW8012)
  310. - Added forward compatible code for v2.0
  311. ### Changed
  312. - Added ellipsis (...) in debug messages longer than 80 characters
  313. - Changed topic constants in code
  314. - Prevent the SDK from saving WiFi configuration to flash
  315. ### Fixed
  316. - Issue #113. Fix light bulb state to OFF in library prevented the bulb from turning on
  317. - Issue #58. Added code to handle spurious readings
  318. - Fix bug in HLW8012 calibration current parameter casting to int instead of float
  319. - Issue #115. Removed local declaration of _mqttForward variable. Thanks to Paweł Fiedor
  320. - Fix MQTT will topic. Thanks to Asbjorn Tronhus
  321. ## [1.6.9] 2017-03-12
  322. ### Added
  323. - Two stage read for DS18B20 devices. Thanks to Izik Dubnov.
  324. - Option to report the relay status via MQTT periodically
  325. - Terminal commands to change relay status an light color
  326. - Added debug via UDP (disabled by default)
  327. - Moved debug strings to PROGMEM. ~1.5KByes memory freed
  328. - Avoid broadcasting websocket messages if no clients connected
  329. ### Fixed
  330. - Fixing use after free bug that leads to corrupted auth credentials. Thanks to David Guillen
  331. ## [1.6.8] 2017-03-01
  332. ### Added
  333. - Issue #85. Heartbeat reports now free heap, uptime and VCC every 5 minutes
  334. ### Changed
  335. - Wait two minutes instead of one in AP mode before trying to reconnect to the router
  336. - Issue #92. Debug log enabled by default in Arduino IDE
  337. - Issue #91. Using AsyncMqttClient as default MQTT client again
  338. ### Fixed
  339. - Report data from all sensors via websocket even if no MQTT connection
  340. - Issue #92. Fix unknown reference in Arduino IDE
  341. - Split data.h contents into 1k lines, otherwise Arduino IDE chokes on them
  342. - Discard empty MQTT topic while subscribing
  343. ## [1.6.7] 2017-02-25
  344. ### Added
  345. - Support for OpenLight / AI-Light by AI-Thinker based on MY9291 LED driver
  346. - Issue #87. Factory reset when physical button pressed for >10 seconds
  347. ## [1.6.6] 2017-02-23
  348. ### Fixed
  349. - Issue #82. Fix critical bug on Sonoff Dual
  350. ## [1.6.5] 2017-02-22
  351. ### Added
  352. - Option to backup and restore settings from the web interface
  353. - Footer in the web interface
  354. ### Changed
  355. - Using PubSubClient as MQTT client by default (please read the documentation)
  356. - Double & long clicks do nothing except for the first defined button
  357. ### Fixed
  358. - Issue #79. Fix bug in WiFi led notification & MQTT connectivity (using PubSubClient)
  359. - Issue #73. Fix bug when building without Domoticz support
  360. - Fix Gulp tasks dependencies
  361. ## [1.6.4] 2017-02-20
  362. ### Added
  363. - Option to embed the web interface in the firmware, disabled by default
  364. - Change relay status with a GET request (browser friendly)
  365. - Support for PROGMEM debug messages (only wifi module has been changed)
  366. - Option to disable mDNS, enabled by default
  367. - Show current web server port in debug log
  368. - Issue #75. Link relays to LEDs
  369. - Issue #76. Using http://espurna.local when in AP mode
  370. ### Changed
  371. - Images and favicon is now embedded in the HTML
  372. - Authentication challenge only in /auth request. All static contents are un-authenticated
  373. - HTTP response code when out of websocket slots changed from 423 to 429
  374. ### Fixed
  375. - Memory leak in MQTT connection method
  376. - Wait 60 seconds before retrying to connect when in AP mode
  377. - Issue #24 & #74. Update ESPAsyncTCP and ESPAsyncWebServer to latest GIT version that supports MSS defragmenting
  378. - Issue #73. Fixes for windows machines
  379. ### Removed
  380. - Captive portal removed, mDNS resolution for AP mode too
  381. ## [1.6.3] 2017-02-15
  382. ### Added
  383. - Issue #69. Temperature unit configuration from the web interface
  384. - Issue #55. WebServer port configurable from the web interface, defaults to 80
  385. - Expand network configuration when adding a new network
  386. ### Changed
  387. - Merged web contents except images in a single compressed file for reliability
  388. - Update support for Itead Motor Clockwise/Anticlockwise board
  389. - Scan for strongest network only if more than 1 network configured
  390. ### Fixed
  391. - Issue #71. Added default values for netmask and DNS in web configuration
  392. - Fixed Itead 1CH self-locking/inching board definition
  393. - Fixed PlatformIO environments for ESP8285 boards (4CH and Touch)
  394. ## [1.6.2] 2017-02-10
  395. ### Fixed
  396. - Check if there is an MQTT broker defined before the MQTT_MAX_TRIES check
  397. ## [1.6.1] 2017-02-10
  398. ### Added
  399. - Added support for [Jorge Garcia's Wifi+Relay Board Kit](https://www.tindie.com/products/jorgegarciadev/wifi--relays-board-kit/)
  400. - Reporting current and energy incrementals to a separate counters in Domoticz (thanks to Toni Arte)
  401. - Force WiFi reconnect after MQTT_MAX_TRIES fails trying to connect to MQTT broker
  402. ## [1.6.0] 2017-02-05
  403. ### Added
  404. - Added support for toggle switches
  405. - Allow reset the board via an MQTT message
  406. - Allow reset the board via an RPC (HTTP) message
  407. - 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/))
  408. - Reporting voltage to Domoticz (only HLW8012)
  409. - Map button events to actions (toggle relay, AP mode, reset, pulse mode)
  410. ### Changed
  411. - Reporting energy incrementals (Domoticz, MQTT)
  412. ### Removed
  413. - Removed current monitor bypass when relay is OFF
  414. - Removed energy API entry point
  415. ## [1.5.4] 2017-02-03
  416. ### Fixed
  417. - Issue #50. Fix type bug in window variable when calculating energy for HLW8012 devices (Sonoff POW)
  418. ## [1.5.3] 2017-02-02
  419. ### Fixed
  420. - Issue #50 and #54. Fixed domoticz MQTT message format
  421. ### Added
  422. - Energy calculation and aggregation. API entry points and MQTT messages.
  423. ## [1.5.2] 2017-01-29
  424. ### Fixed
  425. - Fix bug in emon topic payload
  426. ## [1.5.1] 2017-01-28
  427. ### Added
  428. - OpenEnergyMonitor WiFi MQTT Relay / Thermostat support (thanks to Denis French)
  429. ### Fixed
  430. - NTP connection refresh upon wifi connection
  431. - Filesystem image build using local gulp installation
  432. ## [1.5.0] 2017-01-21
  433. ### Added
  434. - Pulse mode. Allows to define a pulse time after which the relay will switch back
  435. - API entry points for sensor data (power, current, voltage, temperature and humidity)
  436. - Export sensor data to Domoticz (power, current, voltage, temperature and humidity)
  437. - Configurable (in code) mapping between buttons and relays
  438. - MQTT messages for button events
  439. - Added support for Itead Studio 1CH inching/self locking smart switch board
  440. - Added support for Jan Goedeke Wifi Relay boards (both NC and NO versions)
  441. - Notify OTA updates to websocket clients, automatically reload page
  442. - Support for pulse mode notification LED and button
  443. - Revert relay state mode on boot (thanks to Minh Phuong Ly)
  444. ### Fixed
  445. - MQTT will topic
  446. - Crash with HLW812 interrupts while trying to create a WIFI connection
  447. - Issue #20 Better inline documentation for Alexa and Domoticz default settings
  448. - Issue #39 Fixed autoconnect issue with static IP (fixed in JustWifi library)
  449. - Issue #41 Added password requirements to initial password change page
  450. ### Changed
  451. - Changed LED pattern for WIFI notifications (shorter pulses)
  452. ## [1.4.4] 2017-01-13
  453. ### Added
  454. - Adding current, voltage, apparent and reactive power reports to Sonoff POW (Web & MQTT)
  455. ### Fixed
  456. - Issue #35 Fixed frequent MQTT connection drops after WIFI reconnect
  457. - Defer wifi disconnection from web interface to allow request to return
  458. ### Changed
  459. - Move all Arduino IDE configuration values to their own file
  460. - Using latest HLW8012 library in interrupt mode
  461. ## [1.4.3] 2017-01-11
  462. ### Fixed
  463. - Issue #6 Using forked Time library to prevent conflict with Arduino Core for ESP8266 time.h file in windows machines
  464. ## [1.4.2] 2017-01-09
  465. ### Added
  466. - Support for inverse logic relays
  467. ### Fixed
  468. - Issue #31. Fixed error in relay identification from MQTT messages
  469. ## [1.4.1] 2017-01-05
  470. ### Added
  471. - Alexa support by default on all devices
  472. - Added support for Wemos D1 Mini board with official Relay Shield
  473. ### Fixed
  474. - Multi-packet websocket frames
  475. ## [1.4.0] 2016-12-31
  476. ### Added
  477. - Domoticz support via MQTT (https://www.domoticz.com/wiki/MQTT)
  478. - Support for static IP connections
  479. ### Fixed
  480. - Issue #16. Enforce minimum password strength in web interface
  481. ### Changed
  482. - Using default client_id provided by AsyncMqttClient
  483. - Allow up to 5 different WIFI networks
  484. ### Removed
  485. - File system version file
  486. ## [1.3.1] 2016-12-31
  487. ### Fixed
  488. - data_dir fix for PlatformIO
  489. ## [1.3.0] 2016-12-30
  490. ### Changed
  491. - Arduino IDE support (changes in the folder structure and documentation)
  492. ## [1.2.0] 2016-12-27
  493. ### Added
  494. - Force password changing if it's the default one
  495. - Added Last-Modified header to static contents
  496. - Added DNS captive portal for AP mode
  497. - Added support for Sonoff 4CH
  498. - Added support for WorkChoice ecoPlug (ECOPLUG). Thanks to David Myers
  499. - Added support for Sonoff SV
  500. - Added support for Sonoff Touch
  501. - Comment out hardware selection in hardware.h if using Arduino IDE
  502. - Added support for MQTT get/set suffixes (/status, /set, ...)
  503. - Added support for LED notifications via MQTT
  504. - Added EEPROM check commands to terminal interface
  505. ### Changed
  506. - Using unreleased AsyncMqttClient with stability improvements
  507. - Better decoupling between MQTT and relays/websockets
  508. - Skipping retained MQTT messages (configurable)
  509. ### Fixed
  510. - Issue #11 Compile error when building sonoff-dual-debug
  511. - Issue #14 MQTT Connection with Username an Password not working
  512. - Issue #17 Moved static variable 'pending' to class variable
  513. ## [1.1.0] 2016-12-06
  514. ### Added
  515. - Added support for DS18B20 temperature sensor. Thanks to Francesco Boscarino
  516. - Added reset command from console
  517. - Added support for multirelay boards like Sonoff DUAL or Electrodragon ESP Relay Board
  518. ### Changed
  519. - Not using espressif8266_stage in default environment
  520. - Relay MQTT topics
  521. - API entry points
  522. ### Removed
  523. - Old non protected API
  524. ## [1.0.3] 2016-11-29
  525. ### Added
  526. - WeMo emulation through the fauxmoESP library (control your switch from Alexa!)
  527. - REST API for relay management
  528. - Better dependency definitions in platformio.ini
  529. - Option to define inverse logic to on-board LED
  530. - Built data folder included in repo
  531. ### Changed
  532. - Using non-interrupt driven mode for HLW8012
  533. - Better documentation
  534. - Small changes to web interface
  535. - Same admin password for web, OTA and WIFI AP mode
  536. ### Fixed
  537. - Prevent fauxmoESP to be compiled by default
  538. ### Removed
  539. - Removed ESPurna board to its own repo
  540. ## [1.0.1] 2016-11-13
  541. ### Added
  542. - Basic authentication and CSRF to websocket requests
  543. ## [1.0.0] 2016-11-13
  544. ### Added
  545. - Using ESPAsyncWebServer (for web & websockets) and AsyncMqttClient
  546. ## [0.9.9] 2016-11-12
  547. ### Added
  548. - Preliminary support for Sonoff POW
  549. - Replace AJAX requests with websockets
  550. - Using sprites for images
  551. - Hostname can be changed
  552. - Added initial relay state mode
  553. - Reconnect and reset buttons on web interface
  554. ### Changed
  555. - Changed long click to reset and double click to AP mode
  556. - Using officially supported platformio.ini file by default
  557. ### Fixed
  558. - Removed unnecessary memory inefficient code
  559. - Temprary fix for Adafruit DHT library (see https://github.com/adafruit/DHT-sensor-library/issues/62)
  560. ## [0.9.8] 2016-10-06
  561. ### Added
  562. - Using PureCMS for the web interface
  563. - Using gulp to build the filesystem files
  564. - Using Embedis for configuration
  565. ### Changed
  566. - Updated JustWifi library
  567. - Web interface changes
  568. - Using custom platformio.ini file
  569. - Loads of changes in modules
  570. - Added DEBUG_MSG
  571. ### Fixed
  572. - Clean gulp builder script
  573. ## [0.9.7] 2016-08-28
  574. ### Changed
  575. - Moving wifi management to library (JustWifi)
  576. - Split code into modules
  577. ## [0.9.6] 2016-08-12
  578. ### Added
  579. - Added heartbeat, version and fsversion MQTT messages
  580. ### Changed
  581. - GZip 3rd party contents
  582. ## [0.9.5] 2016-07-31
  583. - Initial stable version