@martiniman I tested this (power OFF/ON) a little while before (with version 2.1.0.201704261428 ) and harmonyhub was reconnected. But in the meantime I have installed version ( 2.1.0.201705151816) and I will be able to test it this evening!
@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!
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!
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:
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) [?:?]