Commit Graph

219 Commits

Author SHA1 Message Date
thirug010 d59d631e40 New Tuya Serial Based Devices support
Updated the Code to support most of the new Tuya Serial devices like 4Gang Serail switch, 1 Dimmer + 1 relay, 3 Gang  ...
2019-05-17 22:03:53 -05:00
Theo Arends a777bb6cdf 6.5.0.11 Add command SetOption64 0/1 to switch between "-" or "_" as sensor index separator
6.5.0.11 20190517
 * Add command SetOption64 0/1 to switch between "-" or "_" as sensor index separator impacting DS18X20, DHT, BMP and SHT3X sensor names (#5689)
2019-05-17 14:23:21 +02:00
Theo Arends ad54ece2fb 6.5.0.10 Enable ADC0 by default
6.5.0.10 20190513
 * Enable ADC0 by default in my_user_config.h (#5671)
 * Add user configurable ADC0 to Module and Template configuration compatible with current FLAG options (#5671)
2019-05-13 15:56:01 +02:00
Theo Arends e8e7b25b80 6.5.0.9 Add command SetOption63
6.5.0.9 20190418
 * Add command SetOption63 0/1 to disable relay state feedback scan at restart (#5594, #5663)
 * Fix TasmotaSerial at 9600 bps solving DFPlayer comms (#5528)
 * Fix Shelly 2.5 overtemp
2019-04-18 16:24:46 +02:00
Theo Arends df6645481e 6.5.0.7 Add command LedMask
6.5.0.7 20190410
 * Add command LedMask to assign which relay has access to power LED (#5602, #5612)
2019-04-10 14:26:36 +02:00
Theo Arends aa91caa35e 6.5.0.6 Add WebColor parameters to Settings
6.5.0.6 20190409
 * Add WebColor parameters to Settings making them persistent and remove the need for using a rule
 * Add alternative IRSend command syntax IRSend raw,<freq>,<header mark>,<header space>,<bit mark>,<zero space>,<one space>,<bit stream> (#5610)
2019-04-09 13:56:19 +02:00
Theo Arends be385ecb5c Add command WebColor
* Add rule Http#Initialized
 * Add command WebColor to change non-persistent GUI colors on the fly
   Use a rule like:
   rule3 on http#initialized do webcolor {"webcolor":["#eeeeee","#181818","#4f4f4f","#000000","#dddddd","#008000","#222222","#ff0000","#008000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]} endon
   or
   rule3 on http#initialized do webcolor {"webcolor":["#eee","#181818","#4f4f4f","#000","#ddd","#008000","#222"]} endon
   to make color changes persistent)
2019-04-08 22:37:39 +02:00
Theo Arends 8ff2759ccc 6.5.0.4 Fix Configure Timer Web GUI
6.5.0.4 20190402
 * Fix Configure Timer Web GUI (#5568)
 * Add validation check when loading settings from flash
2019-04-02 15:47:39 +02:00
Theo Arends f7c30250c1 Change some more defines to const
Change some more defines to const
2019-03-31 11:59:04 +02:00
Theo Arends e8e5d1c03c 6.5.0.3 Add command Sensor20
6.5.0.3 20190328
 * Add command Sensor20 1..255 to change Nova Fitness SDS01 working period in minutes (#5452)
2019-03-28 12:06:48 +01:00
Theo Arends 2959ec9341 Prep for release with fix some warnings
Prep for release with fix some warnings
2019-03-14 16:50:56 +01:00
Theo Arends 9e8ed1ae79 Kudos and houskeeping
Kudos and houskeeping
2019-03-01 15:37:22 +01:00
netpok b3adab4097 Add flag for no hold retain 2019-02-21 21:27:52 +01:00
Theo Arends a201dd1222 Remove command SetOption62
Remove command SetOption62 as it's functionality is replaced by user changing the device template (#5255)
2019-02-17 16:05:53 +01:00
Theo Arends 98ae3eaf54 6.4.1.16 Online template change
6.4.1.16 20190211
 * Initial support for online template change using command Template (#5177)
2019-02-11 19:21:49 +01:00
andrethomas 7e56dc538d MHZ19: Allow enable and disable of ABC 2019-02-01 18:46:37 +02:00
Theo Arends 304ac6fe44 6.4.1.12 code changes (byte/boolean)
6.4.1.12 20190128
 * Change code use of boolean to bool and byte to uint8_t
 * Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends 505c4794d1 6.4.1.11 Rewrite interlock
6.4.1.11 20190124
 * Remove command SetOption14 as it has been superseded by command Interlock
 * Remove command SetOption63 as it has been superseded by command Interlock
 * Add command Interlock 0 / 1 / 1,2 3,4 .. to control interlock ON/OFF and add up to 8 relays in 1 to 4 interlock groups (#5014)
2019-01-25 17:46:27 +01:00
Theo Arends b5824fc361 Housekeeping 2019-01-18 10:52:18 +01:00
lobocobra 15e4918238 As requested in issue 824# by ascillato2, implement split interlock.
=> Split interlock of SONOFF with more than 2 channel into 2 groups
=> This is needed for shutter and similar utilization
2019-01-13 11:00:02 +01:00
Theo Arends 70619ed610 Housekeeping 2019-01-07 16:43:03 +01:00
Theo Arends a23f01080b 6.4.1.8 Add template flags
6.4.1.8 20190107
 * Change sonoff_template.h layout regarding optional module flags like ADC0
 * Add command SetOption62 1 to force no Button/Switch pullup on dedicated modules. Currently only supported on Shelly2 (#4841)
2019-01-07 16:33:18 +01:00
Theo Arends 67cf1dbbcf 6.4.1.5 Add mDns user control
6.4.1.5 20190103
 * Remove command SetOption35 0-255 for mDNS start-up delay (#4793)
 * Add command SetOption55 0/1 to disable/enable mDNS (#4793)
2019-01-03 17:30:54 +01:00
Theo Arends 447ec6256e 6.4.1.4 Update Copyright (C) 2019
6.4.1.4 20190101
 * Update Copyright (C) 2019
2019-01-01 13:55:01 +01:00
Erik fd965eba09 Remove SetOption55 (hass_short_discovery_msg) 2018-12-22 13:16:04 +01:00
Erik a65041fee5 Enabled forced local operation when button- or switchtopic is set 2018-12-08 08:44:59 +01:00
andrethomas 46816f2f07 MCP230xx - Add Interrupt Retain 2018-12-07 00:55:44 +02:00
Erik 74172f14d3 Further improve Hass auto discovery 2018-12-02 16:39:59 +01:00
Theo Arends eb3c1a327d 6.3.0.15 Update dynamic sleep
6.3.0.15 20181201
 * Removed command SetOption36 (#4497)
 * Add command SetOption60 0/1 to select dynamic sleep (0) or sleep (1) (#4497)
2018-12-01 18:53:42 +01:00
andrethomas 6050cd40f3 Merge sleep command 2018-12-01 18:47:25 +02:00
Adrian Scillato c51e657ed9
Added command CalcRes 2018-11-26 21:16:09 -03:00
Theo Arends b4e2fe0439 6.3.0.13 Add command SetOption59
6.3.0.13 20181126
 * Add command SetOption59 0/1 to change state topic from tele/STATE to stat/RESULT (#4450)
2018-11-26 13:01:42 +01:00
Erik eda60b6124 Support sending tele/STATUS as state/RESULT 2018-11-25 21:27:19 +01:00
Theo Arends 070843200f Add IR Raw data control
* Add command SetOption58 0/1 to enable IR raw data info in JSON message (#2116)
 * Add command IRSend <frequency>|0,<rawdata1>,<rawdata2>,.. to allow raw data transmission (#2116)
2018-11-21 16:36:10 +01:00
Theo Arends c502f0934f Add command SetOption57
* 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)
 * Fix MQTT connection error after restart
2018-11-19 23:06:42 +01:00
Theo Arends e34a1f0719 Add wifi network scan
* Add command SetOption56 0/1 to enable wifi network scan and select highest RSSI (#3173)
2018-11-19 18:07:25 +01:00
Erik 89b58f62af Add option for new Hass discovery feature 2018-11-15 17:37:53 +01:00
Theo Arends 9fef82736d Prep drivers for management
Prep drivers for management
2018-11-07 10:30:03 +01:00
Theo Arends f14491afb6
Merge pull request #4296 from chaosmaster/patch-1
tuya: fix SetOption20 behavior for Oittm/Moes
2018-11-07 09:02:47 +01:00
Joel Stein a2b7bdac45 tuya: name flag SetOption54 2018-11-06 23:27:49 +01:00
Theo Arends 15148f290d 6.3.0.4 Add SetSensorXX
6.3.0.4 20181106
 * Add command SetSensorXX 0/1 to disable/re-enable compiled xsns_XX_sensor.ino driver
2018-11-06 17:33:51 +01:00
Theo Arends 14a7424e9b Add command SetOption24
Add command SetOption24 0/1 to select pressure unit as hPa or mmHg (#4241)
2018-11-04 16:55:12 +01:00
Theo Arends 46a0a0afba Add minutes to commands Timezone
Add minutes to commands Timezone to allow all possible world timezones
2018-11-01 13:00:05 +01:00
Theo Arends e6a8b2d30d Add TotalStartTime to Energy JSON
Add TotalStartTime to Energy JSON message (#3971)
2018-10-30 17:04:19 +01:00
Theo Arends cc56677ba3 Add Gui Hostname display
Add command SetOption53 0/1 to toggle gui display of Hostname and IP address
2018-10-29 12:21:27 +01:00
Theo Arends a7c912111c Resize HX711 weight_item field
Resize HX711 weight_item field from 16 bit to 32 bit
2018-10-21 17:54:51 +02:00
Theo Arends f8ab8ef552 Clean settings.h
Removed custom fields from settings.h
2018-10-17 15:29:43 +02:00
Theo Arends 6b660026cd Add cmnds Reset 4 and Reset 5
Add commands Reset 4 (reset to defaults but keep wifi params) and Reset 5 (as reset 4 and also erase flash) (#4061)
2018-10-15 14:43:47 +02:00
Theo Arends fcc6d5437b Add HX711 Load Cell
* Add support for DS3231 Real Time Clock
 * Add support for HX711 Load Cell
 * Add command WeightRes 0..3 to control display of decimals for kilogram
2018-10-11 17:33:07 +02:00
Theo Arends ba16e00e36 Add command WebRefresh
Add command WebRefresh 1000..10000 to control web page refresh in milliseconds. Default is 2345
2018-10-08 14:39:36 +02:00
Theo Arends cdc8a4d9eb
tiny change 2018-09-30 10:54:52 +02:00
Erik 87dc6fe20e Add basic support for color calibration 2018-09-29 16:55:53 +02:00
Theo Arends 43c3cf57d5 Shelly2 Cleanup
Cleanup and debug updates
2018-09-24 18:16:35 +02:00
Theo Arends 4065a215f0 Add Shelly2 Energy Monitoring
Add energy monitoring to Shelly2 (#2789)
2018-09-21 15:22:17 +02:00
Theo Arends f517755303 Prep for frequency display
Prep for energy frequency display and update xnrg_05_pzem2.ino with correct register values
2018-09-07 18:15:47 +02:00
Theo Arends dd95bb393e Add command SetOption52
Add command SetOption52 to control display of optional time offset from UTC in JSON messages (#3629, #3711)
2018-09-06 12:37:50 +02:00
Theo Arends 359877489d 6.2.1.2 - Fix KNX PA exception
6.2.1.2 20180906
 * Fix KNX PA exception. Regression from 6.2.1 buffer overflow (#3700, #3710)
2018-09-06 10:42:22 +02:00
Theo Arends 07dafe1631 6.2.0.2 - Energy monitoring
6.2.0.2 20180904
 * Rewrite energy monitoring using energy sensor driver modules
 * Fix lost today and total energy value after power cycle (#3689)
2018-09-04 16:22:34 +02:00
Theo Arends f7c38f24f3 6.1.1.14 Add boot loop detection
Add boot loop detection and try to fix
2018-08-30 14:27:33 +02:00
Theo Arends 3abdaaffb7 Revert "6.1.1.14 Add boot loop detection"
This reverts commit b9a875d6fb.
2018-08-30 13:19:09 +02:00
Theo Arends b9a875d6fb 6.1.1.14 Add boot loop detection
Add boot loop detection and try to fix
2018-08-30 12:22:24 +02:00
Theo Arends 6c61cdead7 Prep for release
Prep for release
2018-08-28 17:34:51 +02:00
Theo Arends 93e855ace7 Fix compile error
Fix compile error (#3618)
2018-08-28 12:39:51 +02:00
Theo Arends d69e88b50b 6.1.1.12 - Add debounce time
6.1.1.12 20180827
 * Add commands ButtonDebounce 40..1000 and SwitchDebounce 40..1000 to have more control over debounce timing. Default is 50mS (#3594)
2018-08-27 12:01:20 +02:00
andrethomas 455bf1f3c1 MCP230xx - Extend sensor29 commands 2018-08-25 21:15:41 +02:00
Theo Arends 6a5c0d29e8 6.1.1.9 - Fixes and Additions
6.1.1.9
 * Allow user override of define MAX_RULE_TIMERS (#3561)
 * Allow user override of define MAX_RULE_VARS
 * Add GPIO options ButtonXn, SwitchXn and CounterXn to select INPUT mode instead of INPUT_PULLUP (#2525)
 * Fix OtaMagic when file path contains a dash (-) (#3563)
2018-08-23 16:05:51 +02:00
Theo Arends bab6ae5644 6.1.1.8 - Fixes and Additions
6.1.1.8
 * Fix MQTT reconnection detection when using TasmotaMqtt library (#3558)
 * Add build time setting of ButtonTopic and SwitchTopic (#3414)
 * Add display features and dynamic buffering
2018-08-23 11:49:17 +02:00
andrethomas 10aeeec4e9 change uint8_t to uint16_t in the settings union 2018-08-21 22:43:56 +02:00
andrethomas 46e1ec870e Make space for more config options 2018-08-21 22:12:40 +02:00
Theo Arends 43dbbd3a98 Add more display functionality
* Add display define USE_DISPLAY_MODES1TO5 to select display modes 1 to 5
 * Add command DisplayRotate 0..3 to select persistent display rotation
2018-08-20 18:07:19 +02:00
andrethomas 084f3d486c Fix settings.h and compiler warning in xsns_29_mcp230xx.ino 2018-08-15 22:07:25 +02:00
andrethomas 6818f8d92a Change mcp230xx_config bits and do some housekeeping on formatting 2018-08-15 10:23:02 +02:00
andrethomas f40c3c3a11 Update mcp230xx_config[].b4 -> .saved_state in settings.h 2018-08-12 00:38:54 +02:00
Theo Arends 794d9dc567 Fix settings corruption
Fix settings corruption (#3363)
2018-07-28 17:25:42 +02:00
Theo Arends 0afe15b0d3
Merge pull request #3352 from Bunkerschild/development
Added support for MPU6050 gyroscope sensor
2018-07-28 15:49:34 +02:00
Theo Arends 55ef063c0e Add command SerialSend4
Add command SerialSend4 to send binary serial data (#3345)
2018-07-28 15:43:13 +02:00
Bunkerschild 1d86a607a2
Merge pull request #2 from arendst/development
Fixes from arendst
2018-07-28 15:41:36 +02:00
Theo Arends ade9535e55
Merge pull request #3345 from emontnemery/serial_bridge_raw
Support send / receive of binary serial data
2018-07-28 15:20:07 +02:00
Theo Arends da7dadae21 Add rule triggers
Add rule triggers Wifi#Connected and Wifi#Disconnected (#3359)
2018-07-28 15:06:31 +02:00
Oliver Welter 06c2ab8229 Added support for MPU6050 gyro sensor 2018-07-28 03:53:51 +02:00
Erik 76c102c09c Support send / receive of binary serial data 2018-07-27 12:17:34 +02:00
andrethomas 6a4d4503f6 Changed mcp230xx_config structure 2018-07-21 18:06:24 +02:00
Theo Arends 612374cfbf Revisit Timers off/on
6.1.1c
 * Add command Timers 0/1 to globally disable or enable armed timers (#3270)
2018-07-20 16:12:37 +02:00
Theo Arends f9ce86a6e8 Add wifi/mqtt status blinkyblinky
6.1.0a
 * 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)
 * Remove not needed functionality from Sonoff-minimal to save space
2018-07-07 17:30:58 +02:00
Theo Arends c896437124 v6.0.0c - Add spare SetOptions
6.0.0c
* Add support for bitflags SetOption50 .. SetOption81 (#3118)
2018-07-03 12:48:56 +02:00
Theo Arends dd92abff54 Reserve space for MCP23017
Reserve space for MCP23017 (#3107)
2018-07-02 10:22:01 +02:00
Theo Arends 1c6f752ba8 Add enforce Hass discovery as light group
Add command SetOption30 to enforce Hass discovery as light group (#1784)
2018-06-29 11:15:27 +02:00
Theo Arends 6e9602418d v6.0.0b - Support up to 8 switches
6.0.0b
* Change number of switches from 4 to 8 (#2885, #3086)
2018-06-28 14:28:14 +02:00
Theo Arends e818f0da55 Fix rules induced LWT message
Fix rules induced LWT message
2018-06-25 18:00:20 +02:00
Theo Arends 176c39dfe3 Add hex/decimal receive control for RF and IR
6.0.0a
* Add command SetOption28 to switch between hex or decimal Sonoff Bridge
RF received data format (#3008)
* Add command SetOption29 to switch between hex or decimal IR received
data format
2018-06-25 12:33:23 +02:00
Theo Arends d4e414a6d5 v6.0.0a - Add CRC to Settings
6.0.0a
* Add CRC to Settings making future upgrades more fail-safe
* Remove version 3, 4 and pre 5.2 settings auto-upgrade. See
https://github.com/arendst/Sonoff-Tasmota/wiki/Upgrade#migration-path
* Change default CFG_HOLDER from 0x20161209 to 4617 (=0x1209) - no
impact on default upgrades
2018-06-02 16:59:09 +02:00
Theo Arends ca08b77aad Add two more rule sets
5.14.0b
 * Increase rule storage space to 3 rule sets of 512 characters
using commands rule1, rule2 and rule3
2018-05-24 14:25:52 +02:00
Theo Arends 06258e5a68 Rules fixes and additions
5.14.0a
* Add rules %mem1% to %mem5% variable names storing data in flash
(#2780)
* Add rules test on %varx% or %memx% (#2780)
* Fix anomalies in rules (#2778)
2018-05-20 17:46:00 +02:00
Theo Arends 482c5324ee Add KNX communication enhancement
5.14.0a
 * Add KNX communication enhancement (#2742)
2018-05-16 10:56:09 +02:00
Theo Arends d7afc664f5 Add user entry DST/STD
5.13.1c
 * Add user entry DST/STD using commands TimeStd and TimeDst
with options like 0,0,3,1,2,120 (#2721)
2018-05-14 23:22:29 +02:00
Theo Arends 20eb04b7ef v5.13.1b - Prep for user entry DST/STD
Prep for user entry DST/STD (#2721)
2018-05-13 19:43:48 +02:00
Theo Arends 854e0f9eb8 Prep for user entry STD/DST
Prep for user entry STD/DST (#2721)
2018-05-13 18:54:21 +02:00
Theo Arends 137ac82654 Revert "Prep for user entry STD/DST"
This reverts commit 42cd1b97dc.
2018-05-13 18:48:14 +02:00
Theo Arends 42cd1b97dc Prep for user entry STD/DST
Prep for user entry STD/DST (#2721)
2018-05-13 18:44:35 +02:00
Theo Arends a6e0156576 Add SetOption16 Power legacy/indexed mode
5.13.1a
* Add SetOption26 to enforce use of indexes even when only one relay is
present (#1055)
2018-05-13 17:38:44 +02:00