The events you are looking for are not available with openHAB2 anymore, as a better solution is underway but not available yet. Here’s yet another workaround:
There were some changes with openHAB2 and the sunrise / sunset events have been left out for yet another feature which is sadly not finished yet.
That said, here’s a workaround you may use for now:
things/astro.thing
astro:sun:home [ geolocation="50.12345,10.12345", interval=300]
astro:moon:home [ geolocation="50.12345,10.12345", interval=300]
items/astro.items
DateTime SunsetTime "Sunset [%1$tH:%1$tM]" <sun> (Astro) { channel="astro:sun:home:set#start" }
DateTime SunriseTime "Sunrise [%1$…