# When time is VARIABLE

**URL:** <https://community.homey.app/t/when-time-is-variable/72658>\
**Category:** Questions & Help\
**Created:** [November 25, 2022, 3:30pm UTC](https://community.homey.app/t/when-time-is-variable/72658 "2022-11-25T15:30:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_k/32/10319_2.png) [@David\_K](https://community.homey.app/u/David_K)\
**Post date:** [November 25, 2022, 3:30pm UTC](https://community.homey.app/t/when-time-is-variable/72658/1 "2022-11-25T15:30:51Z")

</div>

Hi guys (and gals),  
I’m looking for a way (possible some app) that would allow me to create variable and include it in a number of flows in a way not to change a bunch of WHEN statements rather only that variable.

Variable would be actually time string in example 16:15 and that I would like to include in when i.e. When time is VARIABLE.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [November 25, 2022, 3:37pm UTC](https://community.homey.app/t/when-time-is-variable/72658/2 "2022-11-25T15:37:39Z")

</div>

Maybe you can use Alarm setting for this?

---

<div class="post-metadata">

**Author:** ![David\_K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_k/32/10319_2.png) [@David\_K](https://community.homey.app/u/David_K)\
**Post date:** [November 25, 2022, 4:05pm UTC](https://community.homey.app/t/when-time-is-variable/72658/3 "2022-11-25T16:05:55Z")

</div>

Alarm has exactly those variables I’m interested in however will alarm actually trigger some sound or app notification? Ok I’ll test that. I don’t want to be “alarmed” I just want to easily change at which time of a day flows will start without editing flows directly.

I’ll test alarm for sure.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [November 25, 2022, 4:07pm UTC](https://community.homey.app/t/when-time-is-variable/72658/4 "2022-11-25T16:07:54Z")

</div>

If there is made no flow for the alarm triggering, a wake-up sound will play, as soon as you make a flow (any flow) that will disable.  
Future proofing: This is only the case for Homey Pro (2016, 2018 & 2019)

---

<div class="post-metadata">

**Author:** ![David\_K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_k/32/10319_2.png) [@David\_K](https://community.homey.app/u/David_K)\
**Post date:** [November 25, 2022, 4:09pm UTC](https://community.homey.app/t/when-time-is-variable/72658/5 "2022-11-25T16:09:26Z")

</div>

That’s very good tip. Thnx.

---

<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:** [November 25, 2022, 7:30pm UTC](https://community.homey.app/t/when-time-is-variable/72658/6 "2022-11-25T19:30:21Z")

</div>

And you can change the time for alarms in flows through HomeyScript.

---

<div class="post-metadata">

**Author:** ![David\_K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/david_k/32/10319_2.png) [@David\_K](https://community.homey.app/u/David_K)\
**Post date:** [November 26, 2022, 6:30pm UTC](https://community.homey.app/t/when-time-is-variable/72658/7 "2022-11-26T18:30:58Z")

</div>

Looks like really alarm is workaround for “when time is VARIABLE”. Alarm substitutes mentioned with additional day per day possibility. Also, like already said no audible notification if you have flow.

Thnx guys for ideas and tips.

---

<div class="post-metadata">

**Author:** ![Hamster](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hamster/32/16580_2.png) [@Hamster](https://community.homey.app/u/Hamster)\
**Post date:** [December 18, 2022, 6:25pm UTC](https://community.homey.app/t/when-time-is-variable/72658/8 "2022-12-18T18:25:21Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> And you can change the time for alarms in flows through HomeyScript.

Do you have an example script?

Edit: I found an example here…

> [@\[APP\]\[Pro\] Advanced Triggers - Trigger and action cards with eventname for Advanced Flows](https://community.homey.app/t/app-pro-advanced-triggers-trigger-and-action-cards-with-eventname-for-advanced-flows/65651/128):
>
> No, i don’t see that posibility right now in AT. Technicly it could be made, but placing variables in the Trigger, i am not sure that thats a very good idea, performance wise. I might look into it (some day/right now a bit). But first let’s see if i have a better solution for you: The default Homey Alarms. Perhaps it’s best you create 1 or 3 Alarms for this. This gives you some excellent management options through the Homey app. And, the only thing missing is a flow to set the times, but h…
