Tradfri binding loses connection after Power failure / gateway reboot

I’m experiencing exactly the same, running 2.4.0-M5. The connection is immediately back after Ole’s instructions.

My understanding is that statement is a non issue. Its also only a warning. I get that one pop up also but everything works.

Sorry, I wasn’t clear enough. It’s not about the statement in the log, it is about OH 2.4.0-M5 not connecting to the gateway leaving the Tradfri equipment uncontrollable by openHAB with control via the Tradfri app being just fine. Restarting the Tradfri bundle in Karaf re-establishes the connection immediately.

Interesting I reboot all the time and have no issue. I am going to reboot my setup today just to see.

Can you stop openhab. Clear your log and reboot, then post the full log. Curious to see if it says tradfri connected.

Also, have either of you posted an issue on git? This is the proper place to file issues for fixing.

No, I’m on SNAPSHOT and sort of learned to live with it, but it has been like this for a while.
(actually at my mothers, I have a Fibaro WallPlug on the Ikea GW to kickstart it when needed. The binding restart does not always work even after 5-10 attempts)

Does the Trådfri binding have any DEBUG level logging I can enable?

I’m running on a x86 system, so my boot process is quicker that on a pi platform. Could that be related perhaps?

It’s the first time I noticed this behaviour shortly after the upgrade to 2.4.0-M5, I reboot all the time as well, this was a first. I’m running OH on a strethed Pi3. Stretched meaning it appears to be running out of memory, a reboot takes over 30 minutes, a lot of items, a lot of rules…maybe it is part of the problem. I Googled the said Trafdri problem and this thread showed up, I understand it is a bit of an ongoing anomaly. Willing to help but need some guidance on how to produce the requested logs.

Thanks! Yes I had some issues today with tradfri that I did not have on 2.3. I migrated to the m5 build when my sd card died. So I concur there seems to be some issues with m5 that are unexplainable.

Those with issues, can you have a look at this issue. There is a test binding in there towards the bottom.

The issue I was having went away when I made changes to my network. Nothing which should have fixed it though, but im unable to test at the moment until I get the issue again and we need to see if this fixes the issue.

Hi all,

as i am faced with a similar or even equal issue, i was wondering if someone of you could solve this issue?
I went through all the discussion going on either here or github.

It is stated that a new snapshot-release could help, see here:
Snapshot release

Has someone tested this?

hey! did you try this new release and it is helpful?

openhab> list | grep -i fri
217  Active     80  0.10.0.201811100937     Eclipse SmartHome TRÅDFRI Binding

Just power cycled my box, and Trådfri binding came online.
Still a bit early to conclude.

is there a possibility to update this binding via paperui to this version?
besides that, i know the way to copy this file to the the addon folder manually.

but do i have then to delete the tradfri things and re-add them?

you dont need to delete the things. you will need to uninstall the binding from paper ui. stop openhab2. copy the jar to addons folder. clean the cache and start openhab again.

Hi,

I experience the problem as well: After rebooting OH, the Tradfri hub is offline. Only entering the credentials again makes it come online until the next reboot.

After an update from stable 2.3 in the last week, I am now on 2.4 M6 (Testing or Milestone), also for the Tradfri binding - I understood this should be fixed in my software, but I still experiencing the issue.

Any hint? Or do I need to delete and reinstall the binding? Or even apply a newer software (the one from the file offered above)?

Thanks.

Hi @Tobi77

Please try the file posted above. See my last post for details on how to install and report back with your findings.

Thanks
Chris

@chriscolden Dear Chris,

thanks. I will do so tonight.

Do I have to perform these steps in advance as well, or is it only copying?

I didn’t do this, but not sure what context that was mentioned in.

Update: I decided to use the snapshot version of OpenHAB: Seems to have no issues with the Tradfri gateway… :slight_smile:

I had to restart the binding in karaf after a snapshot upgrade yesterday, so no change for me.

Also tried a power OFF/ON just now.

Here is the log from first attempt at startup:

2018-11-28 22:48:32.215 [WARN ] [iscovery.TradfriDiscoveryParticipant] - Discovered Tradfri gateway doesn't have an IP address: [ServiceInfoImpl@765501869 name: 'gw-b072bf25aee1._coap._udp.local.' address: '(null):0' status: 'DNS: JmDNS-/192.168.1.7 [/192.168.1.7] state: probing 1 task: null', has NO data
        gw-b072bf25aee1._coap._udp.local.: ]

Here is log entry after

openhab> list | grep -i fri
217  Active     80  0.10.0.201811171951     Eclipse SmartHome TRÅDFRI Binding
openhab> bundle:restart 217

that made the Gateway and all items come Online again:

2018-11-28 22:50:20.074 [WARN ] [iscovery.TradfriDiscoveryParticipant] - Discovered Tradfri gateway doesn't have an IP address: [ServiceInfoImpl@309596738 name: 'gw-b072bf25aee1._coap._udp.local.' address: '(null):5684' status: 'NO DNS state: probing 1 task: null', has NO data, empty]

Same in snapshot #1447:

openhab> list | grep -i fri
217  Active     80  0.10.0.201811281422     Eclipse SmartHome TRÅDFRI Binding
openhab> bundle:restart 217

As the snaptshot builds ahave issues with the Z-Wave binding, I had to switch back to milestone builds… :frowning: