Commit Graph

59 Commits

Author SHA1 Message Date
Theo Arends 89d8fbb0ec Change ARRAY_SIZE() to nitems() 2021-02-28 12:50:02 +01:00
Jayme Snyder d148a2cb9c Reset Tuya.ignore_dim if Tuya.ignore_dimmer_cmd_timeout was set and expired 2021-02-24 18:28:34 -05:00
jaymemaurice a594739bac
Support negative temperature readings
Changes Tuya.Sensor to signed integer
2021-02-18 10:34:33 -05:00
jaymemaurice 3ad9a2f7bd
TuyaMCU precise temperature
Sensor packetValue now interpreted as float based on configuration of  TempRes command.
Beware TempRes default may be 1 thus a TuyaMCU device may need TempRes set to 0 after this change if it's currently working.
See https://github.com/arendst/Tasmota/issues/10917
2021-02-11 12:56:18 -05:00
Yves De Muyter 74d99c669a Bring ModeSet value out of the for loop, this ModeSet is repeated for every other value on the webpage. 2021-02-10 11:15:23 +01:00
Theo Arends d8ea10877e Cleanup webserver 2021-02-02 15:48:29 +01:00
Theo Arends 20704ab700 Refactor dtostrfd 2021-01-26 16:26:00 +01:00
Theo Arends efaed8046d Refactor AddLog usage 2021-01-23 16:26:23 +01:00
Stephan Hadinger 2f139d0e47 More PROGMEM 2021-01-18 21:48:04 +01:00
Yves De Muyter 8a46dcf767 Respond correctly to the time request from the MCU using the TuyaMCU protocol. 2021-01-06 15:25:40 +01:00
Theo Arends 2b7d605696 Changed maximum chars in AddLog_P logging
Changed maximum chars in AddLog_P logging reduced from 700 to 128 (LOGSZ) to enhance stability
2021-01-02 16:20:15 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Stephan Hadinger 2afc18bac2 Fix compilation for TuyaMCU 2020-12-29 19:58:38 +01:00
Theo Arends b1b20c53b4 Prep removal of global log_data
Prep removal of global log_data providing re-entry
2020-12-23 18:00:59 +01:00
device111 b6ca5c6561 fix correct day_week 2020-12-15 11:20:22 +01:00
device111 7b43817dba fix day_of_week in Tuya_mcu
Tasmota begin with 1 for sunday but Tuya MCU Protokoll begin with 1 at monday in "day_of_week"
2020-12-15 01:23:48 +01:00
Theo Arends 4c43ce479d Try to fix TuyaMcu powerusage
Try to fix TuyaMcu powerusage (#10005)
2020-11-29 13:32:13 +01:00
Federico Leoni ae32549759 TuyaUpdate 2020-11-28 11:49:04 -03:00
Theo Arends 85612776f6 Add Tuya commands
Add commands ``TuyaRGB``, ``TuyaEnum`` and ``TuyaEnumList`` (#9769)
2020-11-08 12:51:08 +01:00
Federico Leoni 345f27bf17 Fix_Json 2020-11-07 18:40:43 -03:00
Federico Leoni 61c5e3bc2c TuyaMCU Update 1/3 2020-11-07 18:08:07 -03:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Theo Arends af5082320d Use global struct 2020-10-30 12:29:48 +01:00
Theo Arends e59bfc1d69 Use global struct 2020-10-29 13:58:50 +01:00
Theo Arends 3bebfb32d3 Use global struct 2020-10-29 12:21:24 +01:00
Theo Arends f1ac7b2d67 Use global struct 2020-10-28 19:03:39 +01:00
Theo Arends b93b719108 Use global struct 2020-10-28 17:32:07 +01:00
Federico Leoni 9df75decc1
Fix mqtt topic for dimmers 2020-10-22 16:10:52 -03:00
Theo Arends f13f7355f4 Fix TuyaMcu energy display
Fix TuyaMcu energy display regression from v8.5.0.1 (#9547)
2020-10-17 12:48:45 +02:00
Federico Leoni ae2e54d97b TuyaMCU update 2020-09-19 08:26:29 -03:00
Federico Leoni e45a5f3323 TuyaMCU Update 2020-09-16 15:45:56 -03:00
Theo Arends 38179062ae Refactor TuyaMcu year 2020-07-25 14:52:37 +02:00
bettman66 0467ffc62a millennium error 2020-07-25 09:21:56 +02:00
Theo Arends 031b04fb53 Add check for valid time 2020-07-16 17:28:47 +02:00
Walter Zengel 8813827376
issues #8866 2020-07-16 17:13:19 +02:00
Walter Zengel 858d150398
issues #8866
update tuyatime every 60sec
2020-07-16 16:42:06 +02:00
Theo Arends 6843f58a91 Add support for Schneider Electric iEM3000
Add support for Schneider Electric iEM3000 series Modbus energy meter by Marius Bezuidenhout
2020-07-14 17:37:14 +02:00
Federico Leoni 03db100197 TuyaMCU baud rate 2020-06-29 11:01:55 -03:00
Theo Arends b5f45aa295 Fix ESP32 SPI config 2020-06-20 17:58:21 +02:00
Federico Leoni 152c2801ae Prep for Tuya MCU Discovery 2020-06-09 14:08:57 -03:00
Theo Arends c939077514 Change pin handling part 3 2020-04-27 12:54:07 +02:00
Theo Arends c9149b53c5 Change pin handling part 1 2020-04-26 17:33:27 +02:00
Theo Arends 104e3c4838 Implement ARRAY_SIZE macro 2020-04-25 11:37:36 +02:00
Theo Arends 9ed8e7c254 Fix internal array size checks 2020-04-24 17:39:26 +02:00
Walter Zengel 550f079f6a
Support for setting the time in the Tuya MCU
Switch on with USE_TUYA_TIME
2020-04-22 11:07:45 +02:00
Paul C Diem d16f1a7a0f Add Light skip_light_fade flag and Dimmer3 command, Ignore MCU dimmer changes after sending dimmer command 2020-03-05 18:15:58 -06:00
David Gwynne 6e0cd5bd68 print numbers as numbers in json, not strings. 2020-02-19 18:10:07 +11:00
David Gwynne 25034c153a use TuyaSend0 to send a TUYA_CMD_QUERY_STATE command. 2020-02-09 18:44:05 +11:00
David Gwynne f3c6627ec6 Tweak the key/value for the type+id so it's only printed for STAT 2020-02-04 21:30:30 +11:00
David Gwynne d651e5c4a2 print rxed mcu data so it can be printed in a more natural way.
basically it tries to use %d to print things when it can instead of
hex strings.
2020-02-03 21:41:46 +11:00