Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3-Way switch issues (SW6) #10

Open
dmitripr opened this issue Oct 19, 2023 · 1 comment
Open

3-Way switch issues (SW6) #10

dmitripr opened this issue Oct 19, 2023 · 1 comment

Comments

@dmitripr
Copy link

I'm having an issue with a 3-Way switch. I'm using the following hardware and Tasmota template: https://templates.blakadder.com/gosund_SW6.html

I've added the rules according to the above template, except that I moved rule3 to the rule4 position. I'm using the Tripple Relay driver for this device, with 3 child devices, the main one being the S3 device (the others are just dummy).

When I use Hubitat to turn the light on, it works perfect. However, if I use the hardware button on the device or the second manual "dumb" switch (for the 3-way control), the light goes on-off-on-off in a repeating fashion. I ended up disabling rule3 and just use polling capability to make this work. It works fine with the polling and rule3 off.

Nonetheless, I would like to use the Tasmota Sync functionally, if possible. Is there another way to set this up? Should I use another driver? Below is the console log from my switch, when I use the "dumb" switch to turn on the light.

Console log:
15:42:21.958 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"OFF"} 15:42:21.961 MQT: stat/kitchendiningtable/POWER3 = OFF 15:42:21.968 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {\"TRIG\":\"HOLD\"} ENDON"}} 15:42:22.010 RUL: POWER3#STATE performs "Power2 2" 15:42:22.016 MQT: stat/kitchendiningtable/RESULT = {"POWER2":"ON"} 15:42:22.020 MQT: stat/kitchendiningtable/POWER2 = ON 15:42:22.052 RUL: POWER3#STATE performs "backlog0 Var14 0 ; RuleTimer1 1" 15:42:22.071 MQT: stat/kitchendiningtable/RESULT = {"Var12":"0"} 15:42:22.158 MQT: stat/kitchendiningtable/RESULT = {"POWER1":"ON"} 15:42:22.161 MQT: stat/kitchendiningtable/POWER1 = ON 15:42:22.168 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:22.222 RUL: POWER1#STATE=1 performs "Backlog rule1 0; power3 1; rule1 1" 15:42:22.239 RUL: POWER1#STATE performs "backlog0 Var12 1 ; RuleTimer1 1" 15:42:22.261 MQT: stat/kitchendiningtable/RESULT = {"Var14":"0"} 15:42:22.323 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:22.358 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {\"TRIG\":\"HOLD\"} ENDON"}} 15:42:22.390 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"ON"} 15:42:22.393 MQT: stat/kitchendiningtable/POWER3 = ON 15:42:22.401 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {\"TRIG\":\"HOLD\"} ENDON"}} 15:42:22.443 RUL: POWER3#STATE performs "Power2 2" 15:42:22.450 MQT: stat/kitchendiningtable/RESULT = {"POWER2":"OFF"} 15:42:22.453 MQT: stat/kitchendiningtable/POWER2 = OFF 15:42:22.484 RUL: POWER3#STATE performs "backlog0 Var14 1 ; RuleTimer1 1" 15:42:22.502 MQT: stat/kitchendiningtable/RESULT = {"Var12":"1"} 15:42:22.590 MQT: stat/kitchendiningtable/RESULT = {"POWER1":"OFF"} 15:42:22.593 MQT: stat/kitchendiningtable/POWER1 = OFF 15:42:22.600 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:22.651 RUL: POWER1#STATE=0 performs "Backlog rule1 0; power3 0; rule1 1" 15:42:22.671 RUL: POWER1#STATE performs "backlog0 Var12 0 ; RuleTimer1 1" 15:42:22.693 MQT: stat/kitchendiningtable/RESULT = {"Var14":"1"} 15:42:22.755 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:22.790 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {\"TRIG\":\"HOLD\"} ENDON"}} 15:42:22.822 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"OFF"} 15:42:22.825 MQT: stat/kitchendiningtable/POWER3 = OFF 15:42:22.851 RUL: POWER3#STATE performs "backlog0 Var14 0 ; RuleTimer1 1" 15:42:22.873 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {\"TRIG\":\"HOLD\"} ENDON"}} 15:42:22.907 MQT: stat/kitchendiningtable/RESULT = {"Var12":"0"} 15:42:22.971 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:23.006 MQT: stat/kitchendiningtable/RESULT = {"Var14":"0"} 15:42:23.071 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0} 15:42:25.078 RUL: RULES#TIMER=1 performs "var15 '0','0','0'" 15:42:25.085 MQT: stat/kitchendiningtable/RESULT = {"Var15":"'0','0','0'"}

@dmitripr
Copy link
Author

Just realized the paste above stripped all the new-line characters from the text. Repasting here to make it easier to read.

15:42:21.958 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"OFF"} 15:42:21.961 MQT: stat/kitchendiningtable/POWER3 = OFF
15:42:21.968 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {"TRIG":"HOLD"} ENDON"}}
15:42:22.010 RUL: POWER3#STATE performs "Power2 2"
15:42:22.016 MQT: stat/kitchendiningtable/RESULT = {"POWER2":"ON"}
15:42:22.020 MQT: stat/kitchendiningtable/POWER2 = ON
15:42:22.052 RUL: POWER3#STATE performs "backlog0 Var14 0 ; RuleTimer1 1"
15:42:22.071 MQT: stat/kitchendiningtable/RESULT = {"Var12":"0"}
15:42:22.158 MQT: stat/kitchendiningtable/RESULT = {"POWER1":"ON"}
15:42:22.161 MQT: stat/kitchendiningtable/POWER1 = ON
15:42:22.168 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:22.222 RUL: POWER1#STATE=1 performs "Backlog rule1 0; power3 1; rule1 1" 15:42:22.239 RUL: POWER1#STATE performs "backlog0 Var12 1 ; RuleTimer1 1"
15:42:22.261 MQT: stat/kitchendiningtable/RESULT = {"Var14":"0"}
15:42:22.323 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:22.358 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {"TRIG":"HOLD"} ENDON"}}
15:42:22.390 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"ON"}
15:42:22.393 MQT: stat/kitchendiningtable/POWER3 = ON
15:42:22.401 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {"TRIG":"HOLD"} ENDON"}}
15:42:22.443 RUL: POWER3#STATE performs "Power2 2"
15:42:22.450 MQT: stat/kitchendiningtable/RESULT = {"POWER2":"OFF"}
15:42:22.453 MQT: stat/kitchendiningtable/POWER2 = OFF 15:42:22.484 RUL: POWER3#STATE performs "backlog0 Var14 1 ; RuleTimer1 1"
15:42:22.502 MQT: stat/kitchendiningtable/RESULT = {"Var12":"1"}
15:42:22.590 MQT: stat/kitchendiningtable/RESULT = {"POWER1":"OFF"}
15:42:22.593 MQT: stat/kitchendiningtable/POWER1 = OFF
15:42:22.600 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:22.651 RUL: POWER1#STATE=0 performs "Backlog rule1 0; power3 0; rule1 1" 15:42:22.671 RUL: POWER1#STATE performs "backlog0 Var12 0 ; RuleTimer1 1"
15:42:22.693 MQT: stat/kitchendiningtable/RESULT = {"Var14":"1"}
15:42:22.755 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:22.790 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {"TRIG":"HOLD"} ENDON"}}
15:42:22.822 MQT: stat/kitchendiningtable/RESULT = {"POWER3":"OFF"}
15:42:22.825 MQT: stat/kitchendiningtable/POWER3 = OFF
15:42:22.851 RUL: POWER3#STATE performs "backlog0 Var14 0 ; RuleTimer1 1"
15:42:22.873 MQT: stat/kitchendiningtable/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":114,"Free":397,"Rules":"ON Power3#State do Power2 2 endon ON switch2#state=3 DO publish stat/tasmota_C0E078/SWITCH1T {"TRIG":"HOLD"} ENDON"}}
15:42:22.907 MQT: stat/kitchendiningtable/RESULT = {"Var12":"0"}
15:42:22.971 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:23.006 MQT: stat/kitchendiningtable/RESULT = {"Var14":"0"}
15:42:23.071 MQT: stat/kitchendiningtable/RESULT = {"T1":1,"T2":0,"T3":0,"T4":0,"T5":0,"T6":0,"T7":0,"T8":0}
15:42:25.078 RUL: RULES#TIMER=1 performs "var15 '0','0','0'"
15:42:25.085 MQT: stat/kitchendiningtable/RESULT = {"Var15":"'0','0','0'"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant