MrPatHome
(Mr P at Home)
February 7, 2017, 7:16pm
1
Can´t bring the astro rules to work,
copied the whole example from Openhab 2 Doc but it doesn´t work
Items:
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:
rule "Außenbeleuchtung an (Sonne)"
when
Channel ‘astro:sun:home:set#event’ triggered START
then
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)
end
Things
astro:sun:home [ geolocation=“52.9455570,9.2504745”, interval=60 ]
astro:moon:home [ geolocation=“52.9455570,9.2504745”, interval=60 ]
what could be wrong???
ptmuldoon
(Paul Muldoon)
February 7, 2017, 7:25pm
2
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
MrPatHome
(Mr P at Home)
February 10, 2017, 8:51pm
4
@ptmuldoon :
tried both without sucess. In PaperUI the item is astro:sun:home
@m0wlheld :
The Loginfo can´t be the Problem because it works properly on cron triggered rules. (But ui´ll try)
sihui
(SiHui)
February 11, 2017, 8:53am
5
MrPatHome:
what could be wrong???
Wrong binding version?
You will need Astro2, not Astro1.
1 Like
MrPatHome
(Mr P at Home)
February 11, 2017, 9:38am
6
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.
sihui
(SiHui)
February 11, 2017, 9:57am
7
That’s odd. You have the same setup as I have and mine is working
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:
Try
rule "Außenbeleuchtung an Sonne"
instead of
rule "Außenbeleuchtung an (Sonne)"
1 Like
MrPatHome
(Mr P at Home)
February 19, 2017, 6:44pm
8
Have uninstalled openhab and did a clean install
Now ist works!!!
Thanks for the Help. Seems it was a installation Problem.
1 Like