Over the past several weeks now OpenHAB has been constantly losing connections to all of my network devices, including a Philips Hue Bridge, TPLink wifi outlets, Homematic HMIP Wired devices, unifi network controller, and the OpenHAB Cloud Service.
I have installed the Network Binding and monitored some of these devices. I have not seen a disconnect error reported by this binding.
The worst offender is the Hue Bridge. I set the log for this binding to debug, and below is a snippet of the logs just before OpenHAB reports the connection was lost:
2022-04-25 08:33:29.792 [DEBUG] [ue.internal.handler.HueBridgeHandler] - Connection to Hue Bridge 192.168.7.9 lost: connect timed out
at org.openhab.binding.hue.internal.HttpClient.doNetwork(HttpClient.java:131) ~[bundleFile:?]
at org.openhab.binding.hue.internal.HttpClient.doNetwork(HttpClient.java:113) ~[bundleFile:?]
at org.openhab.binding.hue.internal.HttpClient.get(HttpClient.java:78) ~[bundleFile:?]
at org.openhab.binding.hue.internal.HueBridge.getSensors(HueBridge.java:245) ~[bundleFile:?]
at org.openhab.binding.hue.internal.handler.HueBridgeHandler$1.doConnectedRun(HueBridgeHandler.java:191) ~[bundleFile:?]
at org.openhab.binding.hue.internal.handler.HueBridgeHandler$PollingRunnable.run(HueBridgeHandler.java:130) [bundleFile:?]
2022-04-25 08:33:29.793 [DEBUG] [ue.internal.handler.HueBridgeHandler] - Bridge connection lost. Updating thing status to OFFLINE.
2022-04-25 08:33:29.794 [DEBUG] [hue.internal.handler.HueGroupHandler] - bridgeStatusChanged OFFLINE: @text/offline.bridge-connection-lost
2022-04-25 08:33:29.794 [DEBUG] [hue.internal.handler.HueLightHandler] - bridgeStatusChanged OFFLINE: @text/offline.bridge-connection-lost
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - bridgeStatusChanged OFFLINE: @text/offline.bridge-connection-lost
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - bridgeStatusChanged OFFLINE: @text/offline.bridge-connection-lost
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueGroupHandler] - initializeThing thing hue:group:ecb5fa833088:11 bridge status OFFLINE
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - initializeThing thing hue:0210:ecb5fa833088:22 bridge status OFFLINE
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - initializeThing thing hue:0210:ecb5fa833088:17 bridge status OFFLINE
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - bridgeStatusChanged OFFLINE: @text/offline.bridge-connection-lost
2022-04-25 08:33:29.795 [DEBUG] [hue.internal.handler.HueLightHandler] - initializeThing thing hue:0210:ecb5fa833088:15 bridge status OFFLINE
2022-04-25 08:33:30.796 [DEBUG] [ue.internal.handler.HueBridgeHandler] - Connection to Hue Bridge 192.168.7.9 established.
2022-04-25 08:33:30.796 [DEBUG] [ue.internal.handler.HueBridgeHandler] - Bridge connection resumed.
2022-04-25 08:33:30.826 [DEBUG] [hue.internal.handler.HueGroupHandler] - bridgeStatusChanged ONLINE
I have updated Ubuntu, java, and all other software to the latest version last week. I can set other bindings to debug and post the output of other network-connected devices/bindings as well.
- Platform information:
- Hardware: Gigabyte Brix MiniPC model GB-BXI7-5775R/MBHM87P-00 BIOS F2. 8GB RAM, 228GB HDD.
- OS: Ubuntu 20.04 LTS
- Java Runtime Environment: openjdk version “11.0.8” 2020-07-14 LTS
OpenJDK Runtime Environment Zulu11.41+23-CA (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.41+23-CA (build 11.0.8+10-LTS, mixed mode) - openHAB version: 3.2 Stable
- Issue of the topic: OpenHAB frequently loses connections to network devices. Items such as Hue Bridge, various wifi smart outlets, Homematic HMIP Wired devices.
- Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
- If logs where generated please post these here using code fences: