Hi,
I am new. I’ve read but not sure if I am searching for the right terms.
I’ve build a hardware control via arduino which opens and closes my rollershutter. In the demo house, I was able to control it via http binding. So I can click on up, stop and down which will drive the rollershutter.
The next step is to have a scheduler which will open them in the morning and close them in the evening. But I am not sure if I need a rule or how this is handled.
At a later state, I want to build a weather station which is getting temp etc. and then react also based on the environment but this is way ahead. For now, the most simple schedule is what I want to achive.
You can use the CalDAV-Binding and setup Timers in Calendar. This would initiate Commands for the specified Items.
Another Calender Binding would be for Google Calendar, unfortunately not easy to setup due to authentification method, which has changed.
ITTT would be another option, just to mention
usually you could use a simple rule with Time cron trigger:
rule "open rollershutters"
when
Time cron "0 30 06 * * MON-FRI" <- 06:30:00 Monday to Friday
or
Time cron "0 30 08 * * SAT,SUN" <- 08:30:00 Saturday & Sunday
then
MyRollershutterItems.sendCommand(UP)
end
To tell the truth, there is an issue that can arise in this context: if you use more than one Time cron trigger per rule, that 2nd trigger will maybe not fire the rule, but you can prevent this issue with one rule per trigger.
Since you will need rules later on (you could also trigger for sunrise or sunset with the astro binding, the easiest way with rules) I would recommend this solution, especially for rollershutters since these timers won’t be changed all the time.