# Vacation Flow(s) question

**URL:** <https://community.homey.app/t/vacation-flow-s-question/16450>\
**Category:** Flows\
**Created:** [August 4, 2019, 9:04pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450 "2019-08-04T21:04:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blusser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blusser/32/13353_2.png) [@Blusser](https://community.homey.app/u/Blusser)\
**Post date:** [August 4, 2019, 9:04pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450/1 "2019-08-04T21:04:23Z")

</div>

Dear Homey fellow users,

Now a lot of us are (about to go) on vacation, I was wondering how you automate fake presence.  
I’ve already automated my sun blinds during the (sunny) days. Next step is to automate the lights (after sunset and before sunrise (but not during bed/night time) randomly.  
With randomly I mean random lights during random time.  
Now random time isn’t the problem (countdown app) but random lights is more challenging.  
So for example I want to have at least 1 (but max 4 different where 1 light should be downstairs) lights on, switching on/off randomly between sunset and bedtime (for example between 22:30 and 23:30).  
All of this should only be done if the virtual device “vacation” is switched on.  
How do you people fix this?

---

<div class="post-metadata">

**Author:** ![ArnoP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnop/32/13709_2.png) [@ArnoP](https://community.homey.app/u/ArnoP)\
**Post date:** [August 4, 2019, 9:46pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450/2 "2019-08-04T21:46:31Z")

</div>

In a flow you can add a delay for switching on and for switching off. This delay doesn’t have to be fixed, but can also be like: 1-60 minutes where the action takes place randomly after waiting 1 to 60 minutes. Of course 5-30 of any other combination is possible.  
Also when using sunset you get a varying time (altough only about 2 minutes every day).  
I’m happy with my roller blinds that don’t let any light through… I only have a few lights that I need to manage now. My outdoor light switches on by a fixed number of minutes after sunset and switches off somewhere between midnight and 2am.

---

<div class="post-metadata">

**Author:** ![Neuron44](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neuron44/32/9492_2.png) [@Neuron44](https://community.homey.app/u/Neuron44)\
**Post date:** [August 5, 2019, 9:41am UTC](https://community.homey.app/t/vacation-flow-s-question/16450/3 "2019-08-05T09:41:30Z")

</div>

> [@Blusser](#):
>
> So for example I want to have at least 1 (but max 4 different where 1 light should be downstairs) lights on,

You can let one flow turn the 4 lights on at random times (like ArnoP explained). If you want to make sure one light is always on, just add it as a condition in the AND-part of the flows which are responsible for turning the lights off. So the flow for light 1 could read:  
WHEN  
it’s 23.30  
AND  
light 2 is on  
AND  
Virtual Device  
Vacation is on  
Then  
Turn light 1 on with a delay 30 - 45 minutes

Be creative 😉

> [@Blusser](#):
>
> All of this should only be done if the virtual device “vacation” is switched on.

I use a logic variable, but a virtual device works as well. I also have a flow which automatically turn the logic variable to ‘no’ when I’m at home (because I’m obviously no longer on vacation when I’m at home).

---

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://community.homey.app/u/eric)\
**Post date:** [August 5, 2019, 11:50am UTC](https://community.homey.app/t/vacation-flow-s-question/16450/4 "2019-08-05T11:50:51Z")

</div>

Maybe you can use the ‘Continue with a chance of…’ card from the Logic category in the ‘and’ column. Make a couple of flows that trigger on a specific time (or combined with the delayed trigger like mentioned before), and include the ‘chance-card’ in the flows that switch the light on or off. This will result in different lights being on and off each day.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [August 5, 2019, 8:21pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450/5 "2019-08-05T20:21:56Z")

</div>

> [@Blusser](#):
>
> I was wondering how you automate fake presence.  
> I’ve already automated my sun blinds during the (sunny) days. Next step is to automate the lights (after sunset and before sunrise (but not during bed/night time) randomly.  
> With randomly I mean random lights during random time.

Consider not making complex flows with random light switching.  
If undesired visitors are keeping an eye on your house…, they want in, and will notice nobody is moving in the house.  
If they just pass by, a non random light is fine to fake the presence.

I do not change the behaviour of my lights during the holidays. Its exactly the same as when I am home.

Risk of fully random flows is that they could also result in unusual random behaviour, that would not show the presence is fake…

---

<div class="post-metadata">

**Author:** ![Blusser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blusser/32/13353_2.png) [@Blusser](https://community.homey.app/u/Blusser)\
**Post date:** [August 5, 2019, 8:55pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450/6 "2019-08-05T20:55:45Z")

</div>

Thanks all for all your suggestions.  
I’ve configured multiple flows to simulate our normal bedtimes behavior (with some random delays since our own bed time can vary as well)  
Apart from that I’ve added some random toilet times 😉 as well.  
Now I need to wait for the new Ikea rollercurtains so I can add them as well 🕶  
Thanks again for the suggestions and tips!

---

<div class="post-metadata">

**Author:** ![Rune\_Andreasen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rune_andreasen/32/9211_2.png) [@Rune\_Andreasen](https://community.homey.app/u/Rune_Andreasen)\
**Post date:** [August 8, 2019, 5:04pm UTC](https://community.homey.app/t/vacation-flow-s-question/16450/7 "2019-08-08T17:04:17Z")

</div>

I have a outdoor PIR that is placed such only a visitor (friend or fo) is detected.

When: motion alarm is turned on.  
And: nobody is home  
Then: bedroom light on(10 sec delay), play podcast on sonos, turn on outdoor light
