# An advanced flow for simulation away lights

**URL:** https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746
**Category:** Flows
**Tags:** advancedflow
**Created:** [October 18, 2022, 9:09am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746 "2022-10-18T09:09:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![w1dg3r](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w1dg3r/32/63108_2.png) [@w1dg3r](https://community.homey.app/u/w1dg3r)
#### Post date: [October 18, 2022, 9:09am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/1 "2022-10-18T09:09:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c08b93a2060ca7e6856532d039b48ebe389279b1.jpeg)  
This is my advanced flow when away. Random chance for lights are set and for some lights the chance increases if it has not happened. Maybe it can give somebody inspiration 😃

---

<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 18, 2022, 9:22am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/2 "2022-10-18T09:22:39Z")

</div>

What I’m missing in the first flow with the time between 09:00 - 23:59, is a logic card with the outdoor brightness in lux. Because I wouldn’t want the light to be on during the day as well, even though it’s not necessary. In terms of energy saving it’s also still a financial aspect

---

<div class="post-metadata">

### Author: ![w1dg3r](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w1dg3r/32/63108_2.png) [@w1dg3r](https://community.homey.app/u/w1dg3r)
#### Post date: [October 18, 2022, 9:48am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/3 "2022-10-18T09:48:08Z")

</div>

Yes, totally agree. That’s a reason to get me a new outdoor sensor 😃

---

<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 18, 2022, 10:44am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/4 "2022-10-18T10:44:27Z")

</div>

In the meantime you could use the condition card „It’s after sunset“. Just a suggestion.

---

<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 18, 2022, 11:37am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/5 "2022-10-18T11:37:58Z")

</div>

> [@w1dg3r](#):
>
> Maybe it can give somebody inspiration 😃

**Neat!**

Could you share your TEF (here or on the [The Flow Exchange(r)](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981)? (I don’t want to rebuild it, just import it to my devices)  
To generate a TEF, all you have to do is:

- Install [Device Capabilities App](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/)
- Goto App Settings
- Select the flow(s) and press Create TEF.
- Done: TEF is in your clipboard ready to paste into a message.

---

<div class="post-metadata">

### Author: ![Kim\_Lund](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_lund/32/70368_2.png) [@Kim\_Lund](https://community.homey.app/u/Kim_Lund)
#### Post date: [February 15, 2023, 7:29pm UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/6 "2023-02-15T19:29:33Z")

</div>

Great flow!

1 question, how do setup the “off-delay” random? Is it the build-in Delay??  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/85905e520a04f81826d747cbe6f21cf1f4b3db36.png)

---

<div class="post-metadata">

### Author: ![w1dg3r](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w1dg3r/32/63108_2.png) [@w1dg3r](https://community.homey.app/u/w1dg3r)
#### Post date: [February 15, 2023, 7:52pm UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/7 "2023-02-15T19:52:51Z")

</div>

Yes, exactly. It will give you a random delay between 3-8minutes 😃

---

<div class="post-metadata">

### Author: ![johnnyDrama](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johnnydrama/32/80488_2.png) [@johnnyDrama](https://community.homey.app/u/johnnyDrama)
#### Post date: [December 31, 2024, 4:51am UTC](https://community.homey.app/t/an-advanced-flow-for-simulation-away-lights/70746/8 "2024-12-31T04:51:37Z")

</div>

This made my day! Many thanks to you @w1dg3r !!

I just added a check on Date & Time / It’s nighttime before I start to turn on the lights.
