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 for format.
Timezone is pre-filled based on your location and you can use any of IANA Timezones
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
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.
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
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.
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.
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: