# Automatically turn on holiday mode

**URL:** <https://community.homey.app/t/automatically-turn-on-holiday-mode/1985>\
**Category:** Questions & Help\
**Created:** [September 22, 2018, 12:56pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985 "2018-09-22T12:56:37Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 22, 2018, 12:56pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/1 "2018-09-22T12:56:37Z")

</div>

Hi guys,

I would like to create a flow that, for example, automatically turns the holiday mode on if no movement in the living room has been detected for 24 hours.

Someone good ideas about this? Then I would like to hear that.

Thank you

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 22, 2018, 1:06pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/3 "2018-09-22T13:06:59Z")

</div>

And check the [Heimdall](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134) app!

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 22, 2018, 1:15pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/4 "2018-09-22T13:15:14Z")

</div>

I tried with countdown. I read about the running timers. That’s the reason I’am searching for an other option! Thank you.

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 22, 2018, 1:21pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/5 "2018-09-22T13:21:22Z")

</div>

How do you suggest to make “after 24 hour”? Geofence is an option, but also a little buggy here! 🙄

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 22, 2018, 1:58pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/7 "2018-09-22T13:58:04Z")

</div>

Thx. I think I will manually turn on the holiday mode 😉 2 times a year 🤨

---

<div class="post-metadata">

**Author:** ![Robin\_van\_Kekem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_van_kekem/32/8187_2.png) [@Robin\_van\_Kekem](https://community.homey.app/u/Robin_van_Kekem)\
**Post date:** [September 23, 2018, 6:03pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/8 "2018-09-23T18:03:37Z")

</div>

You’d could schedule it?

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 23, 2018, 7:08pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/9 "2018-09-23T19:08:25Z")

</div>

Yes I can, not my first or second choice , 🙄

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [September 23, 2018, 7:30pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/10 "2018-09-23T19:30:43Z")

</div>

How about making a “presence out” flow logging the time to a variable, then set a scheudle every morning to check if the lapse time is more than 24hrs?  
When someone left home and nobody is home, execute mathjs expression

`$timenow$` to a better logic variable.

At say 12pm, executemath js expression `$timenow$ > ($yourvariable$ + (24*60*60))`

You could also set a geofence with ifttt and trigger a flow when u are out of the geofence area

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 24, 2018, 5:02am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/11 "2018-09-24T05:02:30Z")

</div>

Plz don’t get me wrong but u wanna push a button like every day [to override a flow](https://community.homey.app/t/overrule-a-flow/2011/8) but when u go on holidays twice a year u want that automated?

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 24, 2018, 6:59am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/12 "2018-09-24T06:59:51Z")

</div>

You are right 😆! You have a better solution for my problem with override a flow 🤔

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 24, 2018, 9:50am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/13 "2018-09-24T09:50:31Z")

</div>

Is holiday mode built in?

---

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 24, 2018, 10:08am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/14 "2018-09-24T10:08:34Z")

</div>

I don’t think so. I use Virtual Devices to build Holiday etc…

[https://apps.athom.com/app/com.arjankranenburg.virtual](https://apps.athom.com/app/com.arjankranenburg.virtual)

---

<div class="post-metadata">

**Author:** ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)\
**Post date:** [September 29, 2018, 11:41am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/16 "2018-09-29T11:41:31Z")

</div>

flow 1: IF last person left the house THEN set status at AWAY= true AND HOME=false AND HOLIDAY=false AND start countdown at 24H

flow2: IF coundown reache 0 THEN set status at HOLIDAY= true and AWAY=false AND HOME=false  
flow 3: IF first person enters the house THEN set status at HOME=true AND AWAY=false AND HOLIDAY=false AND stop countdown.

Make status with the APP BETTERLOGIC and everything goes automatic.

---

<div class="post-metadata">

**Author:** ![Yhaugom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yhaugom/32/88359_2.png) [@Yhaugom](https://community.homey.app/u/Yhaugom)\
**Post date:** [December 6, 2018, 9:31am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/17 "2018-12-06T09:31:04Z")

</div>

Just wondering, why do you need both `AWAY` and `HOME` variables? They would always be the opposite of each other, wouldn’t they?

---

<div class="post-metadata">

**Author:** ![Sytze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sytze/32/7846_2.png) [@Sytze](https://community.homey.app/u/Sytze)\
**Post date:** [December 6, 2018, 3:57pm UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/18 "2018-12-06T15:57:14Z")

</div>

See the post above yours:

> [@seiko](#):
>
> flow2: IF coundown reache 0 THEN set status at HOLIDAY= true and AWAY=false AND HOME=false

Away is used for ‘regular away’ and can therefor trigger certain actions. When Holiday becomes true, you want to set Away to false as well to distinguish being away for a longer period of time than regularly would be the case. This way you use Home or Away for day to day triggering and Holiday for Holiday triggering.

Of course you could also add an extra condition on the regular Away flows ‘AND Holiday = FALSE’. This way a separate Away boolean isn’t needed.

---

<div class="post-metadata">

**Author:** ![Yhaugom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yhaugom/32/88359_2.png) [@Yhaugom](https://community.homey.app/u/Yhaugom)\
**Post date:** [December 14, 2018, 6:15am UTC](https://community.homey.app/t/automatically-turn-on-holiday-mode/1985/19 "2018-12-14T06:15:49Z")

</div>

Oh, sorry. Didn’t read thoroughly enough. I guess I would try to choose another variable name/solution then. Since it feels confusing to me to have a variable stating that I am not away when I am on a holiday. Need to remember that away doesn’t mean away when on a holiday.

But it is probably only one person managing the variables, so it might not be a problem. I guess a virtual button is even better as mentioned.
