Hello,
I need some help here. The Astro binding information is not totally clear for me.
I’m upgrading from openHab 1.8.3 to 2.3.0 and I also want to use the new binding versions.
So I’m trying to get the Astro 2.x binding to work with my rules (translating the rules from 1.x binding to 2.x binding).
I want to trigger some rules with the astro binding and this is not a great success
This is my thing configuration:
Thing astro:sun:home [ geolocation="52.5200066,13.4049540,100", interval=1800 ]
Thing astro:sun:home_plus20 [ geolocation="52.5200066,13.4049540,100", interval=1800 ]{
Channels:
Type start : set#start[offset=20]
}
These are my Items:
DateTime SunRiseTime "Sun Rise: [%1$tH:%1$tM]" {channel="astro:sun:home:rise#start"}
DateTime SunSetTime "Sun Set: [%1$tH:%1$tM]" {channel="astro:sun:home:set#start"}
DateTime SunSetTimePlus20 "Sun Set Plus 20: [%1$tH:%1$tM]" {channel="astro:sun:home_plus20:set#start"}
This are the test rules:
rule "test Astro rule"
when
Channel "astro:sun:home:set#start" triggered START
then
mytestitem.sendCommand(ON)
end
rule "test Astro rule + 20"
when
Channel "astro:sun:home_plus20:set#start" triggered START
then
mytestitem.sendCommand(ON)
end
These rules won’t fire.
The Items shows the correct time in the UI!
In the binding examples there is only an example with an event:
rule "example trigger rule"
when
Channel 'astro:sun:home:rise#event' triggered START
then
...
end
But I want to trigger on the start of the sunset and sunrise, and on the sunset +20 offset.
so I changed the ‘event’ to ‘start’.
When I change the the ‘start’ to ‘event’, also nothing works.
Can someone help me please?