[SOLVED] Trouble with offset sunset/sunrise

I use astro binding for outdoor lights. I set offset +20 after sunset -20 min before sunrise. And Item datetime items have right time (with offset)

DateTime Sunrise_Time_local “Sunrise [%1$tH:%1$tM]” { channel=“astro:sun:local:rise#start”, knx=“10.001:3/2/3” }
DateTime Sunset_Time_local “Sunset [%1$tH:%1$tM]” { channel=“astro:sun:local:set#start”, knx=“10.001:3/2/4”}

But trigger

rule “Sunrise rule”

when
Channel ‘astro:sun:local:rise#event’ triggered START
then
logInfo(“Sunrise”, “Sunrise rule trigerred!”)

end

and sunset trigger works without offsets.

What do I wrong?? OH2.1

Did you setup the offset even for the Event?

  • Hint: There are two different channels for each incident, the datetime information and the event. Astro events are not linked to items.

Thanks. add offset for range event. And check tomorrow.

No, that’s only the DateTime channel, you have to setup additionally

astro:sun:local:rise#event

Yes. All is ok. After add offset for Range event, trigger work at time. Thank for help.

Please don’t forget to mark the Solution :wink:

1 Like