for a long time I’ve been trying to get elerotransmitterstick binding to work with the astro binding.
I want to shut down my roll shutters at sunset. But the events of the astro binding are not triggered at the correct time. All events are triggered at around 00:00:30, right after midnight.
If I remove the elero things the events are triggered at the correct time.
I tried a lot of things to solve this but I think that theremight be an incompatibility between the astro binding and the elerotransmitterstick binding.
Due to a failure of the boot partition of my SD card, I completely reinstalled Openhab.
I use a Rasperry Pi OS, installed openjdk-11-jdk and finally openhab3 (3.1.0).
I installed astro-binding and the elerotransmitterstick binding. Configured both, created astro:sun:local as a thing and created a rule using the built-in editor on the openhab configuration page.
No point working on rules until that is sorted.
Is Astro binding installed? What start-up messages does it give you in your openhab.log? Does your xxx.things file load? What does that contain?
2021-12-05 18:01:44.915 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from UNINITIALIZED to INITIALIZING
2021-12-05 18:01:44.962 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from INITIALIZING to ONLINE
2021-12-06 00:00:31.138 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:morningNight#event triggered START
and the complete openhab.log is(I censored the location at one digit):
2021-12-05 18:00:34.769 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
2021-12-05 18:00:34.879 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '4x.23096221515749,9.877223968505861'.
2021-12-05 18:00:34.884 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de_DE'.
2021-12-05 18:01:05.113 [WARN ] [org.openhab.core.net.NetUtil ] - Found multiple local interfaces - ignoring 192.168.178.24
2021-12-05 18:01:29.455 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2021-12-05 18:01:40.363 [INFO ] [org.openhab.ui.internal.UIService ] - Started UI on port 8080
2021-12-05 18:01:41.463 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.
2021-12-05 18:01:43.692 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
2021-12-05 18:28:57.235 [WARN ] [tick.internal.stick.SerialConnection] - response does not match command channels. Skipping response.
2021-12-05 23:01:03.411 [WARN ] [.io.rest.auth.internal.TokenResource] - Couldn't find a user with a session matching the provided refresh_token
2021-12-05 23:01:03.416 [WARN ] [.io.rest.auth.internal.TokenResource] - Token issuing failed: invalid_grant
2021-12-05 23:01:38.055 [WARN ] [.io.rest.auth.internal.TokenResource] - Not refreshing token for session 2145d409-1def-489d-a1d2-3df3ebe2c31b of user Fire, missing or invalid se>
2021-12-05 23:01:38.059 [WARN ] [.io.rest.auth.internal.TokenResource] - Token issuing failed: invalid_grant
From my experience the astro binding will work perfectly fine, as soon as I removed the elerotransmitterstick binding. I will do that now and post the logs tomorrow again.
I collected the thred information after enabling the elerotransmitterstick again, file is too large to show directly. No BLOCKED threads. Enabling Elerotransmitterstick seems to add some threads in TIMED_WAITING.
It certainly appears that something “unsticks” in the scheduled events processing, and all the overdue Astro events arrive at once.
And as that happens within milliseconds of disabling Elero Things, the connection seems real.
That would be ordinary enough, for scheduled polling activity.