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.
Comments
If a sensor activates a lamp I like to set a duartion of the time the lights are on (hallway). I tried your suggestion but it results that the lights start after the time set,
A Trigger turns light on and sets countdown app timer for x seconds
B When countdown timer = 0 turn off light
another flow is " when countdowntimer is empty then switch off light"
countdown timer counts down untill 0 and then triggers the flow
WHEN "motion detected"
THEN
1) "switch on light A"
2) "switch off light A" including a delay of xx seconds (click on the small clock and set the delay).
Many thanks for your suggestions and input.
Motion on:
![Image: https://forum.athom.com/uploads/editor/2y/6fjonxx6c0x5.jpg](https://forum.athom.com/uploads/editor/2y/6fjonxx6c0x5.jpg)
motion off:light on:
![Image: https://forum.athom.com/uploads/editor/qg/r01kbuml9o5m.jpg](https://forum.athom.com/uploads/editor/qg/r01kbuml9o5m.jpg)
light off:1. WHEN motion detected-->THEN stop timer
Turn on the lights.
2. WHEN motion stopped-->THEN turn hourglass for 60 seconds. (60 seconds can be adjusted for ur own needs)
3. WHEN hourglass is empty-->kill the lights.
1. ALS bewegingsmelder aan gaat-->DAN stop the timer en doe de lampen aan.
2. ALS bewegingsmelder uit gaat-->DAN draai zandloper om voor 60 seconde. (60 seconde kan worden aangepast naar eigen behoefte)
3. ALS zandloper leeg is-->DAN doe de lampen uit
It doesn't seem logical to me.
Not always is it better to have less flows.