currently i control my rollershutters with a rademacher homepilot. There ist is very easy to define rules like “On Sunset+10 Minutes, Earliest 18:°° latest 22:°°”
I concentrate all logic currenty in OH. This allows me to do things like “but not if the door is open”.
I know about astro binding and cron rules. But how can i smartly combine them?
I could try to check every 5 min for reached condition. Uuugly.
I could write a rule at sunset, doing nothing before 6. A rule at 6, acting if sunset is over and a rule at 8, acting if sunset was not yet. Less ugly, but not blessed with inherent beauty.
@gerrieg the longer i think the more i would wonder: Wouldnt the simplest way for such requirement to have upper/lower boundariess in the definition of Astro Binding?
Something like additional fields in the range event? Should be well enough hidden but still easy to use, While the logic will most likely be rather simpel there…
Thinking about the implementation i’m not sure about the exact behaviour.
Example for sunrise:
earliest: 18:00
latest: 20:00
If the sunrise is before 18:00, should the event not take place or be moved to 18:00?
The same with latest, if sunrise is after 20:00, move to 20:00 or no event?
Guys, can you help me out here please: Where do I need to add these earlest/latest statements please?
The Channels / Things are visible in the PaperUI, but as I understood, these parameters need to be added to the channel? How? Or are they to be used within a rule, like
´´´´
rule "Rollershutters DOWN at civil dusk"
when
Channel ‘astro:sun:local:civilDusk#event’ triggered END latest 21:00
then
RL_Haus_Alles.sendCommand (DOWN)
end
´´´
?
Hm, I can set the offset but not the earliest/latest paramater.
Clicking on the pencil icon for the respective event, there is only a field for the Offset
Michael, I’m scratching my head about the syntax of the new features in that PR.
Did you get to make it working and do you have any examples?
I’m interested in the datetime offset and the earliest/latest feature …