- Platform information:
- Hardware: _ 32 bits 2MB RAM
- OS: _Linux xubuntu 18
- openHAB version: 2.5
- Issue of the topic: the idea is: I have a cron rule like:
rule “Monday at HH switch on TV”
when
Time cron “0 0 20 ? * MON *”
then
enchufe1_onoff_.sendCommand(ON)
logWarn(“mylog”,“TV switched ON”)
end
I wish to let the user configure the hour ( a number between 0 and 23 in the sitemap) changing the “20” by a variable “mon-tvswitchon”. But unfortunately I have no idea how to create the variable in rules, neither how to configure the needed input in sitemap…
The final idea is to have a user panel in which the user will be able to chose from Monday to Sunday:
a switch on hour + minute
a switch off hour + minute
I would create 14 rules (1 for each weekday switch on, and 1 for each weekday switch off)
Any idea will me very appreciate.