Wow this is great! OH2 is growing fast!
After your advice i tested a sunrise/sunset configuration, like this:
astro.items:
DateTime Sunrise_Time “Sunrise [%1$tl:%1$tM %1$tp]” {astro=“planet=sun, type=rise, property=start”}
DateTime Sunset_Time “Sunset [%1$tl:%1$tM %1$tp]” {astro=“planet=sun, type=set, property=end”}
Switch Sunrise_Event {astro=“planet=sun, type=rise, property=start, offset=0”}
Switch Sunset_Event {astro=“planet=sun, type=set, property=end, offset=0”}
astro.rules:
rule “Example Rule at sunrise”
when
Item Sunrise_Event received update ON
then
sendCommand(Switch_Landscape, OFF)
end
rule “Example Rule at sundown”
when
Item Sunset_Event received update ON
then
sendCommand(Switch_Landscape, ON)
end
no idea why, rule is not fired ans unsrise/sunset.
But if i manually trigger switches, works.