rule "Aufstehen"
when
Time cron "0 0 8 ? * * *" // 8 Uhr
then
//Aufstehen
SceneSelect.sendCommand(3)
end
rule "Szenenauswahl"
when
Item SceneSelect received command
then
if (receivedCommand==3){
//8Uhr
Buero_Rolladen_Vorne_Links.sendCommand(UP)
Buero_Rolladen_Vorne_Rechts.sendCommand(UP)
Wc_Rolladen.sendCommand(UP)
Heizungsraum_Rolladen.sendCommand(UP)
}
end
i want to have the time (8.00) adjustable from the UI any idea?
If you are using a sitemap you have to break the time up into hours and minutes (and seconds) and manage each individually with separate setpoints. Use changes to those Items to consolidate them into a DateTime Item in a rule.
In MainUI, just use a standard oh-input-card with “type” property set to “datetime-local” and you will get a nice date time picker. Or install and use DateTime Standalone Widget. If all you want is the time, I think you’d just use “time-local” or “time” as the “type”. Make this widget update a DateTime Item.
Finally, use the Time is <item> rule trigger for the “Szenenausewahl” rule where <item> becomes the DateTime Item (you don’t need the Aufstehen rule at all).