# \[APP\]\[Pro\] Action Scheduler

**URL:** <https://community.homey.app/t/app-pro-action-scheduler/75592>\
**Category:** Apps\
**Tags:** app, tools, homey-pro\
**Created:** [January 26, 2023, 8:50am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592 "2023-01-26T08:50:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 8:50am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/1 "2023-01-26T08:50:06Z")

</div>

> **[Action Scheduler | Homey](https://homey.app/en-us/app/fi.oh2th.alarmutils/Action-Scheduler/)**
>
> Dynamic flow scheduling

* * *

## Contribute

If you enjoy what I do, consider supporting me on [Ko-fi](https://ko-fi.com/oh2th) or [Paypal](https://paypal.com/oh2th)! Every little bit means the world!

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/oh2th)

 ![PayPal-Monogram-FullColor-RGB](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a4487efcecea3eaa1117c94d5b3b9abb494f4374.png) [![paypal-donate](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/9/b9009a31c1d273ef85c97c5c23d01c721ef11770.png)](https://paypal.me/oh2th)

* * *

> # Introduction

Dynamic flow scheduling with a Scheduler device configurable from flows.

> # App Features

> **Flow cards: And - Conditions**
>
> - Current date matches/doesn’t match cron expression.

> # Device Features

## Device: Cron Time

> **Adding a new device**
>
> Add a new Cron Time Device from the Action Scheduler app just like any other device. A new schedule configuration is prompted where you will input:
> 
> - A name for the device
> - The cron time for the schedule to trigger at. See [Crontab Guru](http://crontab.guru) for format.
> - Timezone is pre-filled based on your location and you can use any of [IANA Timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)

> **Capabilities**
>
> - Schedule Enabled
> - Scheduled date
> - Scheduled time
> - Schedule Next

> **Flow cards: When - Triggers**
>
> - Schedule updated
> - Schedule triggered
> - Scheduled time is in `minutes` minutes.

> **Flow cards: And - Conditions**
>
> - Scheduler is/isn’t enabled.
> - Next run is scheduled in `minutes`.
> - Next run is scheduled for today.
> - Next run is scheduled for tomorrow.
> - Next run is scheduled for this week.
> - Next run is scheduled for next week.

> **Flow cards: Then - Actions**
>
> - Enable scheduler
> - Set cron time to `crontime`

## Device: Scheduler

> **Adding a new device**
>
> Add a new Scheduler Device from the Action Scheduler app just like any other device. A new schedule configuration is prompted where you will input:
> 
> - A name for the Schedule
> - The time for the schedule to trigger in HH:mm format
> - Timezone is pre-filled based on your location and you can use any of [IANA Timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
> - Weekdays to repeat, if empty the scheduler is not enabled.
> 
> ### Time formats supported
> 
> - HH can be 0-23 or \* for every hour or \*/n for every nth hour
> - mm can be 0-59 or \* for every minute or \*/n for every nth minute
> 
> > `12:30` - exact time  
> > `*:30` - every hour’s 30th minute  
> > `5:*/5` - on the 5th hour every 5 minutes  
> > `*:*/15` - every 15 minutes
> 
> Ranges area also supported
> 
> > `12-15:30` - executed on 12:30, 13:30, 14:30 and 15:30  
> > `*:30-45` - every hour, for every minute within 30-45

> **Capabilities**
>
> - Schedule Enabled
> - Scheduled date
> - Scheduled time
> - Schedule Next

> **Flow cards: When - Triggers**
>
> - Schedule updated
> - Schedule triggered
> - Scheduled time is in `minutes` minutes.

> **Flow cards: And - Conditions**
>
> - Scheduler is/isn’t enabled.
> - Next run is scheduled in `minutes`.
> - Next run is scheduled for today.
> - Next run is scheduled for tomorrow.
> - Next run is scheduled for this week.
> - Next run is scheduled for next week.

> **Flow cards: Then - Actions**
>
> - Enable scheduler
> - Scheduler time
> - Sets scheduled time as HH:mm.
> 
> - Schedule ahead of time
> - Schedule given minutes before HH:mm time. If any weekday is selected, the alarm will be repeated on those weekdays. If no weekday is selected, the alarm will run once. Adjusts to previous day, if schedule will be before midnight.

> # Use cases

- Heat the outdoor spa by 18:00 and save energy by heating just enough to reach the desired temperature.
- Starting the car preheating based on your iCal calendar for the next morning departure time.

> # Useful links

- [Example flows with Scheduler Device](https://community.homey.app/t/75592/3)
- [FAQ - Frequently asked questions](https://community.homey.app/t/75592/3)
- [TODO](https://community.homey.app/t/75592/4)
- [Known issues](https://community.homey.app/t/75592/5)

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 8:50am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/2 "2023-01-26T08:50:49Z")

</div>

# Example flows with Scheduler Device

## When a scheduler is updated

 ![Screenshot 2023-02-05 at 14.10.56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/3/03eaca302f68d2744a36a1a5f47aa8b1172c1268.png)

## Setting a dynamic start time

 ![Screenshot 2023-02-05 at 14.09.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/8547bf71829519d4e9685bcb9e4f276e6c618564.png)  
Variables in the math formula are:

- Temperature = outdoor temperature C from Netatmo
- Spa bathing temperature = 37C
- Water = Current water temperature C.

The formula I have derived from months of heating up the pool from approx 34C to 37C and now gives fairly accurate time in minutes it will take to heat up

## Triggering a flow

 ![Screenshot 2023-02-05 at 14.12.16](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6db6dae20173d15a4aa3ca4124ce9421402b505e.png)

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 8:51am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/3 "2023-01-26T08:51:03Z")

</div>

# FAQ - Frequently Asked Questions

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 8:51am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/4 "2023-01-26T08:51:36Z")

</div>

# TODO - Features Requested

If you would like to request a feature to this app, please open a [feature request at Github](https://github.com/oh2th/fi.oh2th.alarmutils/issues/new?template=feature_request.md).

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 8:51am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/5 "2023-01-26T08:51:45Z")

</div>

# Known Issues

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 26, 2023, 11:47am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/6 "2023-01-26T11:47:43Z")

</div>

Very interesting app.  
How will the physical alarm notify me? What can I expect when the Homey Alarm is triggered?

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 11:55am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/7 "2023-01-26T11:55:03Z")

</div>

You can then use the alarm triggers (When cards) from the Homey Alarms app to start an other flow.

An alarm attached to an flow, prevents Homey from making any sounds.

---

<div class="post-metadata">

**Author:** ![Twan\_Veugelers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/twan_veugelers/32/129333_2.png) [@Twan\_Veugelers](https://community.homey.app/u/Twan_Veugelers)\
**Post date:** [January 26, 2023, 12:17pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/8 "2023-01-26T12:17:18Z")

</div>

oh, so basically, your app triggers these:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/4095c8b2998388fd7bc6e1d74ace783e4035a58b.png)

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [January 26, 2023, 12:34pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/9 "2023-01-26T12:34:37Z")

</div>

Really nice app @OH2TH

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 1:31pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/10 "2023-01-26T13:31:27Z")

</div>

@Twan_Veugelers , in a way yes and no. This app Then-card can change the trigger time of those alarms.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 26, 2023, 3:31pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/11 "2023-01-26T15:31:39Z")

</div>

# New update (Live: [1.1.0](https://homey.app/a/fi.oh2th.alarmutils/test))

> ## Changes in test
> 
> - **FIX** : getAlarms on update
> - **ADD** : New action card - [Set alarm NN minutes ahead of time](https://community.homey.app/t/app-pro-alarm-utilities/75592#setting-a-dynamic-alarm-time-with-weekdays-since-v100-9)

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [January 26, 2023, 7:25pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/12 "2023-01-26T19:25:25Z")

</div>

How can make my phone, computer or tablet alarm me from something I want to be alarmed about?

Can Homey trigger an alarm app on the phone?

Can Homey itself create alarms that has some sound or noise, like a sleeping alarm?

---

<div class="post-metadata">

**Author:** ![M\_a\_r\_c\_o](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/m_a_r_c_o/32/146_2.png) [@M\_a\_r\_c\_o](https://community.homey.app/u/M_a_r_c_o)\
**Post date:** [January 26, 2023, 8:50pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/13 "2023-01-26T20:50:23Z")

</div>

Use the app pushover with a subscription and send the alarms to Pushover. Multiple options for sounds, priorities, etc.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 27, 2023, 7:45am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/14 "2023-01-27T07:45:50Z")

</div>

Going a bit off topic for this app, however:

For Homey device itself, you can setup Alarms (Wekkers) from the Homey app settings. If there are no flows using the alarm, then Homey will make a sound.

Or you can use those same alarm to start a flow with a when card “… goes off” and send a message to your phone with “Push Notifications”, also a Homey builtin app.

And with this Alarm Utilities, you can change the alarm settings in any flow.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [January 29, 2023, 11:01am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/15 "2023-01-29T11:01:23Z")

</div>

Update went live today with the new flow card the set most aspects of an alarm.

Remember, that you need to use the built-in Alarms flow cards to enable/disable the alarm.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 1, 2023, 12:52pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/16 "2023-02-01T12:52:28Z")

</div>

# Alarms with Homey Pro 2023

There has been a development with new Homey Pro 2023 related to alarms

> [@Homey Pro (Early 2023) - (P)Review Alpha Testing](https://community.homey.app/t/homey-pro-early-2023-p-review-alpha-testing/75051/34):
>
> As more developers are receiving their Homey Pro early 2023 more bugs are probably found and reported the coming days, and hopefully also fixed in the next weeks. One difference that I reported but probably not going to be fixed ̶ ̶i̶s̶ ̶t̶h̶e̶ ̶m̶i̶s̶s̶i̶n̶g̶ ̶o̶f̶ ̶H̶o̶m̶e̶y̶ ̶A̶l̶a̶r̶m̶s̶.̶ ̶ ̶W̶h̶e̶r̶e̶ ̶H̶o̶m̶e̶y̶’̶s̶ ̶b̶e̶f̶o̶r̶e̶ ̶2̶0̶2̶3̶ ̶h̶a̶d̶ ̶a̶n̶ ̶A̶l̶a̶r̶m̶ ̶o̶p̶t̶i̶o̶n̶ ̶i̶n̶ ̶t̶h̶e̶ ̶M̶o̶r̶e̶.̶.̶.̶ ̶m̶e̶n̶u̶ ̶a̶n̶d̶ ̶t̶h̶a̶t̶ ̶a̶l̶a̶r̶m̶ ̶s̶o̶u̶n̶d̶e̶d̶ ̶a̶ ̶m̶e̶l̶o̶d̶y̶ ̶i̶f…

It seems that alarms are not in Homey Pro 2023. I have opened a support request to Athom about this, lets see what this really means.

I wouldn’t want to go back to the messy advanced flow with HomeyScripts after I just got them cleanup.

One way forward could be to setup this app also for these scheduled triggers.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 1, 2023, 3:15pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/17 "2023-02-01T15:15:44Z")

</div>

> [@OH2TH](#):
>
> One way forward could be to setup this app also for these scheduled triggers.

And the answer from Athom Support leaves me to start designing a way to handle the schedule tasks without Alarms.

Currently only impacts Homey Pro Early 2023 model, not the previous models.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 4, 2023, 11:39am UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/18 "2023-02-04T11:39:35Z")

</div>

# New update (Live: [1.1.0](https://homey.app/a/fi.oh2th.alarmutils), Test: [1.2.0](https://homey.app/a/fi.oh2th.alarmutils/test))

> ## Changes in test
> 
> - **ADD** : New device - ‘Scheduler’: Adds scheduling for given time and repeat on selected weekdays

Please note that this is now out for testing and not meant for production like use.

Some side effect may exist and any notes on those are greatly appreciated.

When adding a Scheduler device, it asks for a name, time in 24h HH:mm format and the days for repeating. Timezone is detected from your browser and may be changed.  
If all days are unchecked, the scheduled time will trigger only once. This may change in a future version.

Device can be turned on / off to enable / disable the scheduler.

One bonus from using cron-library for this, time string can have certain crontab like wild cards:

- HH = \* – repeat every hour
- HH = 8-12 – repeat on the hours of 8, 9, 10, 11 and 12
- mm = \* – repeat every minute
- mm = \*/5 – repeat every five minutes

Does not support schedule for dates or months (for now).

All parameters can be adjust from the device’s Advanced Settings page.

Next in line for the Scheduler device is recreate the rest of the original flow cards.

> If you are **not comfortable** in **using test versions** of the app, please reinstall the [production version](https://homey.app/a/fi.oh2th.alarmutils).

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [February 4, 2023, 12:15pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/19 "2023-02-04T12:15:48Z")

</div>

Thanks @OH2TH, will test and see if this is a nice workaround.  
Only seems your link to the new testversion is wrong. It lacks /test and now points to the stable release.  
This is the correct link:

> **[Action Scheduler](https://homey.app/nl-nl/app/fi.oh2th.alarmutils/Action-Scheduler/)**
>
> Dynamic flow scheduling

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [February 4, 2023, 1:38pm UTC](https://community.homey.app/t/app-pro-action-scheduler/75592/20 "2023-02-04T13:38:12Z")

</div>

> [@Henk\_Renting](#):
>
> It lacks /test and now points to the stable release.

Oops, fixed it.

[Next page](https://community.homey.app/t/app-pro-action-scheduler/75592.md?page=2)
