rule for Sonoff TX Ultimate does not work #22037
Unanswered
darkdan2000
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Did you by any chance activate one-shot? You can see full rule set status using the command Anyway, due to the contortions with rules for processing such payloads, I'd recommend to use Berry instead, providing significantly better processing options than rules. Simplistic example:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi friends,
I have a problem with the rules for switching the relay on the Sonoff TX Ultimate (T5 4-Gang).
The rule (found here) which is specified for the 2-Gang switch, for example, doesn't work for me.
rule2 On TXultimate#Action$!Touch do break rule2 + On TXUltimate#Channel<5 do power1 toggle endon rule2 + On TXUltimate#Channel>5 do power2 toggle endon
Log output:
16:00:21.318 bytes('AA5501020200012874')
16:00:21.320 Touch event: 0 pos: 1
16:00:21.325 MQT: tele/Sonoff-Lichtschalter-Keller/RESULT = {"TXUltimate":{"Action":"Touch","Channel":1}}
16:00:21.518 bytes('AA5501020101BF04')
16:00:21.520 Short press zone: 1
16:00:21.525 MQT: tele/Sonoff-Lichtschalter-Keller/RESULT = {"TXUltimate":{"Action":"Short","Channel":1}}
16:00:21.533 RUL: TXULTIMATE#ACTION$!TOUCH performs ''
What works is:
rule2 On TXultimate#Action=Touch do power1 toggle endon
Log Output:
15:43:25.151 bytes('AA5501020200012874')
15:43:25.153 Touch event: 0 pos: 1
15:43:25.159 MQT: tele/Sonoff-Lichtschalter-Keller/RESULT = {"TXUltimate":{"Action":"Touch","Channel":1}}
15:43:25.166 RUL: TXULTIMATE#ACTION=TOUCH performs 'power1 toggle'
15:43:25.171 MQT: stat/Sonoff-Lichtschalter-Keller/RESULT = {"POWER1":"ON"}
15:43:25.173 MQT: stat/Sonoff-Lichtschalter-Keller/POWER1 = ON
15:43:25.301 bytes('AA5501020101BF04')
15:43:25.303 Short press zone: 1
15:43:25.309 MQT: tele/Sonoff-Lichtschalter-Keller/RESULT = {"TXUltimate":{"Action":"Short","Channel":1}}
I think somehow there is a problem with the channel evaluation.
So if I specify in the rule at which touch position (channel 1-10) the relay should be switched.
Or am I wrong here? Or is it a simple syntax error?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions