-
Notifications
You must be signed in to change notification settings - Fork 3
Device WF DS01
Note: this dimmer's template includes a button. We don;t yet know if this is necessary, but it may cause problems, as when TAS sends a power command, it could feed back to the button input, toggling TAS again.
Main issue that I see until now with this dimmer While the dimmer is off: issue a dimmer to adjust the dimming value while staying powered off result: new dimming value is accepted a "power on" command will automatically reverted by a power off (reason unknown)
14:53:01.672 CMD: power on 14:53:01.674 SRC: WebConsole from 192.168.0.207 14:53:01.677 CMD: Grp 0, Cmd 'POWER', Idx 1, Len 2, Pld 1, Data 'on' 14:53:01.679 TYA: setchannels 14:53:01.681 TYA: DP 2 desiredvalue set (0x71000000 len 4) 14:53:01.683 TYA: set of dpid 2 to 113 requested 14:53:01.685 TYA: Valid DP 2 type 2 (val) mcuval 0 desired 113 setflag 1 rxed 1 14:53:01.687 TYA: Valid DP 1 type 1 (bool/enum) mcuval[0] 0x00000000 desired[0] 0x00000000 setflag 0 rxed 1 14:53:01.705 TYA: DP 1 desiredvalue set (0x00000001 len 1) 14:53:01.707 TYA: set of dpid 1 to 1 requested 14:53:01.709 TYA: Valid DP 2 type 2 (val) mcuval 0 desired 113 setflag 1 rxed 1 14:53:01.711 TYA: Valid DP 1 type 1 (bool/enum) mcuval[0] 0x00000000 desired[0] 0x00000001 setflag 1 rxed 1 14:53:01.713 TYA: posted rpower 1 val 1 to dpid 1 src 0 dev 0 14:53:01.729 MQT: tele/Dimmer2/STATE = {"Time":"2022-04-10T14:53:01","Uptime":"0T00:01:51","UptimeSec":111,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Dimmer":43,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"YBROUTER-2G","BSSId":"FC:EC:DA:81:90:CE","Channel":11,"Mode":"11n","RSSI":100,"Signal":-49,"LinkCount":1,"Downtime":"0T00:00:04"}} 14:53:01.737 MQT: stat/Dimmer2/RESULT = {"POWER":"ON"} 14:53:01.742 MQT: stat/Dimmer2/POWER = ON 14:53:01.962 TYA: fnId=11 RX Relay-1 --> MCU State: On Current State:Off 14:53:01.964 SRC: Switch 14:53:01.966 TYA: setchannels 14:53:01.983 TYA: rpower 1 val 1 dpid 1 ignored src 4 dev 0 14:53:01.993 MQT: tele/Dimmer2/STATE = {"Time":"2022-04-10T14:53:01","Uptime":"0T00:01:51","UptimeSec":111,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":36,"MqttCount":1,"POWER":"ON","Dimmer":0,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"YBROUTER-2G","BSSId":"FC:EC:DA:81:90:CE","Channel":11,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:04"}} 14:53:01.000 MQT: stat/Dimmer2/RESULT = {"POWER":"ON"} 14:53:02.001 MQT: stat/Dimmer2/POWER = ON 14:53:02.004 TYA: s 12 -> 11 - sends 22, rxs 38 14:53:02.007 {"TuyaReceived":{"Data":"55AA00070008020200040000000218","Cmnd":7,"CmndData":"0202000400000002","DpType2Id2":2,"2":{"DpId":2,"DpIdType":2,"DpIdData":"00000002"}}} 14:53:02.009 TYA: Valid DP 2 type 2 (val) mcuval 2 desired 113 setflag 1 rxed 1 14:53:02.011 TYA: Valid DP 1 type 1 (bool/enum) mcuval[0] 0x00000001 desired[0] 0x00000000 setflag 0 rxed 1 14:53:02.013 TYA: fnId=21 RX value 2 from dpId 2 14:53:02.017 {"TuyaReceived":{"Data":"55AA0007000501010001000E","Cmnd":7,"CmndData":"0101000100","DpType1Id1":0,"1":{"DpId":1,"DpIdType":1,"DpIdData":"00"}}} 14:53:02.020 TYA: Valid DP 2 type 2 (val) mcuval 2 desired 113 setflag 1 rxed 1 14:53:02.022 TYA: Valid DP 1 type 1 (bool/enum) mcuval[0] 0x00000000 desired[0] 0x00000000 setflag 0 rxed 1 14:53:02.024 TYA: fnId=11 RX Relay-1 --> MCU State: Off Current State:On 14:53:02.026 SRC: Switch 14:53:02.028 TYA: setchannels 14:53:02.056 TYA: rpower 0 val 0 dpid 1 ignored src 4 dev 0 14:53:02.066 MQT: tele/Dimmer2/STATE = {"Time":"2022-04-10T14:53:02","Uptime":"0T00:01:52","UptimeSec":112,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":36,"MqttCount":1,"POWER":"OFF","Dimmer":0,"Fade":"OFF","Speed":1,"LedTable":"OFF","Wifi":{"AP":1,"SSId":"YBROUTER-2G","BSSId":"FC:EC:DA:81:90:CE","Channel":11,"Mode":"11n","RSSI":100,"Signal":-48,"LinkCount":1,"Downtime":"0T00:00:04"}} 14:53:02.072 MQT: stat/Dimmer2/RESULT = {"POWER":"OFF"} 14:53:02.076 MQT: stat/Dimmer2/POWER = OFF
Not sure why my line feeds are disappearing....
Update: Did a reset 6 Applied the template Backlog Ledtable 0; TuyaMCU 21,2 Backlog IPAddress1 192.168.0.xx; IPAddress2 192.168.0.xx; IPAddress3 255.255.255.0; IPAddress4 8.8.8.8; Restart 1
setting dimmer (while off) now results in an immediate power on (as expected) and quick testing shows everything works as expected
so20 1 ; so54 1
setting dimmer (while off) only sets the dimmer (as expected) power on now seems to work
Next to test: the dimming value as it is not consistently recording the correct dimming value