• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One Device Multiple Rules
#1
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:


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": {...}
}
...
 
Reply
#2
I have no clue what you want Smile

Also, can you post code with indentation.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Smile config, device uuid <-> id Twain 3 1,960 09-29-2020, 11:07 AM
Last Post: coolinx
  Control Rules by Web GUI scootermacro 2 572 08-22-2020, 12:28 AM
Last Post: CharlesRhymn
  Problems after upgrade with switching on and off multiple lamps consecutively Mario.Steinberg 30 6,366 05-02-2019, 05:15 PM
Last Post: curlymo
  Config migration from pilight 7 .0 to 8.1.3 "Rules" Nonaamee 4 1,768 11-17-2018, 08:35 PM
Last Post: Nonaamee
Sad pilight 8 Rules no running NormBot 3 1,360 08-10-2018, 08:32 AM
Last Post: curlymo
  Multiple screens/shutters Ulrich.Arnold 5 1,830 01-29-2018, 09:17 PM
Last Post: curlymo
  multiple uuid's, what's the syntax? hansrijn2 3 1,416 10-31-2017, 12:26 PM
Last Post: curlymo
  multiple 433mhz senders koos147 9 3,449 10-05-2017, 09:12 PM
Last Post: koos147
Bug I need help with the time rules muscat 3 1,875 12-29-2016, 07:38 PM
Last Post: muscat
Question Controlling device values using a script (updating temperature manually) H4R0 1 1,480 12-07-2016, 09:55 AM
Last Post: pilino1234

Forum Jump:


Browsing: 1 Guest(s)