Astro Sunset Fails to Trigger

My sunset event fails to trigger after a week or so of running fine. I don’t know if there is a regular time between failures but it doesn’t seem to come back until I restart openhab. Everything else I am using seems to continue to work just fine.

This is what happens when my sunset event works:

2017-11-28 16:33:00.014 [ChannelTriggeredEvent     ] - astro:sun:ba7049f6:daylight#event triggered END
2017-11-28 16:33:00.048 [ItemStateChangedEvent     ] - astro_sun_ba7049f6_phase_name changed from NOON to SUN_SET
2017-11-28 16:33:00.050 [ChannelTriggeredEvent     ] - astro:sun:ba7049f6:set#event triggered START

For today I see that the sunset time was changed:

2017-11-30 00:00:00.263 [ItemStateChangedEvent     ] - Sunset_Time changed from 2017-11-29T16:32:00.000-0500 to 2017-11-30T16:32:00.000-0500

But when the event was supposed to be triggered there is nothing in the logs

Here is my rule:

rule "Sunset"
	Channel 'astro:sun:ba7049f6:set#event' triggered START

Any thoughts? I have updated the system after previous failures but it didn’t seem to have any impact.

Thanks in advance!

That is a known issue for the 2.1 stable. Upgrade to the snapshot and you should be fine.

I agree with sihui but will mention that you can upgrade just the Astro binding to the 2.2 snapshot if you are not ready to upgrade everything. This is not guaranteed to always work for all addons as changes to the core can make the later snapshot versions incompatible with older core versions.

Note that upgrading everything will be easier.

  1. uninstall the Astro binding.

  2. Download the latest snapshot from here

  3. Extract the Astro binding jar file from the kar file. Any zip program should be able to handle this.

  4. Place the jar file in the /usr/share/openhab2/addons folder.

  5. Check the Karaf console to verify the jar file was picked up and enabled. If not start the bundle

NOTE: I’ve never done this myself, I’m only going off of the docs.