11-07-2016, 11:54 AM
(This post was last modified: 11-07-2016, 11:56 AM by ColdScythe.)
Is there a way to have multiple rules on one device but only one triggers?
Example:
1 Fan
2 Gui Buttons
2 Rules: Run Fan for 10 min ; Run Fan for 20 min
My problem at the moment: If i trigger one button, the other is triggered too. I also tried to add the same device a seccond time, but it's still the same behaviour.
What i want:
Example:
1 Fan
2 Gui Buttons
2 Rules: Run Fan for 10 min ; Run Fan for 20 min
My problem at the moment: If i trigger one button, the other is triggered too. I also tried to add the same device a seccond time, but it's still the same behaviour.
What i want:
Code:
"devices" : {
"Switch1": {
"protocol": [ "kaku_switch" ],
"id": [{
"id": 17819086,
"unit": 0
}],
"state": "on"
},
"Switch2": {
"protocol": [ "kaku_switch" ],
"id": [{
"id": 17819086,
"unit": 1
}],
"state": "on"
}
}
"rules" {
"rule1": {"rule": "IF Switch1.state IS on THEN switch DEVICE Switch1 TO off AFTER 20 MINUTE",
"active": 1
},
"rule2": {"rule": "IF Switch2.state IS on THEN switch DEVICE Switch2 TO off AFTER 10 MINUTE",
"active": 1
}
},
"gui": {
"Switch1": {...},
"Switch2": {...}
}
...