_changelog.ino 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594
  1. /* 6.4.1 20181223
  2. * Change RAM usage BMP/BME I2C sensors
  3. * Change FallbackTopic from cmnd/<mqttclient>/ to cmnd/<mqttclient>_fb/ to discriminate from Topic (#1528)
  4. * Change FallbackTopic detection (#4706)
  5. * Change Hass discovery to short MQTT messages as used by Hass 0.81 and up (#4711)
  6. * Change MQTT GUI password handling (#4723)
  7. * Fix possible dtostrf buffer overflows by increasing buffers
  8. * Fix wifi strongest signal detection (#4704)
  9. * Fix Alexa "this value is outside the range of the device". Needs power cycle and Alexa deletion/discovery cycle. (#3159, #4712)
  10. * Add Slovak language file (#4663)
  11. * Add support for AZ-Instrument 7798 CO2 meter/datalogger (#4672)
  12. * Add define WIFI_SOFT_AP_CHANNEL in my_user_config.h to set Soft Access Point Channel number between 1 and 13 as used by Wifi Manager web GUI (#4673)
  13. * Add define USE_MQTT_TLS_CA_CERT for checking MQTT TLS against root ca using Let's Encrypt cert from sonoff_letsencrypt.h - not supported with core 2.3.0 (#4703)
  14. *
  15. * 6.4.0 20181217
  16. * Change GUI Configure Module by using AJAX for data fetch to cut page size (and memory use) by 40%
  17. In case of web page errors clear your browser cache or do Page Reload (F5 or Ctrl+R)
  18. * Change enforcing flashmode dout but it is still mandatory
  19. * Change bootcount update (being first) flash write to 10 seconds after restart
  20. * Change display and epaper drivers
  21. * Change command WebSend Host header field from IP address to hostname (#4331)
  22. * Change log buffer size from 512 to 520 to accommodate http sensor data (#4354)
  23. * Change default WIFI_CONFIG_TOOL from WIFI_WAIT to WIFI_RETRY in my_user_config.h (#4400)
  24. * Change webgui refresh time delay for Save Settings and local OTA Upload (#4423)
  25. * Change SR-04 driver to use NewPing library (#4488)
  26. * Change MCP230xx driver to support interrupt retention over teleperiod (#4547)
  27. * Change support for MPU6050 using DMP (#4581)
  28. * Fix unintended function overload of WifiState
  29. * Fix wifi connection errors using wifi disconnect and ESP.reset instead of ESP.restart
  30. * Fix Sonoff Pow R2 and Sonoff S31 Serial interface hang caused by Sonoff Basic R2 driver delay implementation (and possibly core bug)
  31. * Fix MQTT connection error after restart
  32. * Fix wifi re-scan connection baseline
  33. * Fix possible strncat buffer overflows
  34. * Fix intermittent Pzem sensor energy overflow calculation error
  35. * Fix shelly2 ghost switching caused by lack of pull-up inputs (#4255)
  36. * Fix hardware serial pin configuration. To keep using hardware serial swap current Rx/Tx pin configuration only (#4280)
  37. * Fix MqttRetry values above 255 seconds (#4424)
  38. * Fix WifiManager functionality on initial installation (#4433)
  39. * Fix ArduinoOTA for Core 2.5.0 (#4620)
  40. * Add minutes to commands Timezone to allow all possible world timezones
  41. * Add more strict checks for GPIO selections
  42. * Add code image and optional commit number to version
  43. * Add dynamic delay to main loop providing time for wifi background tasks
  44. * Add additional start-up delay during initial wifi connection
  45. * Add support for decoding Theo V2 sensors as documented on https://sidweb.nl using 434MHz RF sensor receiver
  46. * Add support for decoding Alecto V2 sensors like ACH2010, WS3000 and DKW2012 weather stations using 868MHz RF sensor receiver
  47. * Add user definition of defines WIFI_RSSI_THRESHOLD (default 10) and WIFI_RESCAN_MINUTES (default 44)
  48. * Add command SetOption58 0/1 to enable IR raw data info in JSON message (#2116)
  49. * Add command IRSend <frequency>|0,<rawdata1>,<rawdata2>,.. to allow raw data transmission (#2116)
  50. * Add command SetOption56 0/1 to enable wifi network scan and select highest RSSI (#3173)
  51. * Add command SetOption57 0/1 to enable wifi network re-scan every 44 minutes with a rssi threshold of 10 to select highest RSSI (#3173)
  52. * Add support for SDM220 (#3610)
  53. * Add default sleep 1 to sonoff-basic to lower energy consumption (#4217)
  54. * Add wifi status to Tuya (#4221)
  55. * Add delays to reduce CPU usage at boot time (#4233)
  56. * Add command SetOption24 0/1 to select pressure unit as hPa or mmHg (#4241)
  57. * Add optional hardware serial when GPIO13(Rx) and GPIO15(Tx) are selected removing hardware serial from GPIO01(Tx) and GPIO03(Rx) (#4288)
  58. * Add support for Gosund SP1 v2.3 Power Socket with Energy Monitoring (#4297)
  59. * Add support for Armtronix dimmers. See wiki for info (#4321)
  60. * Add to command WebSend option to send a direct path when command starts with a slash (#4329)
  61. * Add support for LG HVac and IrRemote (#4377)
  62. * Add initial support for Hass sensor discovery (#4380)
  63. * Add support for Fujitsu HVac and IrRemote (#4387)
  64. * Add support for I2C MGC3130 Electric Field Effect sensor by Christian Baars (#3774, #4404)
  65. * Add command CalcRes to set number of decimals (0 - 7) used in commands ADD, SUB, MULT and SCALE (#4420)
  66. * Add CPU average load to state message (#4431)
  67. * Add command SetOption59 0/1 to change state topic from tele/STATE to stat/RESULT (#4450)
  68. * Add support for SM Smart Wifi Dimmer PS-16-DZ (#4465)
  69. * Add support for Teckin US Power Socket with Energy Monitoring (#4481)
  70. * Add command SetOption60 0/1 to select dynamic sleep (0) or sleep (1) (#4497)
  71. * Add support for iFan02 Fanspeed in Domoticz using a selector (#4517)
  72. * Add support for GPIO02 for newer Sonoff Basic (#4518)
  73. * Add Announce Switches to MQTT Discovery (#4531)
  74. * Add support for Manzoku Power Strip (#4590)
  75. *
  76. * 6.3.0 20181030
  77. * Change web Configure Module GPIO drop down list order for better readability
  78. * Change status JSON message providing more switch and retain information
  79. * Change xsns_17_senseair.ino to use TasmotaModbus library
  80. * Change MCP230xx driver
  81. * Change PubSubClient Mqtt library to non-blocking EspEasy version
  82. * Change energy monitoring using energy sensor driver modules
  83. * Change Webserver page handler for easier extension (thx to Adrian Scillato)
  84. * Change pinmode for no-pullup defined switches to pullup when configured as switchmode PUSHBUTTON (=3 and up) (#3896)
  85. * Change default OTA Url to http://thehackbox.org/tasmota/release/sonoff.bin (#4170)
  86. * Remove support for MQTT Client esp-mqtt-arduino by #define MQTT_LIBRARY_TYPE MQTT_ESPMQTTARDUINO
  87. * Remove commands PowerCal, VoltageCal and CurrentCal as more functionality is provided by commands PowerSet, VoltageSet and CurrentSet
  88. * Remove restart after ntpserver change and force NTP re-sync (#3890)
  89. * Fix showing Period Power in energy threshold messages
  90. * Fix header file execution order by renaming user_config.h to my_user_config.h
  91. * Fix some TSL2561 driver issues (#3681)
  92. * Fix KNX PA exception. Regression from 6.2.1 buffer overflow caused by subStr() (#3700, #3710)
  93. * Fix setting and getting color temperature for Philips Hue emulation (#3733)
  94. * Fix ButtonRetain to not use default topic for clearing retain messages (#3737)
  95. * Fix syslog when emulation is selected (#2109, #3784)
  96. * Fix rule trigger POWER1#STATE execution after restart and SetOption0 is 0 (#3856)
  97. * Fix Home Assistant forced light discovery (#3908)
  98. * Fix invalid configuration restores and decode_config.py crc error when savedata = 0 (#3918)
  99. * Fix timer offset -00:00 causing 12:00 hour offset (#3923)
  100. * Fix I2CScan invalid JSON error message (#3925)
  101. * Fix exception when wrong Domoticz JSON message is received (#3963)
  102. * Fix Sonoff Bridge RfRaw receive (#4080, #4085)
  103. * Fix possible wifi connection error (#4044, #4083)
  104. * Fix invalid JSON floating point result from nan (Not a Number) and inf (Infinity) into null (#4147)
  105. * Fix rule mqtt#connected trigger when mqtt is disabled (#4149)
  106. * Add support for LCD, Matrix, TFT and Oled displays
  107. * Add support for Neo Coolcam Wifi Smart Power Plug
  108. * Add support for Michael Haustein ESP Switch
  109. * Add support for MQTT Client based on lwmqtt to be selected by #define MQTT_LIBRARY_TYPE MQTT_ARDUINOMQTT
  110. * Add support for Neo Coolcam Wifi Smart Power Plug
  111. * Add support for Michael Haustein ESP Switch
  112. * Add support for MQTT Client based on lwmqtt to be selected by #define MQTT_LIBRARY_TYPE MQTT_ARDUINOMQTT
  113. * Add support for DS3231 Real Time Clock
  114. * Add support for HX711 Load Cell with optional web GUI scale interface to demonstrate easy GUI plug-in
  115. * Add support for serial 8N2 communication to TasmotaModbus and TasmotaSerial libraries
  116. * Add support for RF transceiving using library RcSwitch (#2702)
  117. * Add support for Shelly 1 and Shelly 2 (#2789)
  118. * Add support for La Crosse TX20 Anemometer (#2654, #3146)
  119. * Add support for MP3 player using DFRobot RB-DFR-562 (#3723)
  120. * Add Support for Xiaomi-Philips Bulbs (#3787)
  121. * Add support for PCA9685 12bit 16pin hardware PWM driver (#3866)
  122. * Add support for EXS Relay V5.0 (#3810)
  123. * Add support for OBI Power Socket (#1988, #3944)
  124. * Add support for Teckin Power Socket with Energy Monitoring (#3950)
  125. * Add support for Pzem-003/017 DC Energy monitoring module (#3694)
  126. * Add support for Pzem-014/016 AC Energy monitoring module (#3694)
  127. * Add support for CSL Aplic WDP 303075 Power Socket with Energy Monitoring (#3991, #3996)
  128. * Add support for Tuya Dimmer (#469, #4075)
  129. * Add command Display to show all settings at once
  130. * Add command SerialSend5 to send raw serial data like "A5074100545293"
  131. * Add command WebRefresh 1000..10000 to control web page refresh in milliseconds. Default is 2345
  132. * Add command WeightRes 0..3 to control display of decimals for kilogram
  133. * Add command RGBWWTable to support color calibration (#3933)
  134. * Add command Reset 4 (reset to defaults but keep wifi params) and Reset 5 (as reset 4 and also erase flash) (#4061)
  135. * Add command SetOption35 0..255 (seconds) to delay mDNS initialization to control possible Wifi connect problems
  136. * Add command SetOption52 0/1 to control display of optional time offset from UTC in JSON messages (#3629, #3711)
  137. * Add command SetOption53 0/1 to toggle gui display of Hostname and IP address (#1006, #2091)
  138. * Add authentication to HTTP web pages
  139. * Add decimals as input to commands PowerSet, VoltageSet and CurrentSet
  140. * Add tools/decode-config.py by Norbert Richter to decode configuration data. See file for information
  141. * Add define USE_DISPLAYS for selecting image sonoff-display
  142. * Add define USE_BASIC for selecting image sonoff-basic without most sensors
  143. * Add auto reload of main web page to some web restarts
  144. * Add TasmotaModbus library as very basic modbus wrapper for TasmotaSerial
  145. * Add more API callbacks and document API.md
  146. * Add Apparent Power and Reactive Power to Energy Monitoring devices (#251)
  147. * Add token %hostname% to command FullTopic (#3018)
  148. * Add Wifi channel number to state message (#3664)
  149. * Add user configurable GPIO02 and GPIO03 on H801 devices (#3692)
  150. * Add toggle function RGBW lights (#3695, #3697)
  151. * Add network information to display start screen (#3704)
  152. * Add sleep to Nova Fitness SDS01X sensor (#2841, #3724, #3749)
  153. * Add Analog input AD0 enabled to sonoff-sensors.bin (#3756, #3757)
  154. * Add power value below 5W to Sonoff Pow R2 and S31 (#3745)
  155. * Add RF Receiver control to module MagicHome to be used on Arilux LC10 (#3792)
  156. * Add userid/password option to decode-status.py (#3796)
  157. * Add delay after restart before processing rule sensor data (#3811)
  158. * Add force_update to Home Assistant discovery (#3873)
  159. * Add rule triggers SWITCH1#BOOT and POWER1#BOOT (#3904, #3910)
  160. * Add Hebrew language file (#3960)
  161. * Add TotalStartTime to Energy JSON message (#3971)
  162. * Add whitespace removal from RfRaw and SerialSend5 (#4020)
  163. * Add support for two BMP/BME sensors (#4195)
  164. *
  165. * 6.2.1 20180905
  166. * Fix possible ambiguity on command parameters if StateText contains numbers only (#3656)
  167. * Fix Wemo emulation to select the first relay when more than one relay is present (#3657)
  168. * Fix possible exception due to buffer overflow (#3659)
  169. * Fix lost energy today and total energy value after power cycle (#3689)
  170. *
  171. * 6.2.0 20180901
  172. * Allow user override of define MAX_RULE_VARS and MAX_RULE_TIMERS (#3561)
  173. * Disable wifi sleep for both Esp8266/Arduino core 2.4.1 and 2.4.2 to solve device freeze caused by Espressif SDK bug (#3554)
  174. * Change DS18B20 driver to provide better instant results
  175. * Change some sensor drivers to provide instant results
  176. * Change define USE_ALL_SENSORS to USE_SENSORS as it doesn't contain all sensors due to duplicate I2C addresses
  177. * Change some sensor update timings: AdcEvery 200 -> 250, Senseair 300 -> 250, SDM120 300 -> 250, SDM630 300 -> 250
  178. * Change default Wifi config option from WPS to Wifi Manager if WPS is disabled or Wifi Smartconfig if webserver is disabled or Wifi Serial input if Smartconfig is disabled
  179. * Change SHT1x driver to provide better instant results and fix I2C interference
  180. * Change DHT driver to provide better instant results and add decimals to DHT11 (#3164)
  181. * Change DS18x20 driver to provide better instant results (#3169)
  182. * Change CounterType 1 from milliseconds to microseconds (#3437)
  183. * Change scheduler for better sleep support using Uptime, Delay, PulseTime and TelePeriod, Blinktime (#3581)
  184. * Remove unused functionality from Sonoff-minimal to save space
  185. * Remove WPS and SmartConfig from sonoff-minimal saving 56k code space
  186. * Remove TSL2561 debug message and update library (#2415)
  187. * Remove forced restart when sleep command is executed (#3554)
  188. * Fix invalid response using more than 4 switches and domoticz
  189. * Fix sonoff-minimal not using default settings
  190. * Fix unsecure main webpage update
  191. * Fix DHT driver mixing values for different sensors (#1797)
  192. * Fix EnergyReset3 regression not clearing total energy (#2723)
  193. * Fix rules once regression from v6.1.0 (#3198, #3226)
  194. * Fix command Scale buffer overflow (#3236)
  195. * Fix possible WDT due to long MQTT publish handling (#3313)
  196. * Fix command TimeDst/TimeStd invalid JSON (#3322)
  197. * Fix handling of default names when using names starting with shortcut character ",0,1 or 2 (#3392, #3600, #3618)
  198. * Fix LM75AD I2C sensor detection (#3408)
  199. * Fix iFan02 power on state (#3412, #3530)
  200. * Fix some Pow R2 and S31 checksum errors using optimized re-sync (#3425)
  201. * Fix SDM120 reporting wrong negative values to Domoticz (#3521)
  202. * Fix MQTT reconnection detection when using TasmotaMqtt library (#3558)
  203. * Fix OtaMagic when file path contains a dash (-) (#3563)
  204. * Fix Sonoff Bridge data reception when using Portisch EFM8 firmware using in data buffer length (#3605)
  205. * Add read sensor retry to DS18B20, DS18x20, DHT, SHT1X and HTU21
  206. * Add user selection of Wifi Smartconfig as define USE_SMARTCONFIG in user_config.h
  207. * Add boot loop detection and perform some solutions
  208. * Add wifi and mqtt status led blinkyblinky to be disabled by SetOption31 1. Does not work when LedPower is On (deliberate) (#871, #2230, #3114, #3155)
  209. * Add support for TM1638 switch (#2226)
  210. * Add GPIO options ButtonXn, SwitchXn and CounterXn to select INPUT mode instead of INPUT_PULLUP (#2525)
  211. * Add support for APDS9960 proximity sensor (#3051)
  212. * Add support for MPR121 controller in input mode for touch buttons (#3142)
  213. * Add support for MCP230xx for general purpose input expansion and command Sensor29 (#3188)
  214. * Add default Wifi Configuration tool as define WIFI_CONFIG_NO_SSID in user_config.h if no SSID is configured (#3224)
  215. * Add command Timers 0/1 to globally disable or enable armed timers (#3270)
  216. * Add support for CCS811 sensor (#3309)
  217. * Add Turkish language file (#3332)
  218. * Add command SerialSend4 to send binary serial data (#3345)
  219. * Add initial support for sensor MPU6050 (#3352)
  220. * Add rule triggers Wifi#Connected and Wifi#Disconnected (#3359)
  221. * Add option + to command Rule to concatenate new rule with existing rules (#3365)
  222. * Add message when JavaScript is not enabled in webbrowser (#3388)
  223. * Add build time setting of ButtonTopic and SwitchTopic (#3414)
  224. * Add iFan02 Fanspeed + and Fanspeed - command options (#3415)
  225. * Add Individual HSBColorX commands (#3430, #3615)
  226. * Add output support on MCP23008/MCP23017 (#3436)
  227. * Add modulo option to rules like rule1 on Time#Minute|5 do backlog power on;delay 200;power off endon (#3466)
  228. * Add RGB support for Domoticz (#3547)
  229. * Add all ruletimer values to command RuleTimer result message (#3571)
  230. * Add command Publish2 for publishing retained MQTT messages (#3593)
  231. * Add commands ButtonDebounce 40..1000 and SwitchDebounce 40..1000 to have user control over debounce timing. Default is 50mS (#3594)
  232. * Add RuleX debug options 8,9,10 (StopOnError) to control RuleX execution status after an exception restart (#3607)
  233. * Add rule variables %sunrise%, %sunset%, %uptime% and %time% (#3608)
  234. * Add optional MQTT_TELE_RETAIN to Energy Margins message (#3612, 3614)
  235. *
  236. * 6.1.1 20180714
  237. * Revert wifi changes (#3177)
  238. * Revert sonoff-minimal removals causing failure of wifi connection (#3177)
  239. *
  240. * 6.1.0 20180706
  241. * Remove version 3, 4 and pre 5.2 settings auto-upgrade. See https://github.com/arendst/Sonoff-Tasmota/wiki/Upgrade#migration-path
  242. * Change default CFG_HOLDER from 0x20161209 to 4617 (=0x1209) - no impact on default upgrades
  243. * Change number of supported switches from 4 to 8 (#2885, #3086)
  244. * Change BME680 driver from Adafruit to Bosch BME680 library (#2969)
  245. * Fix Pzem004T checksum error
  246. * Fix KNX bug when doing reply of sensors values
  247. * Fix rules induced LWT message
  248. * Fix possible wifi connection problem (#1366)
  249. * Fix some Pow R2 and S31 checksum errors (#1907)
  250. * Fix display selection of un-available GPIO options in Module Configuration webpage (#2718)
  251. * Fix timer re-trigger within one minute after restart (#2744)
  252. * Fix IRSend not accepting data value of 0 by David Conran (#2751)
  253. * Fix vars on rules by Adrian Scillato (#2769)
  254. * Fix bug in KNX menu by Adrian Scillato (#2770)
  255. * Fix anomalies in rules (#2778)
  256. * Fix HUE bridge V1 software version by Heiko Krupp (#2788)
  257. * Fix Hardware Watchdog restart when using event command (#2853)
  258. * Add Ukrainian language file
  259. * Add KNX support for DS18S20 Temperature sensor
  260. * Add CRC to Settings making future upgrades more fail-safe
  261. * Add feature information to Status 4
  262. * Add tools folder with python script decode-status.py for decoding some status fields like SetOption and Features
  263. * Add Slots on the KNX Web Menu to select Group Addess to receive data to trigger rules
  264. * Add two rule sets of 511 characters using commands rule1, rule2 and rule3
  265. * Add Console Commands to send KNX Commands and KNX Values
  266. * Add Slots on the KNX Web Menu to select Group Addess to send data from console commands
  267. * Add Events to trigger rules when a command or read requests is received from KNX
  268. * Add command SetOption30 to enforce Hass discovery as light group (#1784)
  269. * Add support for BlitzWolf BW-SHP2 (and Homecube, Gosund SP1) Energy Monitoring Smart Socket (#2223)
  270. * Add time in minutes to rule Time#Initialized, Time#set and Time#Minute (#2669)
  271. * Add Eastron SDM630 energy meter by Gennaro Tortone (#2735)
  272. * Add KNX communication enhancement by Adrian Scillato (#2742)
  273. * Add KNX energy data by Adrian Scillato (#2750)
  274. * Add rule support for IrReceive and RfReceive (#2758)
  275. * Add python script fw-server.py in tools folder to create a simple OTA server by Gennaro Tortone (#2759)
  276. * Add rule variables %time% for minutes since midnight, %uptime%, %sunrise% and %sunset% giving time in minutes (#2669)
  277. * Add rules %mem1% to %mem5% variable names storing data in flash (#2780)
  278. * Add rules test on %varx% or %memx% (#2780)
  279. * Add optional token %id% substituting the unique MAC address to fulltopic by Michael Graf (#2794)
  280. * Add support for Sonoff S26 Smart Socket (#2808)
  281. * Add command WebSend [<host>(:<port>,<user>:<password>)] <command> (#2821)
  282. * Add increment and decrement value to command Counter (#2838)
  283. * Add support for Sonoff iFan02 as module 44 introducing command FanSpeed 0..3 (#2839)
  284. * Add source information to command execution to be shown with logging option 3 (#2843)
  285. * Add support for uploading Sonoff Bridge firmware found in tools/fw_efm8bb1 folder build by Portisch using Web Gui File Upload (#2886)
  286. * Add command RfRaw to control Portisch firmware features
  287. * Add support for I2C temperature sensor LM75AD (#2909)
  288. * Add option 0 to command Timers disarming all timers (#2962)
  289. * Add performance improvement when updating multiple individual WS2812 pixels (#3007)
  290. * Add command SetOption28 to switch between hex or decimal Sonoff Bridge RF received data format (#3008)
  291. * Add command SetOption29 to switch between hex or decimal IR received data format
  292. * Add decimal values support for commands ADD, SUB, MULT and SCALE (#3083, #3089)
  293. * Add support for bitflags SetOption50 .. SetOption81 (#3118)
  294. *
  295. * 5.14.0 20180515
  296. * Update language files
  297. * Update TasmotaSerial to 2.0.0 allowing Hardware Serial Fallback when correct connections are configured
  298. * Change command handling
  299. * Change user_config(_override).h defines TIME_STD and TIME_DST
  300. * Change user_config(_override).h otaurl to http://sonoff.maddox.co.uk/tasmota/sonoff.bin (#2588, #2602)
  301. * Fix configuration restore regression from 5.13.1
  302. * Fix compile error when ADC is enabled and Rules are disabled (#2608)
  303. * Fix rule power trigger when no backlog command is used (#2613)
  304. * Fix several timer data input and output errors (#2597, #2620)
  305. * Fix KNX config error (#2628)
  306. * Fix sensor MHZ-19 vanishing data over time (#2659)
  307. * Fix KNX reconnection issue (#2679)
  308. * Fix DST and STD time for Southern Hemisphere by Adrian Scillato (#2684, #2714)
  309. * Add Portuguese in Brazil language file
  310. * Add SetOption26 to enforce use of indexes even when only one relay is present (#1055)
  311. * Add support for sensor SI1145 UV Index / IR / Visible light (#2496)
  312. * Add rule state test for On/Off in addition to 0/1 (#2613)
  313. * Add hardware serial option to MHZ-19 sensor (#2659)
  314. * Add Eastron SDM120 energy meter by Gennaro Tortone (#2694)
  315. * Add user entry DST/STD using commands TimeStd and TimeDst (See wiki for parameter syntax) (#2721)
  316. *
  317. * 5.13.1 20180501
  318. * Fix JSON buffers size too small for execution in some situations (#2580)
  319. * Fix configuration restore (#2591)
  320. * Add define MODULE for user selecting default model although it preferably should not be changed (#569, #2589)
  321. *
  322. * 5.13.0 20180430
  323. * Change platformio option sonoff-ds18x20 to sonoff-allsensors enabling ds18x20 and all other sensors in one image
  324. * Change status display of Ssid and SetOption
  325. * Change default option SetOption15 from 0 to 1 providing better initial PWM experience
  326. * Change webpage parameter communication
  327. * Change max number of commands in Backlog from 15 to 30 and ignore commands overflowing
  328. * Change TSL2561 driver to joba library and delete Adafruit library (#1644)
  329. * Change default parameters in user_config.h to undefined for easy installation (#1851)
  330. * Change max user configurable hold time from 10 to 25 seconds (#1851)
  331. * Change Sonoff SC JSON format (#1939)
  332. * Change Polish language to using Diacritics (#2005)
  333. * Change user_config_override usage by providing user_config_override_sample.h (#2228)
  334. * Change MQTT response topic for Energy changes from ENERGY to SENSOR (#2229, #2251)
  335. * Change default Reset configuration time from 4 seconds to 40 seconds on Button hold (#2268)
  336. * Change ESP8266 Analog JSON message from {"Analog0:123"} to {"ANALOG":{"A0:123"}} to accomodate rules (#2560)
  337. * Change Counter JSON message from {"Counter1":0,"Counter3":0} to {"COUNTER":{"C1":0,"C3":0}} to accomodate rules
  338. * Change ADS1115 JSON message from {"ADS1115":{"Analog0":123,"Analog1":123}} to {"ADS1115":{"A0":123,"A1":123}}
  339. * Fix intermittent exception when dns lookup is used while sleep is enabled
  340. * Fix 5.4.0 regression turning off single press after button hold during 4x hold time
  341. * Fix possible wifi connection problem by erasing sdk configuration parameters
  342. * Fix NTP sync to Thu Jan 01 08:00:10 1970 results in uptime 17651+ days (core2.4.1/sdk2.2.1)
  343. * Fix MAX31850 higher temperatures (#1269)
  344. * Fix freeing more code space when emulation is disabled (#1592)
  345. * Fix providing web page configuratin option for Friendly Name when no device (relay or light) is configured (#1850)
  346. * Fix compile error when define HOME_ASSISTANT_DISCOVERY_ENABLE is not set (#1937)
  347. * Fix MQTT TLS fingerprint validation (#2033)
  348. * Fix update temperature on DS18x20 drivers (#2328)
  349. * Fix compile error when not defined USE_TIMERS (#2400)
  350. * Fix configuration filename truncation when it contains spaces (#2484, #2490)
  351. * Fix Energy Today and Yesterday overflow (#2543)
  352. * Add serial debug info
  353. * Add Portuguese language file
  354. * Add Czech language file
  355. * Add Bulgarian language file
  356. * Add Domoticz dust (custom) sensors to PMS5003 and NovaFitness SDS drivers as PM1, PM2.5 and PM10
  357. * Add commands Publish, Rule, RuleTimer and Event. See Wiki about Rule restriction, usage and examples
  358. * Add sonoff-classic, sonoff-allsensors and sonoff-knx
  359. * Add some coloring to important web buttons
  360. * Add support for sensor HC-SR04 ultrasonic (#113, #1964, #2444)
  361. * Add define MQTT_TELE_RETAIN compile option default set to 0 (#1071)
  362. * Add 16 timers using commands Timer and Timers (#1091)
  363. * Add optional Timer configuration webpage to be enabled in user_config.h with define USE_TIMERS_WEB
  364. * Add Multichannel Gas sensor using MultiChannel_Gas_Sensor library (#1245)
  365. * Add Domoticz Battery and RSSI Quality (#1604)
  366. * Add command HSBColor Hue,Sat,Bri (#1642, #2203)
  367. * Add compile time support for WS2812 BRG and RBG led configurations to be defined in user_config.h (#1690)
  368. * Add optional usage of %d or %X suffices in MQTT client to append chipid (#1871)
  369. * Add optional usage of %d or %X suffices in MQTT topic to append chipid (#1871)
  370. * Add optional usage of %d or %04d in ota url to be replaced with chipid (#1871)
  371. * Add Sonoff Bridge command RfKey<x> 5 to show current RF key values either default or learned (#1884)
  372. * Add user configurable serial GPIOs to MagicHome and Arilux modules (#1887)
  373. * Add Russian language file (#1909)
  374. * Add Webserver upload preflight request support (#1927)
  375. * Add Home Assistant clear other device (#1931)
  376. * Add Restart time to Status 1 (#1938)
  377. * Add optional TSL2561 driver using library Joba_Tsl2561 to be enabled in user_config.h with define USE_TSL2561_JOBA (#1951)
  378. * Add support for sensor SHTC3 (#1967)
  379. * Add compiler check for stable lwIP version v1.4 (#1940)
  380. * Add support for multiple SHT3X sensors (#1949, #2110)
  381. * Add always suffix with device number in Mqtt discovery topic (#1962)
  382. * Add support for optional MQTT drivers to be selected in user_config.h (#1992)
  383. * Add optional Arduino OTA support to be enabled in user_config.h (#1998)
  384. * Add diacritics to Polish language file (#2005)
  385. * Add Hungarian language file (#2024)
  386. * Add support for Nova Fitness SDS011 and possibly SDS021 particle concentration sensor (#2070)
  387. * Add single decimal precision to Nova Fitness SDS0x1 sensor values (#2093)
  388. * Add Chinese (Traditional) in Taiwan language file (#2108)
  389. * Add Sonoff SC domoticz support for Sound level as Counter and Air quality (#2118)
  390. * Add a second TLS fingerprint to allow switching keys in TLS mode (#2033, #2102)
  391. * Add display of remaining pulse time to command PulseTime (#2085)
  392. * Add additional time offset to Wifi Retry based on device mac address (#2089)
  393. * Add command Color6 RRGGBB for Clock hour marker color and command Rotation pixels for Clock rotation (#2092)
  394. * Add HTML language header in local language (#2123)
  395. * Add command PowerDelta 0..100 (percentage) to Energy monitoring devices to report on active power load change (#2157)
  396. * Add Restart Reason to Status 1 report (#2161)
  397. * Add command Channel 0..100 to control dimmer value for individual color channels (#2111, #2203)
  398. * Add support for Hardware Serial bridge using commands SerialDelimiter, Baudrate and SerialSend. Supports 8N1 and text only (#2182)
  399. * Add support for Software Serial bridge using commands SerialDelimiter, SBaudrate and SSerialSend. Supports 8N1 and text only (#2190)
  400. * Add support for Zengge WF017 PWM Led strip controller (#2202)
  401. * Add PWM status to command State if PWM enabled (#2203)
  402. * Add all FriendlyNames to Status information (#2208)
  403. * Add Channel status information (#2211)
  404. * Add hexadecimal Data entry to command IrSend using 0x notation (#1290, #2314)
  405. * Add Home Assistant MQTT Discovery for Buttons and change SetOption19 response (#2277)
  406. * Add multiple color entry support for command Led like Led2 120000 001200 000012 setting led2 as Red, Led3 as Green and Led4 as Blue (#2303)
  407. * Add hexadecimal RGB color entry on RGBCW leds (#2304)
  408. * Add support for SGP30 gas and air quality sensor (#2307)
  409. * Add optional Sunrise and Sunset timers with commands Latitide and Longitude to be enabled with define USE_SUNRISE in user_config.h (#2317)
  410. * Add timer sunrise and sunset offset (#2378)
  411. * Add user selectable defines for Sunrise/set Dawn option (#2378)
  412. * Add optional KNX IP Protocol Support (#2402)
  413. * Add random window to timers (#2447)
  414. * Add Greek language file (#2491)
  415. * Add support for Sonoff Pow R2 (#2340)
  416. * Add GPIO_User to GPIO02 for all Sonoff T1 (#2524)
  417. *
  418. * 5.12.0 20180209
  419. * Change library PubSubClient.h define MQTT_MAX_PACKET_SIZE from 512 to 1000 for Home Assistant support
  420. * Change relation of define MESSZ being dependent on PubSubClient.h define MQTT_MAX_PACKET_SIZE
  421. * Change command color parameter input checks to less strict for Home Assistant support
  422. * Change command Ina219Mode into command Sensor13
  423. * Change commands HlwPCal, HlwUCal and HlwICal to PowerCal, VoltageCal and CurrentCal to be used for both Pow and S31 calibration
  424. * Change commands HlwPSet, HlwUSet and HlwISet to PowerSet, VoltageSet and CurrentSet to be used for both Pow and S31 calibration
  425. * Change uptime from hour to second resulting in a display of 123T13:45:21 where 123 is days
  426. * Change module name Wemos D1 mini into Generic (#1220)
  427. * Change HTML from width=100% to style=width:100% supporting HTML5 (#1358)
  428. * Change OSWATCH_RESET_TIME (Blocked loop) from 30 to 120 seconds to allow slow networks (#1556)
  429. * Change WIFI_MANAGER_SEC into WIFI_CONFIG_SEC (#1616)
  430. * Change function pointers code to save code space and memory (#1683)
  431. * Change webserver argument processing gaining 5k code space (#1705)
  432. * Change weblog memory usage (#1730, #1793, #1819)
  433. * Update TasmotaSerial library to 1.1.0
  434. * Update language files Italian (#1594), Dutch (#1723) and Spanish (#1722)
  435. * Fix Non-English JSON temperature unit attachement
  436. * Fix Arilux RF induced exception by moving interrupt handler to iram on non ESP8266/Arduino lib v2.3.0
  437. * Fix truncated command names and wrong response for DomoticzSwitchIdx (#1571)
  438. * Fix %-sign issue as printf escape character in Humidity and Sonoff SC (#1579)
  439. * Fix DS18B20 temperature JSON decimal dot (#1561)
  440. * Fix Energy JSON message (#1621)
  441. * Fix IRSend parameter translation (#1636)
  442. * Fix TSL2561 device detection (#1644, #1825)
  443. * Fix BME680 teleperiod resistance measuring (#1647)
  444. * Fix Energy Monitoring Energy Today and Energy Total reading after restart (#1648)
  445. * Fix IRReceive Data value (#1663)
  446. * Fix Energy Monitoring Energy Period roll-over (#1688)
  447. * Fix compiler warnings (#1774)
  448. * Fix command PWM response if no PWM channel is configured (#1783)
  449. * Add locale Decimal Separator to Web sensor page
  450. * Add ColorTemperature to light status message
  451. * Add command PowerOnState option 5 which inverts PulseTime and allows for delayed always on after power on
  452. * Add OtaMagic two step Web server OTA upgrade using filename-minimal image if OTA free space is too small
  453. * Add support for PMS5003 and PMS7003 particle concentration sensor
  454. * Add command SetOption21 1 to allow Energy Monitoring when power is off on Sonoff Pow and Sonoff S31 (#1420)
  455. * Add Chinese language file (#1551)
  456. * Add French language file (#1561)
  457. * Add Spanish language file (#1589)
  458. * Add HTTP Allow Cross Origin removed from ESP8266/Arduino lib v2.4.0 (#1572)
  459. * Add Home Assistant MQTT Discovery for switch and light to be enabled by command SetOption19 1 (#1534) or define HOME_ASSISTANT_DISCOVERY_ENABLE in user_config.h (#1685)
  460. * Add command State to retrieve device state information (same data as teleperiod state and status 11 in slightly different JSON format)
  461. * Add optional login to Webserver AP mode (#1587, #1635)
  462. * Add command Sensor15 2 to start MHZ19(B) Zero Point Calibration (#1643)
  463. * Add support for Sonoff S31 Smart Socket with Power Consumption Detection (#1626)
  464. * Add command SetOption20 to allow update of Dimmer/Color/Ct without turning power on (#1719, #1741)
  465. * Add NTP sync time slot based on chip id (#1773)
  466. * Add cursor pointer to web button (#1836)
  467. *
  468. * 5.11.1 20180107
  469. * Fix Sonoff Pow command handling (#1542)
  470. *
  471. * 5.11.0 20180107
  472. * Minor webpage HTML optimizations (#1358)
  473. * Updated German translation (#1438)
  474. * Change Sonoff Pow Energy MQTT data message and consolidate Status 8 into Status 10
  475. * Change ADS1115 default voltage range from +/-2V to +/-6V (#1289)
  476. * Change text to Active for 3 minutes (#1364)
  477. * Change Wemo SetBinaryState to distinguish from GetBinaryState (#1357)
  478. * Change output of HTTP command to valid JSON and Array only (#1363)
  479. * Removed all MQTT, JSON and Command language defines from locale files and set fixed to English (#1473)
  480. * Renamed commands Color2,3,4 to Color3,4,5
  481. * Fix BME280 calculation (#1051)
  482. * Fix Sonoff Bridge missed learned key if learned data contains 0x55 (End of Transmission) flag (#1095, #1294)
  483. * Fix PWM initialization in Dimmer/Color mode (#1321)
  484. * Fix Wemo Emulation (#1357)
  485. * Fix display of build date and time in non-english locale (#1465)
  486. * Fix Wemo and Hue emulation by adding M-Search response delay (#1486)
  487. * Add libraries Adafruit_BME680-1.0.5, Adafruit_Sensor-1.0.2.02, TasmotaSerial-1.0.0 and TSL2561-Arduino-Library
  488. * Add command Color2 to set color while keeping same dimmer value
  489. * Add device function pointers
  490. * Add support for SenseAir S8 CO2 sensor
  491. * Add color led signal to Carbon Dioxide (CO2) sensors using defines CO2_LOW and CO2_HIGH in user_config.h
  492. * Add support for Domoticz Air Quality sensor to be used by MH-Z19(B) and SenseAir sensors
  493. * Add support for PZEM004T energy sensor
  494. * Add support for iTead SI7021 temperature and humidity sensor by consolidating DHT22 into AM2301 and using former DHT22 as SI7021 (#735)
  495. * Add support for BME680 using adafruit libraries (#1212)
  496. * Add support for MH-Z19(B) CO2 sensor (#561, #1248)
  497. * Add multipress support and more user configurable GPIO to Sonoff Dual R2 (#1291)
  498. * Add support for TSL2561 using adafruit library (#661, #1311)
  499. * Add support for SHT3x (#1314)
  500. * Add support for Arilux LC06 (#1414)
  501. * Add Italian language file (#1449)
  502. * Add 2nd Gen Alexa support to Wemo emulation discovery (#1357, #1450)
  503. * Add define for additional number of WS2812 schemes (#1463)
  504. *
  505. * 5.10.0 20171201
  506. * Upgrade library ArduinoJson to 5.11.2
  507. * Upgrade library IRRemoteEsp8266 to 2.2.1 + 2 commits but disabled some protocols (code size reduction)
  508. * Upgrade library NeoPixelBus to 2.2.9
  509. * Upgrade library OneWire to 2.3.3 + 6 commits and disabled CRC lookup-table (#define ONEWIRE_CRC8_TABLE 0) (code size reduction)
  510. * Update library PubSubClient to 2.6 + 9 commits and additional delay (#790)
  511. * Update core_esp8266_wiring_digital.c to latest (staged) level
  512. * Patch library I2Cdevlib-Core for esp8266-core 2.4.0-rc2 compatibility
  513. * Remove command EnergyReset 1..3 now replaced by EnergyReset1 to EnergyReset3
  514. * Remove spaces in JSON messages (code size reduction)
  515. * Renamed xsns_05_ds18x20.ino to xsns_05_ds18x20_legacy.ino still using library OneWire and providing dynamic sensor scan
  516. * Fix possible iram1_0_seg compile error by shrinking ICACHE_RAM_ATTR code usage
  517. * Fix PWM watchdog timeout if Dimmer is set to 100 or Color set to 0xFF (#1146)
  518. * Fix Sonoff Bridge Learn Mode hang caused by unrecognised RF code (#1181)
  519. * Fix blank console log window by using XML character encoding (#1187)
  520. * Fix wrong response name for command HlwISet (#1214)
  521. * Fix DHT type sensor timeout recognition by distinguish "signal already there" from "timeout" (#1233)
  522. * Add fixed color options 1..12 to command Color
  523. * Add + (plus) and - (minus) to commands Dimmer (+10/-10), Speed and Scheme
  524. * Add + (plus) and - (minus) to command Color to select 1 out of 12 preset colors
  525. * Add + (plus) and - (minus) to command Ct to control ColdWarm led ColorTemperature (+34/-34)
  526. * Add commands EnergyReset1 0..42500, EnergyReset2 0..42500 and EnergyReset3 0..42500000
  527. * to (Re)set Energy Today, Yesterday or Total respectively in Wh (#406, #685, #1202)
  528. * Add optional ADS1115 driver as alternative for unsupported I2Cdevlib in esp8266-core 2.4.0-rc2
  529. * Add support for INA219 Voltage and Current sensor to be enabled in user_config.h with define USE_INA219
  530. * Add support for Arilux LC11 (Clearing RF home code when selecting no Arilux module)
  531. * Add support for WS2812 RGBW ledstrips to be enabled in user_config.h with define USE_WS2812_CTYPE (#1156)
  532. * Add SettingsSaveAll routine to command SaveData to be used before controlled power down (#1202)
  533. * Add option PUSHBUTTON_TOGGLE (SwitchMode 7) to allow toggling on any switch change (#1221)
  534. * Add new xdrv_05_ds18x20.ino free from library OneWire and add the following features:
  535. * Add support for DS1822
  536. * Add forced setting of 12-bit resolution for selected device types (#1222)
  537. * Add read temperature retry counter (#1215)
  538. * Fix lost sensors by performing sensor probe at restart only thereby removing dynamic sensor probe (#1215)
  539. * Fix sensor address sorting using ascending sort on sensor type followed by sensor address
  540. * Rewrite JSON resulting in shorter message allowing more sensors in default firmware image:
  541. * "DS18B20-1":{"Id":"00000483C23A","Temperature":19.5},"DS18B20-2":{"Id":"0000048EC44C","Temperature":19.6}
  542. * Add additional define in user_config.h to select either single sensor (defines disabled), new multi sensor (USE_DS18X20) or legacy multi sensor (USE_DS18X20_LEGACY)
  543. * Add clock support for more different pixel counts (#1226)
  544. * Add support for Sonoff Dual R2 (#1249)
  545. * Add FriendlyName to web page tab and add program information to web page footer (#1275)
  546. *
  547. * 5.9.1 20171107
  548. * Add external sensor function pointer interface to enable easy sensor addition
  549. * Add support for ADS1115 to be enabled in user_config.h and needs libraries i2cdevlib-Core and i2cdevlib-ADS1115 (#338, #660)
  550. * Fix Backup Configuration file download failure by defining proper file size (#1115)
  551. * Fix Exception 26 and empty console screen after usage of command WakeupDuration (#1133)
  552. * Fix some changed iTead web links in README.md (#1137)
  553. *
  554. * 5.9.0 20171030
  555. * Rewrite code (partly) using Google C++ Style Guide (https://google.github.io/styleguide/cppguide.html)
  556. * Rewrite code by using command lookup tables and javascript (client side) web page expansions
  557. * Change HTML/CSS to enable nicer form field entry
  558. * Change default PWM assignments for H801 RGB(CW) led controller to support optional Color/Dimmer control
  559. * GPIO04 (W2) from GPIO_PWM2 to GPIO_USER to be user configurable for GPIO_PWM5 (second White - Warm if W1 is Cold)
  560. * GPIO12 (Blue) GPIO_PWM3 no change
  561. * GPIO13 (Green) from GPIO_PWM4 to GPIO_PWM2
  562. * GPIO14 (W1) from GPIO_PWM1 to GPIO_USER to be user configurable for GPIO_PWM4 (first White - Cold or Warm)
  563. * GPIO15 (Red) from GPIO_PWM5 to GPIO_PWM1
  564. * Change default PWM assignments for MagicHome RGB(W) led controller to support optional Color/Dimmer control
  565. * GPIO05 (Green) from GPIO_PWM4 to GPIO_PWM2
  566. * GPIO12 (Blue) from GPIO_PWM5 to GPIO_PWM3
  567. * GPIO13 (White) GPIO_USER to be user configurable for GPIO_PWM4 (White - Cold or Warm)
  568. * GPIO14 (Red) from GPIO_PWM3 to GPIO_PWM1
  569. * Change default PWM assignment for Witty Cloud to support optional Color/Dimmer control (#976)
  570. * GPIO12 (Green) from GPIO_PWM4 to GPIO_PWM2
  571. * GPIO13 (Blue) from GPIO_PWM5 to GPIO_PWM3
  572. * GPIO15 (Red) from GPIO_PWM3 to GPIO_PWM1
  573. * Change when another module is selected now all GPIO user configuration is removed
  574. * Change command name IRRemote to IRSend (#956)
  575. * Remove Arduino IDE version too low warning as it interferes with platformio.ini platform = espressif8266_stage
  576. * Fix command FullTopic entry when using serial or console interface
  577. * Fix possible UDP syslog blocking
  578. * Fix minimum TelePeriod of 10 seconds set by web page
  579. * Fix command GPIOx JSON response (#897)
  580. * Fix inverted relay power on state (#909)
  581. * Fix compile error when DOMOTICZ_UPDATE_TIMER is not defined (#930)
  582. * Fix alignment of web page items in some browsers (#935)
  583. * Fix setting all saved power settings to Off when SetOption0 (SaveState) = 0 (#955)
  584. * Fix timezone range from -12/12 to -13/13 (#968)
  585. * Fix Southern Hemisphere TIME_STD/TIME_DST (#968)
  586. * Fix TLS MQTT SSL fingerprint test (#970, #808)
  587. * Fix virtual relay status message used with Color/Dimmer control (#989)
  588. * Fix command IRSend and IRHvac case sensitive parameter regression introduced with version 5.8.0 (#993)
  589. * Fix pressure calculation for some BMP versions regression introduced with version 5.8.0i (#974)
  590. * Fix Domoticz Dimmer set to same level not powering on (#945)
  591. * Fix Blocked Loop when erasing large flash using command reset 2 (#1002)
  592. * Fix relay power control when light power control is also configured as regression from 5.8.0 (#1016)
  593. * Fix Mqtt server mDNS lookup only when MqttHost name is empty (#1026)
  594. * Add debug information to MQTT subscribe
  595. * Add translations to I2Cscan
  596. * Add translation to BH1750 unit lx
  597. * Add light scheme options (Color cycle Up, Down, Random) and moving WS2812 schemes up by 3
  598. * Add Domoticz counter sensor to IrReceive representing Received IR Protocol and Data
  599. * Add option 0 to MqttHost to allow empty Mqtt host name
  600. * Add support for Arilux AL-LC01 RGB Led controller (#370)
  601. * Add esp8266 de-blocking to PubSubClient library (#790)
  602. * Add Domoticz sensors for Voltage and Current (#903)
  603. * Add platformio OTA upload support (#928, #934)
  604. * Add warning to webpage when USE_MINIMAL is selected (#929)
  605. * Add smoother movement of hour hand in WS2812 led clock (#936)
  606. * Add support for Magic Home RGBW and some Arilux Led controllers (#940)
  607. * Add command SetOption15 0 (default) for command PWM control or SetOption15 1 for commands Color/Dimmer control to PWM RGB(CW) leds (#941)
  608. * Add Domoticz counter sensor to Sonoff Bridge representing Received RF code (#943)
  609. * Add support for Luani HVIO board (https://luani.de/projekte/esp8266-hvio/) (#953)
  610. * Add PWM initialization after restart (#955)
  611. * Add IR Receiver support. Disable in user_config.h (#956)
  612. * Add support for inverted PWM (#960)
  613. * Add Sea level pressure calculation and Provide command Altitude (#974)
  614. * Add support for up to 8 relays (#995)
  615. * Add commands RfSync, RfLow, RfHigh, RfHost and RfCode to allow sending custom RF codes (#1001)
  616. * Add retain to ENERGY messages controlled by command SensorRetain (#1013)
  617. * Add commands Color2, Color3, Color4, Width2, Width3, Width4 and SetOption16 to set Ws2812 Clock parameters (#1019)
  618. * Add German language file (#1022)
  619. * Add support for connecting to MQTT brokers without userid and/or password (#1023)
  620. * Add support for esp8266 core v2.4.0-rc2 (#1024)
  621. * Add commands PwmRange 1,255..1023 and PwmFrequency 1,100..4000 (#1025)
  622. * Add Polish language file (#1044, #1047)
  623. * Add support for KMC 70011 Power Monitoring Smart Plug (#1045)
  624. * Add support for VEML6070 I2C Ultra Violet level sensor (#1053)
  625. * Add light turn Off Fade (#925)
  626. * Add IrSend command option Panasonic as IrSend {"Protocol":"Panasonic", "Bits":16388, "Data":<Panasonic data>}
  627. * where 16388 is 0x4004 hexadecimal (#1014)
  628. * Add retry counter to DHT11/21/22 sensors (#1082)
  629. *
  630. * 5.8.0 20170918
  631. * Remove the need for NeoPixelBus library for Hue support
  632. * Consolidate WS2812 into Sonoff Led for flexible future led strip library changes
  633. * Invert WS2812 fade speed to align with Sonoff led (Speed 1 = fast, Speed 8 = slow)
  634. * Remove upper case MQTT receive buffer
  635. * Reduce code and string length for output of commands Modules and GPIOs
  636. * Add Sonoff SC debug information
  637. * Change syslog service
  638. * Removed webserver syslog disable as now no longer needed
  639. * Increased default MQTT message size from 368 to 405 bytes while keeping MQTT_MAX_PACKET_SIZE = 512 (because we can)
  640. * Fix MQTT Offline or Remove MQTT retained topic code
  641. * Fix Domoticz loop when Emulation is selected
  642. * Add blink to WS2812 and Sonoff Led (#643)
  643. * Add option WIFI_WAIT (5) to command WifiConfig to allow connection retry to same AP without restart or update flash (#772, #869)
  644. * Add support for Witty Cloud (#794)
  645. * Add GPIO14 to Sonoff Dual (#797, #839)
  646. * Add support for Yunshan Wifi Relay (#802)
  647. * Add GPIO16 input pulldown (#827)
  648. * Add timeout to DHT and DS18B20 sensors (#852)
  649. * Fix watchdog timeout caused by lack of stack space by moving to heap (#853)
  650. * Allow LogPort and MqttPort up to 65535 and add LogPort tot Status 3 (#859)
  651. * Allow command SwitchTopic in group mode (#861)
  652. * Allow command SwitchMode if no switches are defined (#861)
  653. * Add optional dimmer parameter to command Wakeup for WS2812, AiLight, Sonoff B1, Led and BN-SZ01 (#867)
  654. * Fix basic On, Off, Toggle, Blink and BlinkOff commands when other language is selected (#874)
  655. *
  656. * 5.7.1 20170909
  657. * Remove leading spaces from MQTT data
  658. * Fix webconsole special character entry
  659. * Allow # as prefix for color value
  660. * Fix Alexa detection and Hue App Update Request (#698, #854)
  661. *
  662. * 5.7.0 20170907
  663. * Shrink module configuration webpage
  664. * Fix settings order during startup to allow for displaying debug messages
  665. * Fix some string length issues
  666. * Add more string length tests by using strncpy
  667. * Add Ai-Thinker RGBW led (AiLight)
  668. * Add Power check and add PulseTime to power check at startup (#526)
  669. * Add Supla Espablo support (#755)
  670. * Add more precision to Sonoff Pow period and power results using command WattRes 0|1 (#759)
  671. * Add basic internationalization and localization (#763)
  672. * Add more Sonoff Pow range checking (#772)
  673. * Fix invalid JSON (#786, #822)
  674. * Add duplicate check to received RF signal within 2 seconds for Sonoff Bridge (#810)
  675. *
  676. * 5.6.1 20170818
  677. * Change module list order in webpage
  678. * Fix Sonoff T1 1CH and 2CH configuration (#751)
  679. *
  680. * 5.6.0 20170818
  681. * Fix Sonoff Pow intermittent exception 0
  682. * Change Sonoff Pow sending Domoticz telemetry data only
  683. * Add Ai-Thinker RGBW led (AiLight) (experimental)
  684. * Add NeoPixelBus library to Sonoff Led for Hue support
  685. * Add user configurable GPIO4 and GPIO5 to module Sonoff Bridge
  686. * Add Sonoff B1 RGBCW led support with command Color RRGGBBCCWW (#676)
  687. * Add command CT 152..500 to Sonoff Led and Sonoff B1 to control Color Temperature
  688. * Add Cold-Warm slider to web page for Sonoff Led and Sonoff B1
  689. * Add CT parameter to Hue
  690. * Add Sonoff T1 support (#582)
  691. * Add AnalogInput0 if configured as Analog Input to webpage (#697, #746)
  692. * Add command SetOption14 0|1 to enable interlock mode (#719, #721)
  693. * Fix Mitsubishi HVAC IR power controll (#740)
  694. *
  695. * 5.5.2 20170808
  696. * Extent max number of WS2812 pixels from 256 to 512 (#667)
  697. * Add OTA handling if server responds with no update available (#695)
  698. * Removed undocumented command FlashMode (#696)
  699. * Fix compile time error message due to increased message buffer size (#703)
  700. *
  701. * 5.5.1 20170805
  702. * Fix Sonoff Rf Bridge issues
  703. * Add Sonoff RF Bridge MQTT messages on received and learned RF signal
  704. * Add command VoltRes 0|1 to select voltage resolution to 0.1 V (#654)
  705. * Add averaging to Analog input (#686)
  706. * Add Energy tele data on Sonoff Pow Threshold change (#688)
  707. * Fix inconsistent property names in Messages (#690)
  708. *
  709. * 5.5.0 20170730
  710. * Reduce code space by removing the following commands as they are replaced by SetOption alternatives:
  711. * SaveState = SetOption0
  712. * ButtonRestrict = SetOption1
  713. * Units = SetOption2
  714. * MQTT = SetOption3
  715. * MQTTResponse = SetOption4
  716. * TempUnit = SetOption8
  717. * Smoothing WS2812 animation poll, invert fade speed and max allowed wakeup time down to 3000 seconds
  718. * Fix initial button press detection
  719. * Add support for Sonoff RF Bridge 433 using command RfKey
  720. * Fix regression from 5.0.7 by increasing message buffer size from 360 to 368 to accomodate 4 x DS18x20 sensors (#637)
  721. * Add GroupTopic to Topic test when using ButtonTopic/SwitchTopic to send either ON/OFF or TOGGLE (#642)
  722. * Adjust HLW calibration limits to accomodate HuaFan device and add commands HlwPSet, HlwUSet and HlwISet (#654)
  723. *
  724. * 5.4.0 20170725
  725. * Fix command reset regression introduced in 5.2.0
  726. * Increase polling from 0.1 second to 0.05 second
  727. * Add multipress to all buttons
  728. * Fix button 1 double press behaviour on multi relay devices
  729. * Add support for Hua Fan Smart Socket (#479)
  730. * Add support for Sonoff 4ch Pro (#565)
  731. * Add command SetOption13 1 to allow immediate action on single button press
  732. * (disables multipress, hold and unrestricted commands) (#587)
  733. *
  734. * 5.3.0 20170715
  735. * Major Hue rewrite which might introduce Alexa problems. If so, initiate an issue
  736. * Add support for Sonoff Led and BN-SZ01 Ceiling Led brightness control to Hue
  737. * Fix Sonoff Led Power, Dimmer and Color MQTT response (#176)
  738. * Add commands Delay and Backlog to allow multiple commands at once separated by ";" (#593)
  739. * Use default flashmode DOUT to solve restart hangs on esp8285 chips (#453, #598)
  740. * Change Web console column width from 99 to 300 (#599)
  741. *
  742. * 5.2.4 20170703
  743. * Removed flash mode update after selecting different module solving esp8285 related problems
  744. * Add device type flag to sonoff_template.ino
  745. * Change Sonoff Led Wakeup and add support for Sonoff BN-SZ01 Led (#567)
  746. *
  747. * 5.2.3 20170630
  748. * Change Sonoff Led color conversion code
  749. * Fix SetOption12 handling
  750. * Simplify auto configuration upgrade
  751. * Add option Upgrade <version_number> to only upgrade to any higher version (Old PR #213)
  752. * Change FallbackTopic to cmnd/<MQTTClient>/<command> <parameter> bypassing FullTopic and Prefix (#538)
  753. *
  754. * 5.2.2 20170625
  755. * Add configuration SaveAddress to Status 1 and Information Page
  756. * Change Sonoff Led Color conversion from AtoH to strtol
  757. * Fix possible wrong uploads due to configuration overwrites (#542)
  758. * Fix payload negative numbers (#547)
  759. *
  760. * 5.2.1 20170622
  761. * Fix Restore Configuration in case of lower version
  762. * Revert auto configuration upgrade allowing easy upgrade which was removed in version 5.2.0
  763. * Fix config auto upgrade from versions below version 4.1.1 (#530)
  764. *
  765. * 5.2.0 20170619
  766. * Add command SetOption12 1 to disable newly released configuration flash rotate to reduce flash wear
  767. * Fix command CounterDebounce by removing test for active GPIO (#524)
  768. * Add command SetOption33 1..250 to allow user configure POW Max_Power_Retry count (#525)
  769. *
  770. * 5.1.7 20170616
  771. * Prep removal of SetOptions alternatives
  772. * Restore webpage upgrade error messages removed in 5.1.5
  773. * Add hold button functionality to buttons 2 to 4
  774. * Add command SetOption32 1..100 to set Key Hold Time from 0.1 seconds to 10 seconds (#200)
  775. * Allow slashes in Topic, GroupTopic, ButtonTopic and SwitchTopic (#507)
  776. * Changed webpage form actions from post to get and use relative path url (#434, #522)
  777. *
  778. * 5.1.6 20170606
  779. * Shrink code
  780. * Removed online configuration of Domoticz In and Domoticz Out MQTT strings
  781. * Removed commands DomoticzInTopic and DomoticzOutTopic
  782. * Add define KEY_HOLD_TIME to configure button hold threshold before sending MQTT Hold message
  783. * Add command StateText4 to configure button MQTT Hold text (= MQTT_CMND_HOLD)
  784. * Add command SetOption11 0|1 to swap pushbutton single and double press functionality (#200)
  785. * Add command SwitchMode<x> 5 (PUSHBUTTONHOLD) and 6 (PUSHBUTTONHOLD_INV) (#489)
  786. *
  787. * 5.1.5 20170604
  788. * Shrink code in preparation to ESP8266-Arduino 2.4.0-rc1
  789. * Add effect parameter to HUE Device (#464)
  790. *
  791. * 5.1.4 20170601
  792. * Removed pre-compiled versions from repository as they are available within the release
  793. * Changed HUE Device type to color supporting version (#464)
  794. * Fix compile error when BE_MINIMAL is selected (#467, #476)
  795. * Add multiple compiled versions to release using updated Travis script and platformio.ini (#467)
  796. *
  797. * 5.1.3 20170520
  798. * Add Domoticz Counter
  799. *
  800. * 5.1.2 20170519
  801. * Fix Counter/Timer JSON message and update Counter/Timer on webpage
  802. * Fix WS2812 Domoticz related regression issues
  803. *
  804. * 5.1.1 20170517
  805. * Allow command FullTopic in group mode
  806. * Prepare for more use of RTC memory
  807. * Add independant WS2812 led string power control (#386, #390)
  808. * Add command Counter<x> to control up to four GPIO falling edge interrupt counters or timers (#459)
  809. * Add command CounterType<x> to select between pulse counting or pulse timing
  810. * Add command CounterDebounce to select global counter debounce time in mSec
  811. *
  812. * 5.1.0 20170513
  813. * Fix Offline/Removal of retained topic when FullTopic is changed
  814. * Add FullTopic to MQTT Configuration and Information web pages
  815. * Add license model GPLv3 (#188)
  816. *
  817. * 5.0.7 20170511
  818. * Fix possible exception 28 on empty command
  819. * Add command SetOption0 as replacement for SaveState
  820. * Add command SetOption1 as replacement for ButtonRestrict
  821. * Add command SetOption2 as replacement for Units
  822. * Add command SetOption4 as replacement for MqttResponse
  823. * Add command SetOption8 as replacement for TempUnit
  824. * Add command SetOption10 On|Off to select between Offline or Removing previous retained topic (#417, #436)
  825. *
  826. * 5.0.6 20170510
  827. * Remove hyphen in case of a single DHT sensor connected (#427)
  828. * Add command MqttRetry <seconds> to change default MQTT reconnect retry timer from minimal 10 seconds (#429)
  829. *
  830. * 5.0.5 20170508
  831. * Add command FullTopic with tokens %topic% (replaced by command Topic value) and
  832. * %prefix% (replaced by command Prefix<x> values) for more flexible topic definitions (#244)
  833. * See wiki > MQTT Features https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Features for more information
  834. *
  835. * 5.0.4 20170505
  836. * Add Sonoff Pow Energy Total up to 40 MWh
  837. * Add command EnergyReset 1|2|3 to reset Energy counters (#406)
  838. * Fix Domoticz Energy logging (#411)
  839. * Add command PowerOnState 4 to keep relay always on and disabling all power control (#418)
  840. *
  841. * 5.0.3 20170504
  842. * Add command SensorRetain on|off to enable retaining of mqtt message tele/sonoff/SENSOR (#74)
  843. * Change WifiConfig timeout from 60 seconds to 180 seconds (#212)
  844. * Change Sonoff Touch command Ledstate functionality by turning led on if power is off (#214)
  845. * Add 4 seconds delay after power on before enabling button to workaround Wemos D1 mini RTS circuit (#380)
  846. *
  847. * 5.0.2 20170503
  848. * Reset SaveData, SaveState and MqttResponse to default values due to rearranging settings
  849. * Moved some settings to flag area
  850. * Add command TempUnit Celsius|Fahrenheit for selecting Celsius or Fahrenheit (#347)
  851. * Add command TempRes 0..3 for selecting Temperature Resolution (#347)
  852. * Add command HumRes 0..3 for selecting Humidity Resolution (#347)
  853. * Add command PressRes 0..3 for selecting Pressure Resolution (#347)
  854. * Add command EnergyRes 0..5 for selecting Energy Resolution (#347)
  855. * Add "TempUnit":"C|F" to sensor JSON output (#347)
  856. * Add support for up to three DHT type sensors each using a different GPIO (#339, #404)
  857. *
  858. * 5.0.1 20170429
  859. * Adjust Sonoff SC messages to prepare for display feature
  860. * Move static data from RAM to Flash
  861. * Fix PowerOnState for some devices not reporting "Power on" state (#284, #380, #383)
  862. *
  863. * 5.0.0 20170425
  864. * Memory status message update
  865. * Fix setting migration to better preserve settings during move (#382)
  866. * Best practice is first doing a Backup Configuration before installing version 5.0.0
  867. * Reset save count after setting move
  868. * Start using new linker script without SPIFFS
  869. *
  870. * 4.2.0 20170424
  871. * Prepare for SPIFFS removal by moving settings to EEPROM area
  872. * Fix compilation error when webserver is disabled (#378)
  873. *
  874. * 4.1.3 20170410
  875. * Add user configuarble GPIO to module S20 Socket and Slampher
  876. * Add support for Sonoff SC (#112)
  877. * Set PWM frequency from 1000Hz to 910Hz as used on iTead Sonoff Led firmware (#122)
  878. * Set Sonoff Led unconfigured floating outputs to 0 to reduce exceptions due to power supply instabilities (#122)
  879. * Add Access Point Mac Address to Status 11 and Telemetry (#329)
  880. * Fix DS18B20 negative temperature readings (#334)
  881. *
  882. * 4.1.2 20170403
  883. * Rename Unrecognised command to Unknown command
  884. * Remove all command lists
  885. * Remove command SmartConfig (superseded by WifiConfig)
  886. * Fix boot loop when selecting module Sonoff 4CH or Sonoff Touch on non ESP8285 hardware
  887. * Add optional support for Toshiba and Mitsubishi HVAC IR control (needs updated IRremote8266 library) (#83, #257)
  888. * Add all configured switches to Domoticz Configuration web page (#305)
  889. * Fix compile error when selecting WS2812 DMA (#313)
  890. *
  891. * 4.1.1 20170329
  892. * Fix default Telemetry for command Prefix3
  893. * Fix webserver Module parameters for disabled select
  894. * Fix sensor status for enabled switches
  895. * Remove Light as alternative for Power (save code space)
  896. * Remove migration option from pre V3 (code cleanup)
  897. * Remove unofficial SPIFFS support (code cleanup)
  898. * Remove command list when unknown command is entered (save code space)
  899. * Rename Status11 json from StatusPWR to unique StatusSTS
  900. * Rename command Gateway to IPAddres2, Subnetmask to IPAddress3 and DnsServer to IPAddress4 (save code space)
  901. * Add Command MqttResponse to select either command or RESULT topic as response (#258)
  902. * Add command StateText1 to StateText3 to assign MQTT_STATUS_OFF, MQTT_STATUS_ON and MQTT_CMND_TOGGLE respectively (#286)
  903. * Remove restart after IPAddress changes (#292)
  904. * Add support for MAX31850 in xsns_ds18x20.ino (#295)
  905. * Fix possible uptime update misses (#302)
  906. *
  907. * 4.1.0 20170325
  908. * Change static IP addresses in user_config.h from list (using commas) to string (using dots)
  909. * Unify display result of commands Modules, Module and Gpios
  910. * Rewrite Module selection web page to bring size down from 18651 to 4319 bytes (!) (#234, #240)
  911. * Add basic support for (Lixada) H801 RGBWW controller (#252)
  912. * Add command Prefix1 to Prefix3 to assign SUB_PREFIX, PUB_PREFIX and PUB_PREFIX2 respectively (#255)
  913. * Add static ip addresses to flash (#262)
  914. * Add commands IpAddress, Gateway, Subnetmask and DnsServer to select static ip addresses (#273)
  915. *
  916. * 4.0.8 20170321
  917. * Fix entering non-numeric webpassword
  918. * Force selection between TLS or Webserver due to memory restraint (#240)
  919. * Allow entering empty string using "0" for selected commands (#242)
  920. * Fix exception when posting commands to web console containing % (#250)
  921. *
  922. * 4.0.7 20170319
  923. * Increased Sonoff Led PWM frequency from 432 to 1000
  924. * Fix possible watch dog reboot after changing module type on web page
  925. * Fix reporting of GPIO usage from web page
  926. * Fix Sonoff Led blank during firmware upgrade
  927. * Fix Sonoff Led flicker and possible flash corruption by using latest Arduino-esp8266 versions
  928. * of pwm core files included in sonoff library (#211)
  929. * Add PWM output control with commands PWM1 to PWM5 using user selectable GPIOs (#211)
  930. * Fix exceptions due to low values of commands HlwPCal (10000), HlwUCal (1000) and HlwICal (2500) (#223)
  931. * Add Switch state to sensor status (#227, #233)
  932. * Add user configuarble GPIO to module Sonoff Touch (#228)
  933. * Add define WEB_PORT to user_config.h to change default web server port from 80 (#232)
  934. * Fix failed Ota Firmware upgrade started from Web page (#235)
  935. *
  936. * 4.0.6 20170316
  937. * Fix to better find device by Wifi hostname
  938. * Fix compile error when some I2C devices are disabled
  939. * Add (experimental) support for SHT1X emulating I2C (#97)
  940. * Add ADC to ElectroDragon (#203)
  941. * Add support for Sonoff Dev (#206)
  942. *
  943. * 4.0.5 20170314
  944. * Add command Status 11 to show power status with Vcc if define USE_ADC_VCC is enabled (default)
  945. * Add ADC input to Sonoff SV and Wemos D1 mini - Needs recompile with define USE_ADC_VCC disabled (#137)
  946. * Add MQTT host:port to timeout message (#199)
  947. *
  948. * 4.0.4 20170312
  949. * Add pulse timers for up to 4 relays (#106)
  950. * Fix Sonoff Led power state when dimmer or color is 0 (#176)
  951. * Add command NtpServer<x> to configure up to three NTP servers (#177)
  952. * Delete module User Test as module Wemos D1 mini has same/more user configurable GPIO (#178)
  953. * Add more user configurable GPIO to module ElectroDragon (#183)
  954. *
  955. * 4.0.3 20170309
  956. * Renamed Module NodeMCU to WeMos D1 mini
  957. * Add GPIO1 as user option to some modules
  958. * Add Buttons, Relays and Leds to user configurable options (#159)
  959. * Add description on Module parameters web page to some well known GPIOs (#107, #171)
  960. *
  961. * 4.0.2 20170308
  962. * Restore correct seriallog level after Serial logging was disabled
  963. * Add simple dimmer slider to Sonoff Led web page
  964. * Reduced root webpage size by 31%
  965. * Expand Status 2 with Build date/time and core version
  966. * Fix webserver redirection when not in WifiManager mode (#156)
  967. * Add command ButtonRestrict On/Off to restrict access to button hold and button multi press options above 2 (#161)
  968. * Fix DS18S20 negative temperature readings (#165)
  969. * Fix crlf compilation error due to bad syntax (#144, #167)
  970. *
  971. * 4.0.1 20170305
  972. * Fix char default sizes and set MESSZ to 360 (#143)
  973. * Fix SerialLog setting status
  974. * Disable syslog when emulation is active
  975. * Add DS18B20 web page display refresh
  976. *
  977. * 4.0.0 20170303
  978. * Add define to remove config migration code for versions below 3.0 (See Wiki-Upgrade-Migration path)
  979. * Free memory by switching from String to char[]
  980. * Raised Sonoff Led PWM frequency from 200Hz to 432Hz in search of stability (hardware watchdog timeouts) (#122)
  981. * Increase message size and suggested minimum MQTT_MAX_PACKET_SIZE to 512 (#114, #124)
  982. * Remove runtime warning message regarding MQTT_MAX_PACKET_SIZE too small as it is now moved to compile time (#124)
  983. * Fix possible panics with web console and http commands while UDP syslog is active (#127)
  984. * Add optional static IP address (#129)
  985. * Add define ENERGY_RESOLUTION in user_config.h to allow user control over precision (#136)
  986. *
  987. * 3.9.22 20170228
  988. * Update web console
  989. * Fix Status 4 JSON message
  990. * Add Exception info during restart if available
  991. * Add osWatch service to detect loop hangs that might happen during (OTA) upgrades
  992. * Add WiOn support for relay and switch only (#82, #102)
  993. * Allow for user specified relay count up to four in sonoff_template.h (#109)
  994. * Add support for HTU21 compatible I2C sensors SI7013, SI7020 and SI7021 (#118)
  995. * Add NodeMCU or Wemos configuration option (#119)
  996. *
  997. * 3.9.21 20170224
  998. * Add ajax to web root page and web console (#79)
  999. * Add commands SwitchMode1..4 and enable user switches 2, 3 and 4 (#84, #88)
  1000. * Fix MQTT upgrade when webserver is active
  1001. *
  1002. * 3.9.20 20170221
  1003. * Add minimal basic authentication to Web Admin mode (#87)
  1004. * Fix Hue and add HSB support (#89)
  1005. *
  1006. * 3.9.19 20170219
  1007. * Sonoff Led: Made GPIO04, 05 and 15 available for user
  1008. * Sonoff Led: Add commands Fade, Speed, WakupDuration, Wakeup and LedTable
  1009. *
  1010. * 3.9.18 20170218
  1011. * Fix ledstate 0 to turn off led
  1012. * Fix Sonoff Led dimmer range (#16)
  1013. * Change Sonoff Led command Dimmer to act on both cold and warm color
  1014. * Add Sonoff Led command Color CCWW where CCWW are hexadecimal values fro 00 - FF
  1015. * Reduce Sonoff Led flickering by disabling interrupts during flash save and disabling
  1016. * Led during OTA upgrade and Web upload (#16)
  1017. *
  1018. * 3.9.17 20170217
  1019. * Fix possible ArduinoJSON related memory fragmentation
  1020. * Changed console logging using less memory
  1021. * Add GPIO04 as user selectable for Sonoff Dual (#75)
  1022. *
  1023. * 3.9.16 20170214
  1024. * Update latching relay handler
  1025. * Add support for IR led using IRremoteESP8266 library (#59)
  1026. * Add Hue argument passing using ArduinoJSON library (#59)
  1027. *
  1028. * 3.9.15 20170213
  1029. * Change JSON float values from string to number according to http://json.org (#56)
  1030. * Add support for exs latched relay module https://ex-store.de/ESP8266-WiFi-Relay-V31 (#58)
  1031. * Add support for inverted relays
  1032. * Changed MAX_LOG_LINES from 70 to 60 to preserve memory
  1033. *
  1034. * 3.9.14 20170211
  1035. * Add False and True as alternatives for 0/Off and 1/On (#49)
  1036. * Fix Status10 JSON format (#52)
  1037. * Fix DS18x20 using OneWire library (#53)
  1038. *
  1039. * 3.9.13 20170210
  1040. * Add FlashChipMode to Status 4
  1041. * Removed redundant DHT2 option and code
  1042. * Add Sonoff SV GPIO pin 05 configuration (#40)
  1043. * Add configuration file backup and restore via web page
  1044. * Fix latency due to light_sleep mode even if sleep was set to zero (#50)
  1045. *
  1046. * 3.9.12 20170208
  1047. * Fix compile error when webserver is disabled (#30)
  1048. * Fix possible ESP8285 flash problem by updating Flash Chip Mode to DOUT during OTA upload
  1049. * Fix hostname issues by not allowing user entry of string formatting and removing from user_config.h (#36)
  1050. *
  1051. * 3.9.11 20170204
  1052. * Fix command I2Cscan
  1053. * Fix not allowed spaces in Topic, ButtonTopic and SwitchTopic
  1054. * Make all TELEMETRY, STATUS and COMMAND message topics unique (#4)
  1055. * Advertise command topic to be used by iobroker (#299)
  1056. * Fix butten (non)detection if no GPIO_KEY1 is defined (#13)
  1057. * Change WeMo serialnumber from 7 decimal chars to 8 hexadecimal chars (#18)
  1058. * Update web page with Build Date/Time, Emulation and mDNS Discovery and Advertise information (#21)
  1059. *
  1060. * 3.9.10 20170130
  1061. * Add WS2812 Color Type selection (RGB or GRB) to user_config.h (#7)
  1062. * Hue api changes to support HUE App(s) (#8)
  1063. *
  1064. * 3.9.9 20170130
  1065. * Add command status 10 showing sensor data
  1066. * Fix hlw status messages if hlw is disabled
  1067. *
  1068. * 3.9.8 20170130
  1069. * Remove GPIO07 and GPIO08 from user selectable (#5)
  1070. *
  1071. * 3.9.7 20170129
  1072. * Fix possible WS2812 exceptions when using emulation
  1073. * Add command Emulation to dynamic configure Belkin WeMo and Hue Bridge for Alexa
  1074. *
  1075. * 3.9.6 20170129
  1076. * Add dynamic sleep for WS2812 animation (#1)
  1077. *
  1078. * 3.9.5 20170128
  1079. * Fix error message in case of wrong Domoticz command
  1080. *
  1081. * 3.9.4 20170127
  1082. * Fix Sonoff Dual Relay switching (#287)
  1083. *
  1084. * 3.9.3 20170127
  1085. * Add confirmation before Restart via webpage
  1086. * Expand Domoticz Configuration webpage with Key, Switch and Sensor Index and
  1087. * add commands DomoticzSwitchIdx and DomoticzSensorIdx (#86) (#174) (#219)
  1088. * Fix default DHT11 sensor driver selection
  1089. * Fix LedPower status after button press (#279)
  1090. * Add command Sleep 0 - 250 mSec for optional light sleep mode to lower energy consumption (#272)
  1091. * (Expect overall button/key/switch misses and wrong values on Sonoff Pow)
  1092. * Add Hue brightness extension (#281)
  1093. * Fix Hue brightness and change to call by reference (#283)
  1094. *
  1095. * 3.9.2 20170124
  1096. * Add confirmation before Reset Configuration via webpage (#244)
  1097. * Add WS2812 features (see Wiki commands)
  1098. *
  1099. * 3.9.1 20170124
  1100. * Change PowerOnState function to only trigger when Power On (and not just restart) (#238)
  1101. * Move HLW interrupts back to RAM and make WS2812_DMA optional as it generates Exception on Pow (#264)
  1102. * Add charset=utf-8 to webpages (#266)
  1103. * Update Hue emulation (#268)
  1104. * Fix status module number
  1105. * Add support for domoticz Dimmer on Sonoff_Led and WS2812
  1106. * Fix possible ESP8285 flash problem by updating Flash Chip Mode to DOUT during web upload
  1107. *
  1108. * 3.2.6a 20170120
  1109. * Fix Sonoff Pow compile error (#255)
  1110. * Move HLW interrupts back to ROM (Needed for WS2812 DMA interrupts)
  1111. * Removed all IO config from user_config.h as this will be done by commands or webpage
  1112. * Removed MessageFormat and supports JSON only except POWER/LIGHT status
  1113. * Add command LedPower to control main led (#247)
  1114. * Add more FriendlyNames for Hue (#254)
  1115. * Add DMA support for WS2812 when using pin 3 while other pins work just as well in my case...
  1116. * Add HUE emulation for Alexa (#229)
  1117. * Add basic WS2812 support (#229)
  1118. * Fix Wemo when MQTT is disabled (#245)
  1119. * Revert ButtonTopic and change SwitchTopic1 - 4 to one SwitchTopic
  1120. * Rename MqttUnits to Units
  1121. * Add Mqtt command to enable/disable MQTT
  1122. *
  1123. * 3.2.2a 20170115
  1124. * Add dynamic (Sonoff) Module, user GPIO and sensor selection (one size fits (almost) all)
  1125. * Add support for Sonoff LED
  1126. * Add Seriallog disable after 600 seconds for Sonoff Dual and 4 Channel
  1127. * Add ButtonTopic2 - 4, SwitchTopic1 - 4 and SwitchRetain
  1128. *
  1129. * 3.2.2 20170113
  1130. * Fix PowerOnState 2 functionality after re-applying power (#230)
  1131. *
  1132. * 3.2.1 20170113
  1133. * Fix some failed command decoding (#228)
  1134. * Removed passwords from status messages (#216)
  1135. *
  1136. * 3.2.0 20170111
  1137. * Add I2C BH1750 sensor (#222)
  1138. * Sensor rewrite preparing for online selection
  1139. *
  1140. * 3.1.16 20170109
  1141. * Fix Domoticz possible error condition
  1142. * Remove Wifi password from connection message (#216)
  1143. * Add Configure Other menu item to web page (#209)
  1144. * Add command FriendlyName, field Friendly Name and define FRIENDLY_NAME to be used by Alexa
  1145. * eliminating current use of MQTT_CLIENT_ID (#209)
  1146. * Add friendlyname to webpage replacing former hostname
  1147. *
  1148. * 3.1.15 20170108
  1149. * Fix Domoticz send key regression with Toggle command
  1150. *
  1151. * 3.1.14 20170107
  1152. * Add support for command TOGGLE (define MQTT_CMND_TOGGLE) when ButtonTopic is in use and not equal to Topic (#207)
  1153. *
  1154. * 3.1.13 20170107
  1155. * Fix web console command input when SUB_PREFIX contains '/' (#152)
  1156. * Add command response to web command (#200)
  1157. * Add option to disable MQTT as define USE_MQTT in user_config.h (#200)
  1158. *
  1159. * 3.1.12 20170106
  1160. * Add OTA retry to solve possible HTTP transient errors (#204)
  1161. * Fix MQTT host discovery
  1162. *
  1163. * 3.1.11 20170105
  1164. * Add mDNS to advertise webserver as <hostname>.local/
  1165. *
  1166. * 3.1.10 20170105
  1167. * Fix ButtonTopic when SUB_PREFIX = PUB_PREFIX
  1168. * Add workaround for possible MQTT queueing when SUB_PREFIX = PUB_PREFIX
  1169. * Add optional MQTT host discovery using define USE_DISCOVERY in user_config.h (#115)
  1170. *
  1171. * 3.1.9 20170104
  1172. * Fix Power Blink start position (toggled)
  1173. * Change PulseTime increments: 1 .. 111 in 0.1 sec (max 11 seconds) and 112 .. 64900 in seconds (= 12 seconds until 18 hours) (#188)
  1174. * Add support for SUB_PREFIX = PUB_PREFIX (#190)
  1175. *
  1176. * 3.1.8 20170103
  1177. * Add retain flag to LWT offline and only send "tele/sonoff/LWT Offline" (#179)
  1178. * Change retained LWT Online message to only send "tele/sonoff/LWT Online"
  1179. *
  1180. * 3.1.7 20161231
  1181. * Add retained message LWT Online when sonoff makes MQTT connection (#179)
  1182. *
  1183. * 3.1.6 20161230
  1184. * Add blinking using commands BlinkTime, BlinkCount and Power Blink|3|BlinkOff|4 (#165)
  1185. *
  1186. * 3.1.5 20161228
  1187. * Fix serial space command exception (28)
  1188. *
  1189. * 3.1.4 20161227
  1190. * Fix MQTT subscribe regression exception (3) (#162)
  1191. * Fix serial empty command exception (28)
  1192. *
  1193. * 3.1.3 20161225
  1194. * Extent Domoticz configuration webpage with optional indices (#153)
  1195. * Fix multi relay legacy tele message from tele/sonoff/2/POWER to tele/sonoff/POWER2
  1196. * Add support for iTead Motor Clockwise/Anticlockwise
  1197. *
  1198. * 3.1.2 20161224
  1199. * Extent command PowerOnState with toggle at power on (option 2 is now option 3!) (#156)
  1200. *
  1201. * 3.1.1 20161223
  1202. * Add support for Sonoff Touch and Sonoff 4CH (#40)
  1203. * Update DomoticzIdx and DomoticzKeyIdx with relay/key index (DomoticzIdx1/DomoticzKeyIdx1)
  1204. * Add command PowerOnState to control relay(s) at power on (#154)
  1205. *
  1206. * 3.1.0 20161221
  1207. * Add Sonoff Pow measurement smoothing
  1208. * Fix serial command topic preamble error (#151)
  1209. * Fix 2.x to 3.x migration inconsistencies (#146)
  1210. *
  1211. * 3.0.9 20161218
  1212. * Add Sonoff Pow voltage reading when relay is on but no load present (#123)
  1213. *
  1214. * 3.0.8 20161218
  1215. * Add temperature conversion to Fahrenheit as option in user_config.h (TEMP_CONVERSION) (#145)
  1216. *
  1217. * 3.0.7 20161217
  1218. * Add user_config_override.h to be used by user to override some defaults in user_config.h (#58)
  1219. * Fix Sonoff Pow low power (down to 4W) intermittent measurements (#123)
  1220. *
  1221. * 3.0.6 20161217
  1222. * Fix MQTT_CLIENT_ID starting with % sign as in "%06X" (#142)
  1223. * Add auto power off after PulseTime * 0.1 Sec to relay 1 (#134)
  1224. *
  1225. * 3.0.5 20161215
  1226. * Add more control over LED with command LedState options (#136, #143)
  1227. * LED_OFF (0), LED_POWER (1), LED_MQTTSUB (2), LED_POWER_MQTTSUB (3), LED_MQTTPUB (4), LED_POWER_MQTTPUB (5), LED_MQTT (6), LED_POWER_MQTT (7)
  1228. * Add option WIFI_RETRY (4) to command WifiConfig to allow connection retry to other AP without restart (#73)
  1229. *
  1230. * 3.0.4 20161211
  1231. * Fix intermittent Domoticz update misses (#133)
  1232. *
  1233. * 3.0.3 20161210
  1234. * Fix compiler warnings (#132)
  1235. * Remove redundant code
  1236. * Fix Domoticz pushbutton support
  1237. *
  1238. * 3.0.2 20161209
  1239. * Add pushbutton to SwitchMode (#130)
  1240. *
  1241. * 3.0.1 20161209
  1242. * Fix initial config
  1243. *
  1244. * 3.0.0 20161208
  1245. * Migrate and clean-up flash layout
  1246. * Settings from version 2.x are saved but settings from version 3.x can not be used with version 2.x
  1247. * Change SEND_TELEMETRY_RSSI to SEND_TELEMETRY_WIFI and add AP and SSID to telemetry
  1248. * Split long JSON messages
  1249. * Fix inconsistent status messages
  1250. * Fix all status messages to return JSON if enabled
  1251. * Remove relay index in cmnd/sonoff/<relay>/POWER now changed
  1252. * to cmnd/sonoff/POWER for single relay units
  1253. * and cmnd/sonoff/POWER<relay> for multi relay units like Sonoff dual
  1254. * Add retain option to Power/Light status controlled by command PowerRetain On|Off (#126)
  1255. *
  1256. * 2.1.2 20161204
  1257. * Add support for second wifi AP (#73)
  1258. * Update command WifiConfig
  1259. * Fix possible WifiManager hang
  1260. *
  1261. * 2.1.1a 20161203
  1262. * Fix scan for wifi networks if WeMo is enabled
  1263. * Fix syslog setting using web page
  1264. *
  1265. * 2.1.1 20161202
  1266. * Add support for ElectroDragon second relay and button (only toggle with optional ButtonTopic) (#110)
  1267. *
  1268. * 2.1.0 20161202
  1269. * Add optional EXPERIMENTAL TLS to MQTT (#49)
  1270. * Fix MQTT payload handling (#111)
  1271. * Optimzed WeMo code
  1272. *
  1273. * 2.0.21a 20161201
  1274. * Fix WeMo PowerPlug emulation
  1275. *
  1276. * 2.0.21 20161130
  1277. * Add Belkin WeMo PowerPlug emulation enabled with USE_WEMO_EMULATION in user_config.h (Heiko Krupp) (#105, #109)
  1278. *
  1279. * 2.0.20 20161130
  1280. * Relax MQTTClient naming but only allows hexadecimal uppercase numbers (#107)
  1281. * Add I2C support with command I2CScan
  1282. * Add I2C sensor driver for HTU21 as alternate sensor using TH10/16 connectors (Heiko Krupp) (#105)
  1283. * Add I2C sensor driver for BMP085/BMP180/BMP280/BME280 as alternate sensor using TH10/16 connectors
  1284. *
  1285. * 2.0.19a 20161127
  1286. * Add support for ButtonTopic and ButtonRetain to wall switch function
  1287. * Add pullup to SWITCH_PIN and command SwitchMode to syntax
  1288. *
  1289. * 2.0.18 20161126
  1290. * Add SUB_PREFIX multi level support allowing 'cmnd' or 'cmnd/level2/level3'
  1291. * Add wall switch function to GPIO14 and command SwitchMode (Alex Scott) (#103)
  1292. *
  1293. * 2.0.17 20161123
  1294. * Calibrate HLWPCAL from 12345 to 12530
  1295. * Add alternative sensor driver DHT2 using Adafruit DHT library
  1296. * Add define MESSAGE_FORMAT to user_config.h
  1297. * Throttle console messages
  1298. * Shorten JSON messages
  1299. * Fix possible Panic
  1300. * Fix User mode webserver security
  1301. *
  1302. * 2.0.16 20161118
  1303. * Add alternative sensor driver DS18x20 using OneWire library (#95)
  1304. * Change sensor MQTT message from tele/sonoff/TEMPERATURE to tele/sonoff/DHT/TEMPERATURE or
  1305. * tele/sonoff/DS18B20/TEMPERATURE or tele/sonoff/DS18x20/1/TEMPERATURE
  1306. * Add sensors to root webpage and auto refresh every 4 seconds (#92)
  1307. * Add optional JSON messageformat to all telemetry data
  1308. * Enforce minimum TelePeriod to be 10 seconds
  1309. * Fix Energy Yesterday reset after restart
  1310. * Add Energy Today restore after controlled restart
  1311. *
  1312. * 2.0.15 20161116
  1313. * Change TODAY_POWER and PERIOD_POWER to TODAY_ENERGY and PERIOD_ENERGY
  1314. * Fix serial regression
  1315. * Fix syslog hangs when loghost is unavailable
  1316. *
  1317. * 2.0.14 20161115
  1318. * Add HLW threshold delay
  1319. * Fix HLW intermittent current deviation
  1320. * Fix button functionality during wificonfig
  1321. * Add CRC check to DS18B20 sensor (#88)
  1322. *
  1323. * 2.0.13 20161113
  1324. * Add additional upload error code descriptions
  1325. * Add PlatformIO support (#80)
  1326. *
  1327. * 2.0.12 20161113
  1328. * Fix Serial and Web response regression when no MQTT connection available
  1329. * Fix Sonoff Dual power telemetric data for second relay
  1330. * Removed MQTT password from Information web page
  1331. * Hide MQTT password from Configure MQTT web page
  1332. *
  1333. * 2.0.11 20161111
  1334. * Rewrite button and web toggle code
  1335. * Fix NTP sync
  1336. * Add HLW calibration commands HLWPCAL, HLWUCAL and HLWICAL (need define USE_POWERCALIBRATION)
  1337. * Fix power threshold tests
  1338. *
  1339. * 2.0.10 20161109
  1340. * Add additional Domoticz define (#63)
  1341. * Add defines MQTT_STATUS_ON and MQTT_STATUS_OFF in user_config.h to select status On/Off string
  1342. * Fix status response differences (#65)
  1343. * Fix divide by zero exception (#70)
  1344. * Fix syslog loop exception
  1345. *
  1346. * 2.0.9 20161108
  1347. * clarify MODULE in user_config.h
  1348. * Fix hlw false values
  1349. *
  1350. * 2.0.8 20161108
  1351. * Add initial status after power on
  1352. * Seperate driver files
  1353. * Fix hlw code and calibrate Pow
  1354. * Move user config defines to user_config.h (#61)
  1355. *
  1356. * 2.0.7 20161030
  1357. * Make Ticker mandatory
  1358. * Add Domoticz support (Increase MQTT_MAX_PACKET_SIZE to 400) (#54)
  1359. * Add command MessageFormat 0|1 to select either legacy or JSON output
  1360. *
  1361. * 2.0.6 20161024
  1362. * Add Sonoff Pow power factor
  1363. * Initial support for up to four relays using iTEAD PSB (4Channel)
  1364. * - Currently only supports one button (All buttons behave the same)
  1365. * - Use command MODEL 4 to select four relay option
  1366. * (After first power on it will support 2 relays like Sonoff Dual)
  1367. * Fix ledstate
  1368. * Add command Status 9 to display Sonoff Pow thresholds
  1369. * Add commands PowerLow, PowerHigh, VoltageLow, VoltageHigh, CurrentLow and CurrentHigh for use
  1370. * with Sonoff Pow thresholds
  1371. *
  1372. * 2.0.5 20161018
  1373. * Add updates to user_config.h - moved SEND_TELEMETRY_DS18B20 and SEND_TELEMETRY_DHT to module area.
  1374. * As Sonoff TH10/16 does not have the logic installed for GPIO04 You'll have to select ONE of both
  1375. * Add Sonoff Pow support (experimental until Pow tested)
  1376. * Add command Status 8 to display Sonoff Pow energy values
  1377. * Add command MqttUnits On|Off to add units to values
  1378. * Change web main page header character size
  1379. * Change On/Off to ON/OFF status messages to satisfy openHAB
  1380. * Change TEMP to TEMPERATURE and HUM to HUMIDITY
  1381. *
  1382. * 2.0.4 20161009
  1383. * Add MQTT_BUTTON_RETAIN, SAVE_DATA and SAVE_STATE defines to user_config.h (#35)
  1384. * Update ButtonRetain to remove retained message(s) from broker when turned off
  1385. * Add Retain for second relay on Sonoff Dual
  1386. * Provide power status messages with device topic index if requested
  1387. *
  1388. * 2.0.3 20161008
  1389. * Update wifi initialization
  1390. * Add command BUTTONRETAIN for optional MQTT retain on button press (#35)
  1391. * Add command SAVESTATE to disable power state save. May be used with MQTT retain
  1392. *
  1393. * 2.0.2 20161006
  1394. * Fix wifi issue 2186
  1395. *
  1396. * 2.0.1 20161002
  1397. * Fix button press
  1398. *
  1399. * 2.0.0 20161002
  1400. * Update Sonoff TH10/16 sensor pins (My TH10 only has GPIO14 connected)
  1401. * Add full support for Sonoff dual
  1402. *
  1403. * 1.0.35 20160929
  1404. * Add more lines to console
  1405. * Add timeout and disable MQTT on web upload
  1406. * Add command SAVEDATA to control parameter save (for flash wear afficionados) (#30)
  1407. *
  1408. * 1.0.34 20160926
  1409. * Fix button press six and seven
  1410. * Add more information to webserver
  1411. *
  1412. * 1.0.33 20160915
  1413. * Better WPS error message
  1414. * Separate webserver code from support.ino into webserver.ino
  1415. * Fix webserver User by removing unwanted restart option
  1416. *
  1417. * 1.0.32 20160913
  1418. * Add Wifi Protected Setup (WPS) as third option for initial config
  1419. * Add command WIFICONFIG replacing deprecated command SMARTCONFIG
  1420. * Add option WIFICONFIG 3 to start WPSconfig
  1421. * Add option WIFICONFIG 0 to start saved Wifi config tool (WPSconfig, Smartconfig or Wifimanager)
  1422. * Change button behaviour - See Wiki
  1423. *
  1424. * 1.0.31 20160907
  1425. * Fix DS18B20 misread if teleperiod = 2
  1426. * Tuned sensor code
  1427. * Updated prefered ElectroDragon connection to Relay 1 and Button 1
  1428. * Moved SONOFF and ELECTRO_DRAGON port config to user_config.h
  1429. *
  1430. * 1.0.30 20160902
  1431. * Fix command TELEPERIOD 0
  1432. * Add ESP- tag to UDP log message for easy rsyslogd filtering
  1433. * Add ElectroDragon (Relay 2 only) functionality. Select with #define MODULE ELECTRO_DRAGON
  1434. * Add ? as null message alternative
  1435. * Add DHT temperature and humidity telemetry support. Enable with #define SEND_TELEMETRY_DHT
  1436. * Add DS18B20 temperature telemetry support. Enable with #define SEND_TELEMETRY_DS18B20
  1437. * Restrict HOSTNAME, MQTTCLIENT, TOPIC and BUTTONTOPIC in topic mode only
  1438. *
  1439. * 1.0.29 20160831
  1440. * Allow UPGRADE, OTAURL, RESTART, RESET, MQTTHOST, MQTTPORT, MQTTUSER, MQTTPASSWORD and WEBSERVER also in group mode
  1441. *
  1442. * 1.0.28 20160831
  1443. * Add webserver state to status 5
  1444. * Add optional PUB_PREFIX2 (tele) for telemetry usage
  1445. * Add command TELEPERIOD
  1446. * Fix syntax message
  1447. * Change memory status display
  1448. *
  1449. * 1.0.27 20160831
  1450. * Add sketch flash size
  1451. * Add console to webserver
  1452. * Add command weblog
  1453. * Change WifiManager web pages to minimal
  1454. * Change display default hostname and MQTT client id in webserver
  1455. * Change HTTP command interface to http://sonoff-1234/cm?cmnd=light 2
  1456. * Change HEARTBEAT to UPTIME
  1457. *
  1458. * 1.0.26 20160829
  1459. * Add define USE_WEBSERVER to disable web server code in source
  1460. * Add file upload as alternative for ota upload to webserver
  1461. * Add information to webserver
  1462. * Add command hostname
  1463. * Add command logport
  1464. * Change HTTP command interface to http://sonoff-1234/cmd?cmnd=light 2
  1465. * Change button behaviour with regards to Smartconfig and OTA upload. See README.md
  1466. * Enforce default hostname to either "%s-%04d" or user defined without any %
  1467. * Enforce default mqtt client id to either "DVES_%06X" or user defined without any %
  1468. *
  1469. * 1.0.25 20160822
  1470. * Remove config system halts to keep ota available
  1471. *
  1472. * 1.0.24 20160821
  1473. * Add test for MQTT_SUBTOPIC
  1474. * Change log range to LOG_LEVEL_ALL
  1475. * Change MQTT introduction messages
  1476. * Moved MQTT_MAX_PACKET_SIZE warning message to introduction messages
  1477. *
  1478. * 1.0.23 20160821
  1479. * Add option USE_SPIFFS to move config from flash to spiffs
  1480. * Add webserver with options 0 (off), 1 (user) and 2 (admin)
  1481. * Add HTTP command interface (http://sonoff-1234/c?cmnd=light 2)
  1482. * Add wifimanager countdown counter
  1483. * Add command line webpage
  1484. * Add relay control to wifimanager
  1485. * Add restart option 99 to force restart
  1486. * Fix wifi hostname
  1487. * Fix NETBIOS hostname problem by reducing default hostname length
  1488. * Fix possible exception if WIFI_HOSTNAME is changed
  1489. * Fix upgrade messages
  1490. * Reduce memory use by redesigning config routines
  1491. * Split syntax message
  1492. * Rename define SERIAL_IO to USE_SERIAL
  1493. *
  1494. * 1.0.22 20160814
  1495. * Add all MQTT parameters for configuration
  1496. * Add wifimanager to configure Wifi and MQTT via web server
  1497. * Change NTP time handling
  1498. * Fix Smartconfig parameter buffer overflow
  1499. * Fix PlatformIO warnings
  1500. *
  1501. * 1.0.21 20160808
  1502. * Remove semaphore as subscription flooding (more than 15 subscriptions per second) is managed by SDK (LmacRxBlk:1)
  1503. * Add optional RTC interrupt (define USE_TICKER) to keep RTC synced during subscription flooding
  1504. * Remove heartbeatflag
  1505. *
  1506. * 1.0.20 20160805
  1507. * Add semaphore to handle out of memory when too many subscriptions requested
  1508. * Use Daylight Saving (DST) parameters from user_config.h when timezone = 99
  1509. * Add status 7 option displaying RTC information
  1510. * Add ledstate to status 0
  1511. *
  1512. * 1.0.19 20160803
  1513. * Fix possible MQTT_CLIENT_ID induced Exception(28)
  1514. *
  1515. * 1.0.18 20160803
  1516. * Moved Cfg_Default
  1517. * Fix negative data handling
  1518. * Remove MQTT information from status 1 and add labels to status 1
  1519. * Add mac address to status 5
  1520. * Add MQTT ClientId, UserId and Password to status 6
  1521. *
  1522. * 1.0.17 20160731
  1523. * Better variable range checking
  1524. * Change ambiguous connection messages
  1525. * Add timestamp to serial message
  1526. *
  1527. * 1.0.16 20160729
  1528. * Moved wifi, rtc, syslog and config to support.ino
  1529. * Fixed button action when buttontopic is used. Introduced with 1.0.15
  1530. * Better buffer overflow checks (strlcpy)
  1531. *
  1532. * 1.0.15 20160728
  1533. * Removed pubsubclient config changes from sonoff.ino as it doesn't work
  1534. * reapply MQTT_MAX_PACKET_SIZE 256 and MQTT_KEEPALIVE 120 to PubSubClient.h
  1535. * Add status 0 option displaying all status messages
  1536. * Change MQTT_MAX_PACKET_SIZE from 1024 to 256
  1537. * Add buffer overflow checks (snprintf and strncpy)
  1538. * Implemented common string sizes
  1539. *
  1540. * 1.0.14 20160722
  1541. * Seperate user config from sonoff.ino to user_config.h (pucebaboon)
  1542. * Change defaults from sidnas2 to domus1
  1543. * Add MQTT status message as status 6 (pucebaboon)
  1544. * Add status type to message (pucebaboon)
  1545. * Add pubsubclient config changes to sonoff.ino (pucebaboon)
  1546. *
  1547. * 1.0.13 20160702
  1548. * Add Ledstate 1 option to show power state on led
  1549. *
  1550. * 1.0.12 20160529
  1551. * Allow disable of button topic using "0"
  1552. *
  1553. * 1.0.11 20160524
  1554. * Provide button response if MQTT connection lost
  1555. *
  1556. * 1.0.10 20160520
  1557. * Add optional button topic to assist external MQTT clients
  1558. * Change version notation
  1559. * Reset default values
  1560. *
  1561. * 1.0.9 20160503
  1562. * Add more blinks
  1563. * Add reset 2 option erasing flash
  1564. * Add status 5 option displaying network info
  1565. * Add syslog check for Wifi connection
  1566. * Resize MqttPublish log array
  1567. * Change Wifi smartconfig active from 100 to 60 seconds
  1568. * Update Wifi initialization
  1569. *
  1570. * 1.0.8 20160430
  1571. * Remove use of Wifi config data from SDK
  1572. * Add status 3 (syslog info) and status 4 (flash info)
  1573. * Add restart option to button (5 quick presses)
  1574. *
  1575. * 1.0.7 20160420
  1576. * Add UDP syslog support
  1577. * Change HOST command to MQTTHOST command
  1578. * Add commands SYSLOG, SERIALLOG and LOGHOST
  1579. * Change hostname to lower case to distinguise between open-sdk version
  1580. * Add support for ESP-12F used in my modified wkaku power socket switch
  1581. * Fix timezone command
  1582. * Add RTC month names for future use
  1583. * Modify button code
  1584. * Remove initialization errors by better use of MQTT loop
  1585. *
  1586. * 1.0.6 20160406
  1587. * Removed Wifi AP mode (#1)
  1588. * Add test for Arduino IDE version >= 1.6.8
  1589. * Fix RTC time sync code
  1590. *
  1591. * 1.0.5 20160310
  1592. * Initial public release
  1593. * Show debug info by selecting option from IDE Tools Debug port: Serial
  1594. */