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.

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