openhab-addons: [harmonyhub] Exceptions when turning off hub

My harmony hub is connected to a power outlet strip together with the AV-Receiver and the TV. When I turn off the devices I get exceptions from the harmony binding:

2018-07-30 08:54:50.760 [WARN ] [.whistlingfish.harmony.HarmonyClient] - Send heartbeat failed
java.lang.RuntimeException: Failed communicating with Harmony Hub
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:342) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient.sendPing(HarmonyClient.java:400) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient$2.run(HarmonyClient.java:181) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        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@86f543.
        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
2018-07-30 08:55:20.766 [WARN ] [harmonyhub.handler.HarmonyHubHandler] - heartbeat failed
java.lang.RuntimeException: Failed communicating with Harmony Hub
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:342) ~[?:?]
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) ~[?:?]
        at net.whistlingfish.harmony.HarmonyClient.sendPing(HarmonyClient.java:400) ~[?:?]
        at org.openhab.binding.harmonyhub.handler.HarmonyHubHandler.lambda$0(HarmonyHubHandler.java:240) ~[?:?]
        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@113f323.
        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
2018-07-30 08:55:50.766 [WARN ] [.whistlingfish.harmony.HarmonyClient] - Send heartbeat failed
java.lang.RuntimeException: Failed communicating with Harmony Hub
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:342) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient.sendOAStanza(HarmonyClient.java:331) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient.sendPing(HarmonyClient.java:400) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        at net.whistlingfish.harmony.HarmonyClient$2.run(HarmonyClient.java:181) [189:org.openhab.binding.harmonyhub:2.4.0.201807281702]
        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@1bffab2.
        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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 27 (12 by maintainers)

Most upvoted comments

Thanks @Celaeno1 , good to know the binding is working. Fixed was merged a few days ago, https://github.com/openhab/openhab2-addons/pull/5011.

We get a network error here

2019-03-01 12:07:57.376 [DEBUG] [com.digitaldan.harmony.HarmonyClient] - onWebSocketError

The binding waits a minute and we try to reconnect here but fail to even connect to the HUB

2019-03-01 12:08:12.394 [DEBUG] [com.digitaldan.harmony.HarmonyClient] - onWebSocketClose 1006 WebSocket Read EOF

We wait a minute again and are able to connect

2019-03-01 12:09:12.603 [DEBUG] [com.digitaldan.harmony.HarmonyClient] - onWebSocketConnect WebSocketSession[websocket=JettyListenerEventDriver[

This would seem to me to be network related and the binding is handling it as it should.

Unknown message type “automation.state?notify”

Since the websocket protocol is not documented, we don’t respond to all messages, so its safe to ignore these.

That error message would indicate it is using the older version, I will check when I am back in town on Friday and can test

@Celaeno1 @digitaldan fixed this in https://github.com/digitaldan/harmony-client/commit/25a7cdb86cee25e1535cb5772a960d5908ff5577 . But this fix is not in the harmony-client-1.1.1.jar in the current org.openhab.binding.harmonyhub-2.5.0-SNAPSHOT.jar.

Yep, I was just looking at the fact I am not handling those well, look for a PR soon