Harmony Hub Binding Disconnecting and Reconnecting Every 60 seconds

Hi, been running openhab for about 4 months now. I’m having issues with the Harmony Hub Binding. Every 60 seconds in the event log it disconnects and then re connects. I will paste the log file below. I’m not sure what to do. I’ve tried all very basic things but any help would be great!

2020-03-26 10:44:56.798 [hingStatusInfoChangedEvent] - ‘harmonyhub:hub:HarmonyHub’ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected

2020-03-26 10:44:56.798 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:66482222’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.798 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084417’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.798 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084416’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67169643’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67176629’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67690534’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67168687’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084418’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67340885’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:44:56.799 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67169425’ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-03-26 10:45:56.893 [hingStatusInfoChangedEvent] - ‘harmonyhub:hub:HarmonyHub’ changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE

2020-03-26 10:45:56.893 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:66482222’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.893 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084417’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.893 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67169643’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.894 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67340885’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.894 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084418’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:50084416’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67168687’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67176629’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67169425’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [hingStatusInfoChangedEvent] - ‘harmonyhub:device:HarmonyHub:67690534’ changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:66482222’ has been updated.

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:50084417’ has been updated.

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:50084418’ has been updated.

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67176629’ has been updated.

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67169643’ has been updated.

2020-03-26 10:45:56.895 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:50084416’ has been updated.

2020-03-26 10:45:56.896 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67690534’ has been updated.

2020-03-26 10:45:56.896 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67340885’ has been updated.

2020-03-26 10:45:56.896 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67169425’ has been updated.

2020-03-26 10:45:56.896 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:device:HarmonyHub:67168687’ has been updated.

2020-03-26 10:45:56.896 [me.event.ThingUpdatedEvent] - Thing ‘harmonyhub:hub:HarmonyHub’ has been updated.

If you are running openHAB 2.5 or newer and upgraded, you likely have an invalid addon in your config that restarts all addons every 6- seconds trying to load the invalid one. A common culprit is restdocs since its location moved. Check the addons.config (not addons,cfg) file down in the userdata tree.

Nothing there in the folder. I didnt upgrade, its a fresh install.

Is the binding working at all via openhab? Seen other similar posts relating to XMPP not being enabled on the Harmony side so openhab can talk to it. (after the firmware update last year)

The current binding uses websockets, so it’s not necessary to enable XMPP on the harmony side, better disable it if still activated.

Try stopping OH and restarting a few times. Takes me 2-3 restarts for everything to work correctly.

sudo systemctl restart openhab2

Just make sure to watch the logs and restart only after OH has fully restarted.

Same problem here. I have two Harmony Hubs. I recently updated configurations for both with MyHarmony and they both automatically got the latest firmware 4.15.264 installed. Since then they keep disconnecting and reconnecting all the time.

2020-04-08 07:23:32.946 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:24:32.870 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:24:32.919 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:26:12.212 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:26:12.236 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:27:12.214 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:27:12.269 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:28:44.827 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:28:44.881 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:29:44.742 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:29:44.843 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:31:16.544 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:31:16.650 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:32:16.337 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:32:16.415 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:33:43.732 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:33:45.612 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:34:43.678 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:34:43.743 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:36:17.279 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:36:17.329 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:37:17.200 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:37:17.286 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:38:42.751 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:38:42.854 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:39:42.714 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:39:42.798 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:41:15.942 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:41:15.977 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:42:15.867 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:42:16.778 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:43:52.907 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:43:52.970 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:44:52.785 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:44:52.800 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:46:29.672 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:46:29.756 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:47:29.592 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:47:29.679 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:48:57.694 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:48:57.744 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:49:57.660 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:49:58.091 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:51:24.112 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:51:24.156 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected to ONLINE
2020-04-08 07:52:24.094 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Wohnzimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected
2020-04-08 07:52:24.128 [rthome.event.ThingStatusInfoChangedEvent] - 'harmonyhub:hub:Esszimmer' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not connect: Disconnected

Your firmware may be the issue, I didn’t read all the post but it provides a workaround.

See this issue on Github:

I just downgraded one hub to firmware 4.15.193, but it still disconnects/reconnects every minute.

Try removing the device, stop OH, clean the cache and rediscover it.

I tried something different as I remembered that I added some new things for the network binding to detect online status for some devices in my network. As soon as I uninstalled the network binding, the disconnects/reconnects for the harmony hubs immediately stopped. I am going to reinstall the network binding again and will try if this is caused by having too many network things defined or by certain things. I will report later.
This behaviour certainly has something to do with the network binding.

You may need to change the refresh interval for certain devices that are using the network binding. Take a look at your network and see if it’s getting flooded and what devices are the cause.

Standard refresh interval is 1 minute. I changed all devices to 5 minutes and have no disconnects for 20 minutes now. I have about 50+ network things defined. Pinging each of them every minute seems to cause to much network traffic.

That’s a lot of devices on network. :upside_down_face:

You may want to stagger the refresh interval so all devices are not being updated at the same time.

No more disconnects after 4 hours. I think it is safe to say that it fixed the problem.
Yes, there are really lots of devices in the network: 1 Router, 1 NAS, 1 Plex Media Server, openHAB, Homegear, 1 CCU3, 1 Brematic Gateway, 2 Milight Bridges, 2 Raspberrys, 1 Printer, 5 PCs, 2 Laptops, 1 Manageable Switch, 1 Access Point, 8 Mobile Phones, 4 Tablet PCs, 1 Smart Watch, 7 Amazon Echos, 3 Set-Top Boxes, 2 Smart TVs, 1 Fire TV Box, 2 Fire TV Sticks, 1 Bluray-Player and 1 IP Camera.

Can I ask why you have so many network things defined? I’m just curious how you’re using them in your system since there’s not much you can do with the network binding other than see if a device is online.

I have an overview in my sitemap for all network devices and use some of them for presence rules for example.

Gotcha. I’ll be curious if spreading out the pings helps in the long run. I like to minimize traffic as much as possible, so I’d generally suggest removing anything that you don’t really need in openHAB. But that’s a personal preference. I added Pi-Hole to OH earlier this week, but decided that it wasn’t really necessary so I removed it.

Dear all, did the increased “refresh interval” lead to permanent stabiltiy? I did not achieve a stable connection with the “newer” WebSocket HarmonyHub plugin versions and had to downgrade to an older XMPP-plugin version. Because of the distance between hub and router my WLAN connection isn’t perfectly stable at all time, but in contrary to the WebSocket-plugin connection errors the XMPP-connection is working for several months without any disconnect yet. So until now I did avoid upgrading my OpenHAB environment to remain compatibilty with the older XMPP-plugin versions. What would you recommend? Thanks and regards, B