home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.67k stars 30.43k forks source link

Harmony Hub: unknown error occurred #60263

Closed cliffjao closed 2 years ago

cliffjao commented 2 years ago

The problem

When trying to add new Harmony Hub integration, I eventually get "unknown error occurred". Previously this integration worked on HA but then it stopped working with a different error. I tried to remove it and then add it back.

What version of Home Assistant Core has the issue?

core-2021.11.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Harmony Hub

Link to integration documentation on our website

https://www.home-assistant.io/integrations/harmony/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-11-23 19:50:42 DEBUG (MainThread) [homeassistant.components.harmony.config_flow] SSDP discovery_info: {'CACHE-CONTROL': 'max-age = 1800', 'DATE': 'Wed, 24 Nov 2021 03:50:38 GMT', 'ssdp_ext': '', 'ssdp_server': 'Ubuntu/10.04 UPnP/1.1 Harmony/16.3', 'ssdp_st': 'urn:myharmony-com:device:harmony:1', 'ssdp_usn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9::urn:myharmony-com:device:harmony:1', 'BOOTID.UPNP.ORG': '1637725838', '_location_original': 'http://192.168.1.103:8088/description', 'ssdp_location': 'http://192.168.1.103:8088/description', '_timestamp': datetime.datetime(2021, 11, 23, 19, 50, 39, 550450), '_host': '192.168.1.103', '_port': 45511, 'ssdp_udn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'deviceType': 'urn:myharmony-com:device:harmony:1', 'friendlyName': 'Harmony Hub', 'manufacturer': 'Logitech', 'manufacturerURL': 'http://www.logitech.com/', 'modelDescription': 'Harmony Hub', 'modelName': 'Harmony Hub', 'modelNumber': None, 'modelURL': None, 'serialNumber': None, 'UDN': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'UPC': None, 'presentationURL': 'http://192.168.1.103:8088/index.html', 'x-homeassistant-matching-domains': {'harmony'}}
2021-11-23 19:51:39 DEBUG (MainThread) [homeassistant.components.harmony.config_flow] SSDP discovery_info: {'CACHE-CONTROL': 'max-age = 1800', 'DATE': 'Wed, 24 Nov 2021 03:51:38 GMT', 'ssdp_ext': '', 'ssdp_server': 'Ubuntu/10.04 UPnP/1.1 Harmony/16.3', 'ssdp_st': 'urn:myharmony-com:device:harmony:1', 'ssdp_usn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9::urn:myharmony-com:device:harmony:1', 'BOOTID.UPNP.ORG': '1637725898', '_location_original': 'http://192.168.1.103:8088/description', 'ssdp_location': 'http://192.168.1.103:8088/description', '_timestamp': datetime.datetime(2021, 11, 23, 19, 51, 39, 505130), '_host': '192.168.1.103', '_port': 42863, 'ssdp_udn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'deviceType': 'urn:myharmony-com:device:harmony:1', 'friendlyName': 'Harmony Hub', 'manufacturer': 'Logitech', 'manufacturerURL': 'http://www.logitech.com/', 'modelDescription': 'Harmony Hub', 'modelName': 'Harmony Hub', 'modelNumber': None, 'modelURL': None, 'serialNumber': None, 'UDN': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'UPC': None, 'presentationURL': 'http://192.168.1.103:8088/index.html', 'x-homeassistant-matching-domains': {'harmony'}}
2021-11-23 19:51:42 DEBUG (MainThread) [homeassistant.components.harmony.data] Harmony Hub: Connecting
2021-11-23 19:52:39 DEBUG (MainThread) [homeassistant.components.harmony.config_flow] SSDP discovery_info: {'CACHE-CONTROL': 'max-age = 1800', 'DATE': 'Wed, 24 Nov 2021 03:52:38 GMT', 'ssdp_ext': '', 'ssdp_server': 'Ubuntu/10.04 UPnP/1.1 Harmony/16.3', 'ssdp_st': 'urn:myharmony-com:device:harmony:1', 'ssdp_usn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9::urn:myharmony-com:device:harmony:1', 'BOOTID.UPNP.ORG': '1637725958', '_location_original': 'http://192.168.1.103:8088/description', 'ssdp_location': 'http://192.168.1.103:8088/description', '_timestamp': datetime.datetime(2021, 11, 23, 19, 52, 39, 431374), '_host': '192.168.1.103', '_port': 51405, 'ssdp_udn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'deviceType': 'urn:myharmony-com:device:harmony:1', 'friendlyName': 'Harmony Hub', 'manufacturer': 'Logitech', 'manufacturerURL': 'http://www.logitech.com/', 'modelDescription': 'Harmony Hub', 'modelName': 'Harmony Hub', 'modelNumber': None, 'modelURL': None, 'serialNumber': None, 'UDN': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'UPC': None, 'presentationURL': 'http://192.168.1.103:8088/index.html', 'x-homeassistant-matching-domains': {'harmony'}}
2021-11-23 19:53:39 DEBUG (MainThread) [homeassistant.components.harmony.config_flow] SSDP discovery_info: {'CACHE-CONTROL': 'max-age = 1800', 'DATE': 'Wed, 24 Nov 2021 03:53:38 GMT', 'ssdp_ext': '', 'ssdp_server': 'Ubuntu/10.04 UPnP/1.1 Harmony/16.3', 'ssdp_st': 'urn:myharmony-com:device:harmony:1', 'ssdp_usn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9::urn:myharmony-com:device:harmony:1', 'BOOTID.UPNP.ORG': '1637726018', '_location_original': 'http://192.168.1.103:8088/description', 'ssdp_location': 'http://192.168.1.103:8088/description', '_timestamp': datetime.datetime(2021, 11, 23, 19, 53, 39, 542789), '_host': '192.168.1.103', '_port': 40728, 'ssdp_udn': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'deviceType': 'urn:myharmony-com:device:harmony:1', 'friendlyName': 'Harmony Hub', 'manufacturer': 'Logitech', 'manufacturerURL': 'http://www.logitech.com/', 'modelDescription': 'Harmony Hub', 'modelName': 'Harmony Hub', 'modelNumber': None, 'modelURL': None, 'serialNumber': None, 'UDN': 'uuid:7b5c5c9024b4200759d3d87465bde4a965e97fa9', 'UPC': None, 'presentationURL': 'http://192.168.1.103:8088/index.html', 'x-homeassistant-matching-domains': {'harmony'}}

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @ehendrix23, @bramkragten, @bdraco, @mkeesey, @aohzan, mind taking a look at this issue as it has been labeled with an integration (harmony) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


harmony documentation harmony source (message by IssueLinks)

cliffjao commented 2 years ago

This is still happening for me on 2021.12.1

cliffjao commented 2 years ago

Still broken on 2021.12.4

Wireheadbe commented 2 years ago

Same error Node-Red has no issue connecting to HarmonyHub - Home-Assistant has issue.


2022-01-02 18:54:14 WARNING (MainThread) [slixmpp.stringprep] Using slower stringprep, consider compiling the faster cython/libidn one.
2022-01-02 18:54:15 WARNING (MainThread) [slixmpp.basexmpp] Legacy XMPP 0.9 protocol detected.
2022-01-02 18:54:16 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
cliffjao commented 2 years ago

Still broken on latest 2021.12.9. I noticed in the changelog that aioharmony was updated in this release. Is this issue a problem with Home Assistant integration or with aioharmony?

cliffjao commented 2 years ago

I finally figured out what's going on here. XMPP on my Harmony Hub device got disabled somehow. Once I reenabled it, it works again.