Astro binding fires events at 00:00:30

Hi,

I still have the problem, that the Astro binding fires all events shortly past midnight. I have configured the items via PaperUI as well as via file:
DateTime Daylight_End “Tageslicht Ende [%1$tH:%1$tM]” { channel=“astro:sun:home:daylight#end” }

I’ve removed the binding, re-installed it, but to no avail.
Openhab 2.4.0 running on raspian.

Is there any alternative to the astro binding? At least I need something to set an string item, e.g. “Daymode” to 1 or 0, or “day” and “night”.

Has anyone an idea, what to check or to do?

Kind regards,
Michael

This is by design. So that the binding doesn’t conflict with other tasks perform on or shortly after midnight.

What are you trying to achieve?
Did you have a look at this DP: [Deprecated] Design Pattern: Time Of Day

Thanks for that info, I didn’t knew it before. That is exactly the idea, what I want to have.
But, what does it help when all sunrise and sunset events are triggered at 00:00:30?>

rule “Astro_SunHomeRise_Event_Start”
when
Channel ‘astro:sun:home:rise#event’ triggered START

They are not triggered at 00:30.
There are calculated and scheduled at that time. Nothing else nothing more.

Okay, how can I define a rule which is triggered at Sunrise and Sunset? Perhaps I just do it the wrong way.
Obviously, the rule definition I pasted above is not working.

See link above

Bear in mind that is not an event.
It is an Item with a steady state, a prediction.
So at 00:00:30, Astro sets up the Item for the day ahead.

Are you triggering rules from these changes?
You should look into the Astro events proper, which go off at e.g. daybreak

I now pasted the examples from the link above to my config, I will see what will happen…
My own rule is:

rule “Astro_SunHomeDaylight_Event_Start”
when
Channel ‘astro:sun:home:daylight#event’ triggered START
then
logInfo(“Astro_Daylight”, “astro:sun:home:daylight#event → START”)
end

and the log entry appears each night at 00:00:3x
The same with “rise” and “set”. I do not know, what I am doing wrong.

May we see your events.log for 00:00:3x ?

May we see the value of Items like Daylight_End? (probably in midnight events log already)

May we see your Astro location, in case it thinks you are at the pole?

For others reference, previous thread -

1 Like

Yes, sure:

openhab.log:2019-10-01 00:00:30.409 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-01 00:00:30.429 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-01 00:00:30.450 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->end
openhab.log:2019-10-01 00:00:30.496 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:set#event->end
openhab.log:2019-10-02 00:00:30.426 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-02 00:00:30.440 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-02 00:00:30.466 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->end
openhab.log:2019-10-02 00:00:30.514 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:set#event->end
openhab.log:2019-10-03 00:00:30.410 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-03 00:00:30.410 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-03 00:00:30.485 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->end
openhab.log:2019-10-03 00:00:30.488 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:set#event->end
openhab.log:2019-10-04 00:00:30.300 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-04 00:00:30.312 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->start
openhab.log:2019-10-04 00:00:30.335 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:rise#event->end
openhab.log:2019-10-04 00:00:30.377 [INFO ] [eclipse.smarthome.model.script.Astro] - astro:sun:home:set#event->end

The thing:

astro:sun:home [ geolocation=“51.43632,7.38792”, interval=600 ]

In the PaperUI I see times which seems to be somehow correct for sunrise and sunset.

Sunrise
Day 07:24
Sunset
Evening 17:02

Thank you for your interest in helping!

It may be a copy-paste artifact, but your Thing file excerpt has the “wrong kind of quotemarks” around location.

astro:sun:home [ geolocation=“51.43632,7.38792”, interval=600 ]

astro:sun:home [ geolocation="51.43632,7.38792", interval=600 ]
1 Like