Astro rules not workin

Can´t bring the astro rules to work,

copied the whole example from Openhab 2 Doc but it doesn´t work

DateTime Sunrise_Time “Sunrise [%1$tH:%1$tM]” { channel=“astro:sun:home:rise#start” }
DateTime Sunset_Time “Sunset [%1$tH:%1$tM]” { channel=“astro:sun:home:set#start” }
Number Azimuth “Azimuth [%.1f °]” { channel=“astro:sun:home:position#azimuth” }
Number Elevation “Elevation [%.1f °]” { channel=“astro:sun:home:position#elevation” }
String MoonPhase “Moon Phase [%s]” { channel=“astro:moon:home:phase#name” }

rule "Außenbeleuchtung an (Sonne)"
Channel ‘astro:sun:home:set#event’ triggered START
logInfo(“Außenbeleuchtung nach Sonne”, “an”)
sendCommand(Aussenlicht_hinten_rechts_1_State, ON)
sendCommand(Aussenlicht_hinten_links_1_State, ON)
sendCommand(AussenlichtVorne_1_State, ON)
sendCommand(Kamera_aussen_1_State, ON)

astro:sun:home [ geolocation=“52.9455570,9.2504745”, interval=60 ]
astro:moon:home [ geolocation=“52.9455570,9.2504745”, interval=60 ]

what could be wrong???

Are you sure your channel is home and not local?

Should this:

Channel 'astro:sun:home:set#event'

be this

Channel 'astro:sun:local:set#event'
1 Like

tried both without sucess. In PaperUI the item is astro:sun:home

The Loginfo can´t be the Problem because it works properly on cron triggered rules. (But ui´ll try)

Wrong binding version?
You will need Astro2, not Astro1.

1 Like

Thanks for the Hint.
Astro 2 is installed and working (Astro Data ist correctly diplayed in Paer UI Control Panel).
Think This should be OK.

That’s odd. You have the same setup as I have and mine is working :slight_smile:

Check your openhab.log if you have a line with something similar to:

2017-02-08 16:14:50.661 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:home

The only thing I can imagine is your rule name:

rule "Außenbeleuchtung an Sonne"

instead of
rule "Außenbeleuchtung an (Sonne)"

1 Like

Have uninstalled openhab and did a clean install
Now ist works!!!

Thanks for the Help. Seems it was a installation Problem.

1 Like