A rule template that will schedule the execution of another rule based on the state of a
DateTime Item. This rule makes a good companion to use with the Android App’s Alarm Item but it can be used with any DateTime Item.
The logger is named
|Alarm Time Item||
||X||Item that contains the date and time to run the script.|
|Script to Call||Rule ID||X||The Rule or Script to call at the indicated date and time.|
If you’ve more than one
DateTime Item you can create more than one instance of this rule from the template, one for each Item. They can call the same Script or a different Script as desired.
- The Alarm Time must be in the future or else no alarm will be set and any existing alarm will be cancelled.
- The date as well as the time is used. To set a recurring alarm one must have a separate rule to move the Item’s date forward to the new day.
- If using the Android App and SleepAsAndroid, the alarm time will not be posted until a little before the alarm is set to go off.
- bug fixes
- added a trigger to run the rule at system started so if OH restarts the alarm timer is rescheduled
- initial release