In the morning I like a relaxing wake up. The music starts playing and gradually increase in volume as does the lighting. This is how ny rule to do this looks like:
rule "Wekker Aan"
when
Time cron "0 0 7 ? * MON-FRI"
then
SonosPlay1SlaapkamerIvo_Volume.sendCommand (10)
SonosPlay1SlaapkamerIvo_MediaControl.sendCommand (PLAY)
HueAmbianceCeiling1_Brightness.sendCommand (5)
HueAmbianceCeiling1_ColorTemperature.sendCommand (100)
end
rule "Licht Aan"
when
Time cron "0 1 7 ? * MON-FRI"
then
SonosPlay1SlaapkamerIvo_Volume.sendCommand (20)
HueAmbianceCeiling1_Brightness.sendCommand (10)
end
rule "Licht Change"
when
Time cron "0 2 7 ? * MON-FRI"
then
SonosPlay1SlaapkamerIvo_Volume.sendCommand (50)
HueAmbianceCeiling1_Brightness.sendCommand (20)
end
rule "Licht Aan, geluid uit"
when
Time cron "0 5 7 ? * MON-FRI"
then
SonosPlay1SlaapkamerIvo_MediaControl.sendCommand (PAUSE)
HueAmbianceCeiling1_Brightness.sendCommand (75)
end
You can make an alarm clock using these codes: https://community.openhab.org/t/alarm-clock/31641
or using the adroid app: https://www.openhab.org/docs/apps/android.html#alarm-clock