ERROR: Harmony-Binding

I have 2.1.0.201705011011 version, and wat the latest version?

latest version= 2.1.0.201705151816

I updated to 2.1.0.201705151816 will chek this evening too :slight_smile:

@martiniman I tested it right now. Harmony Hub was reconnected. Then it was offline once. “Communication error”. But then it reconnected again. It is running since then.
EDIT: 11 hours later: it is still running!

Thanks @Celaeno1, after update my Hab works too.

Where can i download the latest version of the binding?

I’m on openHAB 2.1.0~20170519040644-1 (Build #921). But when i install via addons.cfg there’s only an old version.

Edit: ok, found it…
https://openhab.jfrog.io/openhab/webapp/#/builds/openHAB2-Bundles/51/1495221196261/published/org.openhab.binding:org.openhab.binding.harmonyhub:2.1.0-SNAPSHOT

I found if my OH2 is loosing wifi connection and connect again - Harmony binding stops working.
I have 2.1.0.201705311934 version.
Please check this bug.

bundle:restart 208 (208 is Harmony) - back binding to life.

I tried to upgrade my version, in Karaf I get feedback Harmony binding is version 2.1.0. I guess this is still the old version? Tried to uninstall and reinstall? I’m running OH2 2.1.0 (release build) on a Synology. Should I upgrade the binding differently?

In the release build you cannot update bindings, you need to go to a snapshot build or manually add the binding to your addons folder. But that could cause problems if the binding has changes implemented which rely on runtime changes.

@LuFriFri I’ve put some work into extinguishing timeouts with PR #2898. It got merged yesterday and should be part of 2.2.0-SNAPSHOT build #1103 or newer!

2 Likes

Thank you, lets see how it performs now!

Thx, working so far. Thumbs up (and crossing fingers) :grinning:

Still having crashes of the Harmony hub binding because of time out exception. I’m on version 2.3.0

me to
2018-11-23 08:15:27.027 [WARN ] [oftware.smack.AbstractXMPPConnection] - Connection HarmonyXMPPTCPConnection[client@1111/main] (36) closed with error
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag stream:stream from line 1, parser stopped on END_TAG seen …827-8906-613e8bffc5e7:id=drfv7-131141:susTrigger=xmpp]]>… @1:48032
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1228) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:980) [210:org.openhab.binding.harmonyhub:2.3.0]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:996) [210:org.openhab.binding.harmonyhub:2.3.0]
at java.lang.Thread.run(Thread.java:748) [?:?]
2018-11-23 08:15:26.817 [WARN ] [.whistlingfish.harmony.HarmonyClient] - Send heartbeat failed
java.lang.RuntimeException: Failed communicating with Harmony Hub
at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:342) [210:org.openhab.binding.harmonyhub:2.3.0]
at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) [210:org.openhab.binding.harmonyhub:2.3.0]
at net.whistlingfish.harmony.HarmonyClient.sendPing(HarmonyClient.java:400) [210:org.openhab.binding.harmonyhub:2.3.0]
at net.whistlingfish.harmony.HarmonyClient$2.run(HarmonyClient.java:181) [210:org.openhab.binding.harmonyhub:2.3.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.jivesoftware.smack.SmackException$NotConnectedException: The connection HarmonyXMPPTCPConnection[client@1111/main] (36) is no longer connected. done=true smResumptionPossible=false
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.throwNotConnectedExceptionIfDoneAndResumptionNotPossible(XMPPTCPConnection.java:1307) ~[?:?]
at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwNotConnectedExceptionIfAppropriate(XMPPTCPConnection.java:356) ~[?:?]
at org.jivesoftware.smack.AbstractXMPPConnection.sendStanza(AbstractXMPPConnection.java:670) ~[?:?]
at net.whistlingfish.harmony.protocol.HarmonyXMPPTCPConnection.sendStanza(HarmonyXMPPTCPConnection.java:49) ~[?:?]
at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:339) ~[?:?]
… 10 more

I’m also experiencing different problems using the harmony hub binding:

232 │ Active   │  80 │ 2.3.0                  │ HarmonyHub Binding
    2018-11-26 23:10:43.163 [ERROR] [oftware.smack.AbstractXMPPConnection] - Exception in packet listener
    java.lang.NullPointerException: null
	    at net.whistlingfish.harmony.HarmonyClient.updateActivityStatus(HarmonyClient.java:258) [232:org.openhab.binding.harmonyhub:2.3.0]
	    at net.whistlingfish.harmony.HarmonyClient.access$300(HarmonyClient.java:67) [232:org.openhab.binding.harmonyhub:2.3.0]
	    at net.whistlingfish.harmony.HarmonyClient$3.processStanza(HarmonyClient.java:217) [232:org.openhab.binding.harmonyhub:2.3.0]
	    at org.jivesoftware.smack.AbstractXMPPConnection$5.run(AbstractXMPPConnection.java:1194) [232:org.openhab.binding.harmonyhub:2.3.0]
	    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	    at java.lang.Thread.run(Thread.java:748) [?:?]

There also were communication issues:

2018-11-26 23:29:17.570 [WARN ] [.whistlingfish.harmony.HarmonyClient] - Send heartbeat failed
java.lang.RuntimeException: Failed communicating with Harmony Hub
	at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:342) [232:org.openhab.binding.harmonyhub:2.3.0]
	at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) [232:org.openhab.binding.harmonyhub:2.3.0]
	at net.whistlingfish.harmony.HarmonyClient.sendPing(HarmonyClient.java:400) [232:org.openhab.binding.harmonyhub:2.3.0]
	at net.whistlingfish.harmony.HarmonyClient$2.run(HarmonyClient.java:181) [232:org.openhab.binding.harmonyhub:2.3.0]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Waited for response using: net.whistlingfish.harmony.protocol.OAReplyFilter@1045ea6.
	at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:110) ~[?:?]
	at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:97) ~[?:?]
	at net.whistlingfish.harmony.HarmonyClient.getNextStanzaSkipContinues(HarmonyClient.java:354) ~[?:?]
	at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:340) ~[?:?]
	... 10 more

In order not to start whole openHAB again every time this happens, I tried restarting just the binding with the Console and it worked:

ssh openhab@localhost -p8101 'bundle:restart org.openhab.binding.harmonyhub'

Anyone has any other ideas how I can debug this issue? I honestly don’t really know where to look, but if anyone gives me a little help I’m happy to provide more information.

Just wondering whether anyone else is having issues with the HarmonyHub Binding in version 2.4

OH2 will find the HarmonyHub when I delete the existing thing, but the Hub stays offline. When I ping the Hub, it is reachable and also the Harmony App is working.

Here’s my log entry from OpenHAB:

2018-12-20 13:49:25.787 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler: null
java.lang.NullPointerException: null
	at net.whistlingfish.harmony.protocol.OAReplyFilter.<init>(OAReplyFilter.java:30) ~[?:?]
	at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:336) ~[?:?]
	at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) ~[?:?]
	at net.whistlingfish.harmony.HarmonyClient.getCurrentActivity(HarmonyClient.java:426) ~[?:?]
	at org.openhab.binding.harmonyhub.handler.HarmonyHubHandler.channelLinked(HarmonyHubHandler.java:160) ~[?:?]
	at org.eclipse.smarthome.core.thing.link.ThingLinkManager.lambda$0(ThingLinkManager.java:300) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]

Anyone an idea?

It might be due to the issues with the new firmware, see also Logitech Harmony Hub Binding - 4.15.206 firmware broke local API connection and:

1 Like

Thanks, this solved the issue. Downgraded the Harmony Firmware and now everything is up an running again!

1 Like

I realized that in our home setup we have a router from our ISP. I can’t just block internet access on this one. I hope logitech keeps their websocket open for now and the binding can be adjusted. It sure is nice that I can turn on our amp from within Openhab.

There is now a developer firmware that fixes this issue and Logitech claims and regular firmware with this option will be available in January.

https://community.logitech.com/s/question/0D55A00008D4bZ4SAJ/harmony-hub-firmware-update-fixes-vulnerabilities

2 Likes