Sholofly / lghorizon

Custom integration to control LG Horizon settop boxes for Ziggo(NL), Magenta(AT), UPC(CH), Virgin(GB, IE), Telenet(BE)
GNU General Public License v3.0
58 stars 13 forks source link

Update to HA core 2024.2.0 crashes LG-Horizon and HA #100

Closed canedje closed 7 months ago

canedje commented 7 months ago

Describe the bug LG-Horizon integration is killing HA (HA will not start up but stops at HACS loading) I'm running LG-Horizon in Holland with a next mini from Ziggo

To Reproduce Steps to reproduce the behavior: After update to HA core running HA as Docker under unraid HA won't start up anymore Stopping on LG-Horizon integration Integration will not initialize anymore. I had to switch off integration to let HA to start again Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Version of the component latest version 0.5.8

Logging Enable debug logging and add your log. DO NOT SHARE SENSITIVE DATA SUCH AS PASSWORDS AND ACCOUNT INFO! You can enable logging by setting up the logging component in HA as follows:

logger:
  default: warning
  logs:
    lghorizon: debug

Additional context Add any other context about the problem here.

golles commented 7 months ago

Came here to report the same. I tried removing the integration, can't add it anymore.

After update:

2024-02-07 21:57:43.230 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:57:46.981 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:57:52.112 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:57:59.042 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:58:10.465 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:58:29.018 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:58:40.431 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: lghorizon
2024-02-07 21:59:02.949 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 21:59:40.513 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: lghorizon
2024-02-07 22:00:08.887 ERROR (SyncWorker_10) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)

Add integration:

2024-02-07 22:02:40.467 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry ***@***.nl for lghorizon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 442, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/lghorizon/__init__.py", line 50, in async_setup_entry
    await hass.async_add_executor_job(api.connect)
asyncio.exceptions.CancelledError: Global task timeout
2024-02-07 22:02:40.493 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2024-02-07 22:02:57.848 ERROR (SyncWorker_29) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 22:03:01.597 ERROR (SyncWorker_29) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 22:03:04.771 ERROR (SyncWorker_29) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 22:03:10.742 ERROR (SyncWorker_29) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
2024-02-07 22:03:21.099 ERROR (SyncWorker_29) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token. Error:401 Client Error: Unauthorized for url: https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token)
rzantengmail commented 7 months ago

Same issue here

snhnic commented 7 months ago

Same problem

Martijn085 commented 7 months ago

Same issue here!

danema commented 7 months ago

Same here

deeg61 commented 7 months ago

same problem and even more ad ons are not longer working

Jordenjj commented 7 months ago

It's not 2024.2. A restart on 2024.1 broke it too. Something's probably changed in the api call.

Dominic-070 commented 7 months ago

same here

canedje commented 7 months ago

@Jordenjj Then it is a coincidence it happende exactly after an update

snhnic commented 7 months ago

I agree with canedje. Hopefully sholofly has time to look into this

supergroover commented 7 months ago

Same here.

101

johnstan commented 7 months ago

Same here

Sholofly commented 7 months ago

Hi all, thanks for the feedback. Unfortunately I lack the time to dive into this before at least Saturday. Good news is that I experience the same on my setup so reproduction won't be an issue. As soon I have something to tell you, I will let you know!

johnstan commented 7 months ago

Thanks @Sholofly, very much appreciate all of your work!

Mgeeve commented 7 months ago

Same problem. Unfortunately going back to previous version didn't solve it, can't get it to work anymore

JBakers commented 7 months ago

Hi all, thanks for the feedback. Unfortunately I lack the time to dive into this before at least Saturday. Good news is that I experience the same on my setup so reproduction won't be an issue. As soon I have something to tell you, I will let you know!

I bet you're occupied celebrating carnaval!

Alaaf! 😉

Sholofly commented 7 months ago

No Carnaval but debugging for me ;). It looks like the issue is a PEBCAK one. Used an old URL that stopped working recently. Sorry for the inconvenience all! Update to 0.5.9 and you should be good to go again. Please let me know if you still experience the mqtt token issue.

canedje commented 7 months ago

Yes!!!! Thanks for the afford. It is working again over here

snhnic commented 7 months ago

Looks okay. Thanks

StevoNL commented 7 months ago

You hero!

johnstan commented 7 months ago

Superstar!

Jordenjj commented 7 months ago

Thanks sholo!!

Rheugo commented 7 months ago

Great job!! Thanks!

golles commented 7 months ago

Thanks Rudolf! You should consider adding some sort of donation method to your GitHub page. During the blackout period, I realized how much my smart home relies on this integration, so I would be more than happy to buy you a coffee

Sholofly commented 7 months ago

Hi @golles, thanks you Sander, happy to help! Actually, there's a link in the docs (button on the top) for buy me a coffee:https://www.buymeacoffee.com/sholofly So feel free 😊