Tradfri binding loses connection after Power failure / gateway reboot

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:

When will the latest fixes arrive in a milestone build? I am on snaptshot now which is a bit unreliable for several bindings…
Thanks

@chriscolden: Dear Chris, maybe you can give a comment when this should be fixed in milestone builds?

I dont develop for openhab so I cannot say. I’m using snapshot builds and haven’t had the issue for a while which is odd because to my knowledge nothing has changed in the code.

After upgrade to OH 2.4 stable, same issue like before - the security code for the Ikea Tradfri bridge is empty after a reboot and can’t connect from OH. From my point of view it makes no sense to have a stable smarthome and after a reboot - for example lost power - credentials or codes must be entered manually. I hope someone have a idea how to solve this. Is it possible to create a script what saved the code after a reboot automatically ?

Same issue here. After reboot connection to Gateway lost.

I only lose connection, no settings.
It’s been like this for more than a year on Snapshots.
On my remote site I had to install a Z-Wave wall plug in order to be sure to get it online after a power outage.
More recently I have had good success reconnecting restarting the binding from Karaf.

Both my problem sites are running OH2 Snapshots on x64 Ubuntu Server 16.04 LTS.

Even in OH 2.4, latest milestone (is currently release), the binding loses connection to the gateway after a OH reboot. Maybe the ESH updates to the binding need to be included in OH?

1 Like

@Tobi77, what kind of system do you run OH2 on?
Maybe this is only a problem on certain platforms?
Will try to enable DEBUG/TRACE level debug for binding.
Only about 2 in 10 restarts goes without a hiccup.

Raspberry Pi 3B Plus, milestone…

I had the impression that snapshot builds are more stable regarding the Tradfri binding, but much more unstable for others…