{ "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 } ] }