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.

762 lines
28 KiB

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