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.

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