listeningdaemon/rule-listener/rules.py

13 lines
444 B
Python
Raw Normal View History

2024-10-28 20:33:14 +00:00
{
"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
}
]
}