This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed Solved
[Solved] Switch off after 60 min no movement
I would like to make a flow to turn on and off my devices in the living room.
To switch it on is by a motion sensor, and that is no problem. To switch it off when there is no movement in the living room for 1 hour. For example, when after 25 minutes there is a movement in the living room, the hour must start countdown again.
Who knows how to build this in a flow?
regards Ton
Tagged:
This discussion has been closed.
Comments
In 1.3 there will be ELSE so you can make it in one flow. When countdown is empty and no movement lights out ELSE start countdown again for x time
When you only check for movement after 60 minutes (and don't restart the countdown on every movement), it will only keep the lights on when there is movement at the exact same time as the countdown reaches 0.
I think there's no use for the 'else' in these situation. You will need two flows:
1. (re)start the countdown timer at every movement
2. turn of the lights when the countdown reaches 0
Edit:
Note:
Below is made with 1.3
Pictures are better then words. If i would go for a reset of the timer every time there is movement i would do it like this. If there is movement and no countdown then set countdown to x time and turn on the lights
if there is movement and countdown is running the ELSE will be used and countdown would be reset to x time everytime the movement triggers the flow.
Thank you for the information.
I will try this app.
Regard Ton
It is working, thank you for your help.
Regards Ton
I am using exactly the same flow, very simple, works flawlessly.