Rule with multiple triggers

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
User avatar
Satellietje
Posts: 8
Joined: Sunday 30 March 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Almere
Contact:

Rule with multiple triggers

Post by Satellietje »

I have a sonoff Zigbee Bridge Pro and I have a Zigbee 8 button remote. When I press the buttons, I get the following rules back in console.
Domoticz does not understand this. Domoticz expects an IDX. I have made a rule that works, but there is Power=0 in all left buttons and all right buttons contain Power=1.
If I apply the first rule, the switch listen to all 0 and 1 buttons. If I make a rule with Group=16358 then I can only switch or off with the first button, because they have the same group.

Button 1 -off
MQT: tele/tasmota_10C440/SENSOR = {"ZbReceived":{"0xAB80":{"Device":"0xAB80","0006!00":"","Power":0,"Endpoint":1,"Group":16385,"LinkQuality":153}}}
Button 1 -on
MQT: tele/tasmota_10C440/SENSOR = {"ZbReceived":{"0xAB80":{"Device":"0xAB80","0006!01":"","Power":1,"Endpoint":1,"Group":16385,"LinkQuality":142}}}
Button 2 -off
MQT: tele/tasmota_10C440/SENSOR = {"ZbReceived":{"0xAB80":{"Device":"0xAB80","0006!00":"","Power":0,"Endpoint":2,"Group":16386,"LinkQuality":142}}}
Button 2 -on
MQT: tele/tasmota_10C440/SENSOR = {"ZbReceived":{"0xAB80":{"Device":"0xAB80","0006!01":"","Power":1,"Endpoint":2,"Group":16386,"LinkQuality":142}}}


Rule1 ON ZbReceived#0xAB80#Power=1 DO publish domoticz/in {"idx":2,"nvalue":1} ENDON
Rule1 ON ZbReceived#0xAB80#Group=16385 DO publish domoticz/in {"idx":2,"nvalue":1} ENDON

That's how the rule should be, but this doesn't work (ofcourse) ;)
Rule1 ON ZbReceived#0xAB80#Power=0 and Group=16385 DO publish domoticz/in {"idx":2,"nvalue":0} ENDON

How can I make the rule in such a way that the two values ​​have to be correct before there is a DO assignment?
I started rules for the first time today and tried a lot, but I can't get out of this.

Image
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest