There is a problem that late last year Logitech closed off the API that the Harmony Hub binding uses. That problem was reported here:
If you have this problem, your openHab system will discover the Harmony Hub, but the “things” list will display:
OFFLINE - COMMUNICATION_ERROR Could not connect: Failed communicating with Harmony Hub
The 2.5 version of the binding works around the problem by switching from HTTP to Websockets. This version seems to work on my 2.4 system – if you install it manually.
I haven’t seen the procedure posted anywhere, so I thought I would. Here is what I did to get the Harmony Hub binding working on my 2.4 system:
- In PaperUI, go to Add-Ons → Bindings and uninstall Harmony Hub Binding
- Go to the jfrog repo and download the latest version of org.openhab.binding.harmonyhub-2.5.0-*.jar
- Copy that into your add-ons directory. In my openHABian system it’s /usr/share/openhab2/addons/.
- You should now be able to discover your hub and its devices.
If you want to check the version of your Harmony Hub binding, do:
$ openhab-cli console
openhab> bundle:list |Grep Harmony
216 │ Active │ 80 │ 2.5.0.201903220233 │ HarmonyHub Binding