@gomensa wrote:
Hi all
I am a newbie with automation and hassio. So far I have hassio up and runing on my RP3. I have deconz installed and have a number of ikea bulbs, switches and motion sensors set up and working via the ui (phoscon) . Where I am having issues is with door sensors in deconz. I have a door sensor picked up and visible in phoscon but I know there is no support for it to do anything. The only way to add automaton is through rules using the api. I have created a rule to turn on a group of lights when you open the door and it works a treat. However, how do you create a rule to turn off the lights but with a 2 minute delay. So, when the door is closed the lights stay on for 2 minutes. I tired the below but they just turn off as soon as the door closes.
{ "actions": [ { "address": "/groups/7/action", "body": { "on": false "transitiontime" : 1200 }, "method": "PUT" } ], "conditions": [ { "address": "/sensors/23/state/open", "operator": "eq", "value": "false" }, { "address": "/sensors/23/state/open", "operator": "dx" } ], "name" : "Front Door Closed Lights" }
Posts: 1
Participants: 1