Tradfri toggles between ONLINE and OFFLINE every 3 minutes

Hello

As of today (at least I realised it today) Tradfri is going from ONLINE to UNKNOWN, then from UNKNOWN to OFFLINE and then from OFFLINE (COMMUNICATION ERROR) back to ONLINE every 3 minutes.
I‘m running OH 2.5.7-1.

Is anyone experiencing the same problem?
Any Ideas how to solve this?

Thx Jan

I have configured Tradfri via Thing and Item File.

Filtered only for the Gateway it looks like this:

2020-08-07 07:24:57.489 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:24:57.498 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:24:57.661 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:28:08.864 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:28:08.876 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:28:09.025 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:30:24.287 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:30:24.330 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:30:24.458 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:32:33.409 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:32:33.421 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:32:33.573 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:35:05.733 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:35:05.776 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:35:05.909 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:38:25.192 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:38:25.201 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:38:25.352 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:40:36.355 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:40:36.364 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:40:36.537 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:42:39.043 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:42:39.066 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:42:39.219 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:44:52.037 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:44:52.063 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:44:52.206 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:48:02.759 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:48:02.773 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:48:02.943 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:50:36.264 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:50:36.276 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:50:36.451 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:52:41.050 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:52:41.083 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:52:41.215 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:44:52.206 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:48:02.759 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:48:02.773 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:48:02.943 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:50:36.264 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:50:36.276 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:50:36.451 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:52:41.050 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:52:41.083 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:52:41.215 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

2020-08-07 07:54:59.029 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from ONLINE to UNKNOWN

2020-08-07 07:54:59.047 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-08-07 07:54:59.184 [hingStatusInfoChangedEvent] - ‘tradfri:gateway:gw*************’ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

Made a new openhab hassle-free setup on raspbi and moved my things, items and rules files etc. back to new installation.

Unfortunately same behavior. Cycling as mentioned above every three minutes…

jan

Have you tried touching the thing and item files? Also set the log to DEBUG or TRACE, via the console, and see if you get any additional info.

Hej H102

Thanks for your reply.

I managed to set logging level to debug.

There I found the following:

2020-08-07 17:38:39.622 [DEBUG] [.tradfri.internal.TradfriCoapHandler] - CoAP onError

2020-08-07 17:38:39.625 [DEBUG] [ternal.handler.TradfriGatewayHandler] - Gateway communication error. Forcing a re-initialization!

It seems there is an error somewhere but I have no clue what this means…

Jan

Check github for similar issues https://github.com/openhab/openhab-addons/issues/7152 and here https://github.com/openhab/openhab-addons/issues/5489.

Seem a few have good results by restarting the binding (not OH, just the binding) via the console.

Thanks for your help.
I’m through with all this tricks since I had these problems last year. It worked one year, now the issues are back - but not in the same flavor.

Now its a Cycling between those status every three minutes, the devices are hardly controllable although openhab things status shows most of the time “online”.

Therefore I came to the point, that I’m gonna replace tradfri hub with hue hub which seems to have less problems.

again, thanks for your help

Jan

While I have not seen the specific error you observe in my system, still a question: is your tradfri hub updated.
My tradfri hub starts to misbehave (becomes unreactive, goes offline and does not come back online, etc) if there is an update pending (hub and/or bulbs). Once I execute/confirm all pending updates via the app, the problems go away. (of course, if that is not the case, power-cycling the tradfri hub works wonders at times too).
I also have a hue hub, and, yes, the hue system just runs rock solid…

Hej Markus

No update is pending, version 1.10.43. I have repowered it, I forced a new initialization via disconnecting and reconnecting ethernet etc. for this problem nothing works.

I even made a fresh setup of openhab to avoid problems through experimenting in the previous month…

Nothing seems to help.

Thank you

Jan