question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[harmonyhub] Exceptions when turning off hub

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
digitaldancommented, Mar 2, 2019

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

1reaction
digitaldancommented, Mar 1, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing when a device powers on or off
The device will be powered off when you press the Off button on your Harmony remote indicating that you want everything turned off....
Read more >
Harmony Smart Control™ User Guide - Logitech
Open your Harmony Smart Control box and familiarize yourself with the components. 1. Harmony Hub. 2. Pair / Reset button. 3. Micro USB...
Read more >
Harmony hub turns off everything when ending an activity
Is it normal for the Harmony Hub to turn off everything when ending just one activity? For example, I have a Watch TV...
Read more >
Harmony hub problems after update - Configuration
I want turn off only one activity and my code working without any problems before update. Now this code turn off all my...
Read more >
Using the Harmony Hub to control devices - Connected Things
Anyone have any experience here with using the Harmony Hub with ... “Echo Turn Off House” (again, with a logical switch) when we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found