Astro 1.9 Binding Missing?

I migrated from astro1 to astro2 today, looks like everything is working fine.
Note that the most current docs are here (docs.openhab.org is not updated yet):
https://github.com/openhab/openhab2-addons/tree/master/addons/binding/org.openhab.binding.astro

Events do work now, but they are triggered differently:

rule "example trigger rule"
when
    Channel 'astro:sun:home:rise#event' triggered START 
then
    ...
end

Delayed events are not supported, but I made it working using the new expire binding:

items:

Switch Dawn15mDelay_Proxy "Dawn 15m delay" {expire="15m,command=ON"}

rule:

rule "civil Dawn delay"
when
    Channel 'astro:sun:home:civilDawn#event' triggered START  
then
    Dawn15mDelay_Proxy.sendCommand(OFF) //delays dawn event for xx minutes
end

then trigger on Dawn15mDelay_Proxy which state will be ON after -in this case- 15 minutes.
Maybe there is a better way but this one was the easiest for me.

If you are using transformation mapping, the events are coming in now upper case, you need to change in your .map file f.e.
Autumn=Herbst to AUTUMN=Herbst

3 Likes