# Turn light off?

**URL:** https://community.homey.app/t/turn-light-off/69916
**Category:** Questions & Help
**Tags:** advancedflow
**Created:** [October 5, 2022, 4:22pm UTC](https://community.homey.app/t/turn-light-off/69916 "2022-10-05T16:22:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Matsaki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matsaki/32/13452_2.png) [@Matsaki](https://community.homey.app/u/Matsaki)
#### Post date: [October 5, 2022, 4:22pm UTC](https://community.homey.app/t/turn-light-off/69916/1 "2022-10-05T16:22:17Z")

</div>

Hi  
I am completely novice to Homey flows. I am making an advanced flow for my outside light but I can’t figure out how to close light after 10 minutes?

---

<div class="post-metadata">

### Author: ![WimS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wims/32/16494_2.png) [@WimS](https://community.homey.app/u/WimS)
#### Post date: [October 5, 2022, 4:51pm UTC](https://community.homey.app/t/turn-light-off/69916/2 "2022-10-05T16:51:00Z")

</div>

In the same section where you find IF, AND and THEN, you’ll find also a START, WAIT, ALL and ANY card that you can ad to your flow. Look for that WAIT card.  
Look for more info at the Athom Homey video’s on Youtube ( [Athom Homey - Advanced Flow - YouTube](https://www.youtube.com/watch?v=L8LBou635Gs) )

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [October 5, 2022, 6:05pm UTC](https://community.homey.app/t/turn-light-off/69916/3 "2022-10-05T18:05:23Z")

</div>

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d69f1da10a897dd874b785b12561c2b5f3dfb22.jpeg "Building Advanced Flows for Homey Pro - How to's and examples") ](https://www.youtube.com/watch?v=GdvPs9Jd8Ts)

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [October 5, 2022, 10:29pm UTC](https://community.homey.app/t/turn-light-off/69916/4 "2022-10-05T22:29:08Z")

</div>

Figuring out yourself (with some help from here) is the best learning method imho, and it takes a while to ‘get it’.

But, to get the hang of it, you can import (and export) (basic) flows as well, like a motion and lux driven light. This is a very recent added functionality!  
It works when you install [Device Capabilities App for Homey | Homey](https://homey.app/a/nl.qluster-it.DeviceCapabilities/)

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981):
>
> If you have questions about the App Device Capabilities or seek help with an Flow or with the Flow Exchanger, please see the [Device Capabilities Topic](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287). [German](https://community.homey.app/t/the-flow-exchange-r-helfen-und-fragen-stellen/69807)[Another German topic](https://community.homey.app/t/device-capabilities/67934)[English](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) If you have questions about the Advanced Virtual Device or seek help with the Exchanger File, please see the [Advanced Virtual Devices Topic](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198). [German](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)[English](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198) If you want to post a AVD as a Template for others to use, please post it on [Share Your Device! - Advanced Virtual Devices](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676). [German](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)[English](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676)[Eng…](https://community.homey.app/t/share-your-device-hcs-edition-advanced-virtual-devices-from-device-capabilities/69558)

> [@Share Your Device! - Advanced Virtual Devices from Device Capabilities](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676):
>
> If you have questions about the App Device Capabilities or seek help with an Flow or with the Flow Exchanger, please see the [Device Capabilities Topic](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287). [German](https://community.homey.app/t/the-flow-exchange-r-helfen-und-fragen-stellen/69807)[Another German topic](https://community.homey.app/t/device-capabilities/67934)[English](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) If you have questions about the Advanced Virtual Device or seek help with the Exchanger File, please see the [Advanced Virtual Devices Topic](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198). [German](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)[English](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198) If you want to post a AVD as a Template for others to use, please post it on [Share Your Device! - Advanced Virtual Devices](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676). This topic! [Germa…](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)

---

<div class="post-metadata">

### Author: ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)
#### Post date: [October 6, 2022, 5:31am UTC](https://community.homey.app/t/turn-light-off/69916/5 "2022-10-06T05:31:08Z")

</div>

Indeed, you might have use have a few Templates that you can import:

- [Motion activated Light/Device, off after a certain time of no motion](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/24)  
**Very simpel flow with the basic off what you want, i just created it for you.**
- [Motion activated Light/Device with Lux condition](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/6)  
Same, but with a lux condition (only goes on when it is dark out there).

You can select these templates directly in the Device Capabilities App → App Settings → Templates.

[How to use the Templates of The Flow Exchange?](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/2)

---

<div class="post-metadata">

### Author: ![Matsaki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matsaki/32/13452_2.png) [@Matsaki](https://community.homey.app/u/Matsaki)
#### Post date: [October 7, 2022, 1:08pm UTC](https://community.homey.app/t/turn-light-off/69916/6 "2022-10-07T13:08:27Z")

</div>

I have a problem closing the lights.

 ![screenshot_729](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/591011c8aa52914e22de3c681720fed5302fd5a5.jpeg)

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [October 7, 2022, 1:22pm UTC](https://community.homey.app/t/turn-light-off/69916/7 "2022-10-07T13:22:44Z")

</div>

This should work:  
_This flow triggers a light when a motion sensor triggers, or a person enters the home location. With both events, the light turns off after 5 minutes, IF there’s no motion detected in the mean time_

 ![Screenshot from 2022-10-07 15-36-11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/974b7151c7c249868261a5f7b756896d0f981374.png)

You can import it right away.  
Open Device Capabilities settings  
Hit ‘Templates’  
Hit “AF Motion and presence activated Light/Device with Sunset condition”

 ![Screenshot from 2022-10-07 15-29-50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/a/ca6f593fbcf58dbbe1fba20030ffc7f7e12694b9.png)

.  
Or use this (how to is in post #1 of the topic below)

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/26):
>
> Motion and Presence activated Light/Device with Sunset condition This flow triggers a light when a motion sensor triggers, or a person enters the home location. With both events, the light turns off after 5 minutes, IF there’s no motion detected in the mean time. Apps used: [Chronograph](https://homey.app/nl-nl/app/nl.fellownet.chronograph) TEF: [TEF:FLOWS:H4sIAAAAAAACA7VWy24jNxD8FYFn94bvh67JIYfNaXNbGEaTbFoDSCNhNPbGMPzv6RlJgZ/YQeIcpBE5ZLO6q6qpR1HF+lH45Jpp0YHzSGBDkoA+e3C5lOgMVaPstK4Xa/EVd4fV77gV…

---

<div class="post-metadata">

### Author: ![Homey2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey2/32/37387_2.png) [@Homey2](https://community.homey.app/u/Homey2)
#### Post date: [November 13, 2022, 1:46pm UTC](https://community.homey.app/t/turn-light-off/69916/8 "2022-11-13T13:46:39Z")

</div>

If you do not mind, I post below an alternative using the built-in timers of Homey. Many ways lead to Rome.  
The benefit is easy maintenance:

1. Add/Replace a motion sensor to a zone
2. Add/Replace lamps to a zone
3. No need for a special stopwatch/countdown

Downside:  
One virtual device (motion trigger) required 🥲  
Virtual Devices are extremely useful.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1edeab0dd739d734ca1b27a15776a4b2c34a495.png)
