# 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:** 1\
**Showing post:** 7

<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…

---

_[View the full topic](https://community.homey.app/t/turn-light-off/69916)._
