I set my alarm clock each evening for the next morning via Alexa.
I have my heating based on fixed cron times in my rules. They will heat the rooms so they are warm at the time I normally wake-up and stop the heating I normally leave home.
Set a wake-up time for the next day (preferable via Alexa).
Have the heaters turn on a fixed time before the set wakeup time.
Play music, switch on light, whatever at the set wakeup time.
At first, I ignore the alexa part and try to get the timer. So what is the rule fragment to have a timer at 6 o’clock in the morning executing?
import org.joda.time.*; var Timer wakeupTimer = null rule "wakeup" when Item wakeup_time changed then wakeupTimer ?.cancel wakeupTimer = createTimer(???) [ // Play wakeup music ] end