// Sun events for Rollershutter
// schedules an event 15 minutes before sunrise
Switch Sunrise_Rolladen {astro=“planet=sun, type=rise, property=start, offset=-15”}
I did read the Astro binding tuturial but I did not figure out how I would configure both those items using channels and things. Could anyone of you post an example please?
Thanks a lot.
How do you want to define the Thing, via PaperUI or in a .things file. Using PaperUI everything should be self-explanatory.
For the .things file read here
My problem is how do I define two different items - one which “switches” at sunrise and one which switches at a different time. The example given is always just one example “either without offset or with offset” - I want both.
In order to use a channel with and without offset you need to create two things . I.e. two things “Sun”, that way you can use one with offset and the other without.
rule "example trigger rule no offset"
when
Channel 'astro:sun:home_original:rise#event' triggered START
then
...
end
rule "example trigger rule with offset"
when
Channel 'astro:sun:home_offset:rise#event' triggered START
then
...
end