listeningdaemon/rule-listener/rules.py
2024-10-28 21:33:14 +01:00

13 lines
444 B
Python

{
"main/fan/1": [
{ # after the fan has been on 2 times, another fan should be turned on
"count": 2, # the amount of times
"state": "on", # it has had this state
"doTopic": "main/fan/2", # i will send to topic
"doMessage": "on", # this message
"delay": 3, # after this amount of seconds
"reset": True # and i should reset my count afterwards
}
]
}