OH3 astro sun, civilDusk

Hello everyone,

I would like to use the Astro-Binding to control the roller shutters. The shops should close 10 minutes before the end of civil twilight. Unfortunately, it doesn’t work as expected.

Things:

Thing astro:sun:home "Sonne" @ "zuhause" [geolocation="xx.xxxxxxxxxx,y.yyyyyyyyyyyyy", interval=300] { 
    Channels:
        Type start : nauticDawn#start []
        Type start : nauticDusk#start []
        Type start : civilDawn#start [
            offset=10,
            earliest="07:00",
            latest="09:00"
        ]
        Type end : civilDusk#end [
            offset=-10,
            earliest="16:40",
            latest="22:00"
        ]
        Type rangeEvent : civilDawn#event  [
            offset=15,
            earliest="07:00",
            latest="09:00"
        ]
        Type rangeEvent : civilDusk#event  [
            offset=-10,
            earliest="16:40",
            latest="22:00"
        ]
}

Rule:

rule "Shutters Down"
 when
    Channel 'astro:sun:home:civilDusk#event'	 triggered END
 then
....

Can someone help me and tell me what the problem is.

Thanks in advance.

This may help:

I had trouble with the astro binding until I realized that my system (Ubuntu) timezone was set as UTC, not America/Chicago. Once I updated my system timezone, The Astro binding started working more as I expected it.
My OH log had the timestamps I expected and the Astro binding events fired when I expected. No offsets were needed.

What is expected I think we know.

  • But how does it behave ?
  • Have a look to the events.log file. Is the event triggered ?
  • When is it triggered ?
  • What is the offset ?
  • Create a call to do a log entry in your rule. Is the log entry shown in openhab.log file ?

I’ve solved the problem, so the binding works as expected (the rule stays the same).

Thing astro:sun:home "Sonne" @ "zuhause" [geolocation="xx.xxxxxxxxxx,y.yyyyyyyyyyyyy", interval=300] { 
    Channels:
        Type rangeEvent : civilDusk#event  [
            offset=-10,
            earliest="16:40",
            latest="22:00"
        ]
}