Astro Offset changing time but not event

I have setup an astro thing with a -60 offset.

astro:sun:ohome [ geolocation=“41.1766240,-80.4452160”, interval=60] {
Type start : rise#start [

It is successfully changing the time to an hour early but the rise#event has not changed. See the log below

2018-11-21 00:00:30.683 [vent.ItemStateChangedEvent] - OHome_Sunrise_Time changed from 2018-11-20T06:17:00.000-0500 to 2018-11-21T06:18:00.000-0500
2018-11-21 00:00:30.691 [vent.ChannelTriggeredEvent] - astro:sun:ohome:morningNight#event triggered START
2018-11-21 05:42:04.264 [vent.ChannelTriggeredEvent] - astro:sun:ohome:morningNight#event triggered END
2018-11-21 05:42:04.299 [vent.ChannelTriggeredEvent] - astro:sun:ohome:astroDawn#event triggered START
2018-11-21 06:15:00.880 [vent.ChannelTriggeredEvent] - astro:sun:ohome:astroDawn#event triggered END
2018-11-21 06:15:00.976 [vent.ChannelTriggeredEvent] - astro:sun:ohome:nauticDawn#event triggered START
2018-11-21 06:48:00.035 [vent.ChannelTriggeredEvent] - astro:sun:ohome:nauticDawn#event triggered END
2018-11-21 06:48:00.049 [vent.ChannelTriggeredEvent] - astro:sun:ohome:civilDawn#event triggered START
2018-11-21 07:18:00.718 [vent.ChannelTriggeredEvent] - astro:sun:ohome:civilDawn#event triggered END
2018-11-21 07:18:00.733 [vent.ChannelTriggeredEvent] - astro:sun:ohome:rise#event triggered START
2018-11-21 07:21:04.390 [vent.ChannelTriggeredEvent] - astro:sun:ohome:rise#event triggered END
2018-11-21 07:21:04.414 [vent.ChannelTriggeredEvent] - astro:sun:ohome:daylight#event triggered START

What am I doing wrong? Do I need to set the offset for the rise#event instead of rise#start?


what type of item is this? Has nothing to do with astro thing.

I created the item based on the definition below to confirm the offset was working correctly.

DateTime OHome_Sunrise_Time “Sunrise [%1$tH:%1$tM]” (gAll_Groupings) { channel=“astro:sun:ohome:rise#start” }

It is not used in the trigger for the rule as you can see below.rule “Time Rule”
Channel ‘astro:sun:ohome:rise#event’ triggered START
logInfo(“Astro”, “Left timer started”)

Have you tried that? It’s the first offset example in the docs.

I use this as Thing:

astro:sun:Weekend [ geolocation="xx,yy", altitude=300, interval=600 ]
		Type rangeEvent : rise#event [
		Type rangeEvent : set#event [

And that trigger

Channel 'astro:sun:Weekend:set#event' triggered START
Channel 'astro:sun:Weekend:rise#event' triggered START 

The time of the astro item is always the correct time without the offset, but the trigger uses the offset. To remind me of the correct time I put a description in my label :wink:

DateTime Sunrise_Time                   "Sonnenaufgang -20 [%1$tH:%1$tM]"   <sunrise>       (gMAPDB)    { channel = "astro:sun:Weekend:rise#start" }
DateTime Sunset_Time                    "Sonnenuntergang +20 [%1$tH:%1$tM]" <sunset>        (gMAPDB)    { channel = "astro:sun:Weekend:set#start" }

Yep, you’ve only applied offsets to events now. Applying offsets to ‘static’ times works as in your first post. It’s not that obvious that ‘data’ channels and trigger events are two different things despite similarity in names.

I looked at the second example and not the first and missed the subtlety of the difference between the event and the time. I have made the change and will see what happens in the morning.