Commit Graph

9 Commits

Author SHA1 Message Date
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