Commit Graph

28 Commits

Author SHA1 Message Date
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
David Gwynne cf8cd47126 Add a key to the TuyaReceived to help when writing boilerplate rules.
The key is in the form Cmnd<msgtype>DpId<ID>DpType<DpIdType> with a
value that is the hex encoding of the DpIdData. This allows Rules to be
written that target status updates from a specific DpId and of a specific
message type. For example, an Anko HEGSM40 fan reports the speed the fan
is operating at via STAT message on DpId 4 of type Enum. To publish the
speed to MQTT as it's reported from the MCU, I can use the following rule:

  on TuyaReceived#Cmnd7DpId3DpType4 do Publish stat/%topic%/SPEED %value% endon

This appears "on the wire" as:

  stat/tasmota/SPEED 01
2020-02-03 15:02:09 +11:00
Shantur Rathore 920501fef9 Implement new Tuya multi dpid protocol. Fixes #7489 2020-01-16 15:19:57 +00:00
Theo Arends e7b061ce5a Fix Tuya PowerOn state
Fix Tuya PowerOn state (#7412)
2020-01-11 15:39:56 +01:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Theo Arends 4b49979274 Add SetOption comments to code 2019-11-03 13:51:22 +01:00
Theo Arends 5f4e38023d Add SetOption comments to code 2019-11-03 12:33:36 +01:00
Shantur Rathore 94fcff6794 TuyaMCU: Change dimmer scale before comparing with dimmer ranges. Fixes #6780 2019-10-29 10:54:34 +00:00
Theo Arends 1a148311e1 Change tuya receive from stat to tele (#6758) 2019-10-27 13:55:04 +01:00
Theo Arends 0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00