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.

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