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

Intergration fails to initalize #101

Closed Rotil66 closed 7 months ago

Rotil66 commented 7 months ago

Hello Sholofly, I have a constant return issue I can't pinpoint. Maybe you can help me to find a lasting solution. I'm using the LG horizon intergration for a long time now. When working it's running flawless. The returning problem I have is that after an major update of HA or an update of this intergration, I have a hardtime to get it running again. The intergration is getting a message that it fails to Initiaze. Mostly I can get it to run again after rebooting the Ziggo settop box and complete coldboot HA. At some moment (Sometime after a long time) the intergration is running again. Unfortunately there is not a certain sequence. It just runs at some moment after rebooting several time. The problem after the last updates, I can't get it to inintialize anymore. Even if I reload a HA backup from a working situation, still the LG Horizon intergration keeps failing. Since I don't understand why this is happening I can't solve it. Can you help me to find the cause so I know how to get it running again ???

Thanks Rolof

stingone commented 7 months ago

Same here.

medivb commented 7 months ago

Same here. Started happening during a restart last Tuesday morning. Running 2024.1.6. It is NOT related to 2024.2.0.

MtenHoorn commented 7 months ago

It looks like the integration isn't able to login to ziggo.

Rotil66 commented 7 months ago

Ok, it looks like that, But there is nothing changed in the settings, Why is this becoming a problem on restart or updates.

(not always)

Network connection is OK Also to my Ziggo box. Is there a way to check this or have the integration forge to login.

I have tried to reinstall the integration but when I have to enter the credentials there is an unexpected error (point in the same direction) So why does only this integration not login into the Ziggo account.

Is there no way to run without a cloudservice ??

Thanks

Van: MtenHoorn @.> Verzonden: donderdag 8 februari 2024 15:42 Aan: Sholofly/lghorizon @.> CC: Rotil66 @.>; Author @.> Onderwerp: Re: [Sholofly/lghorizon] Intergration fails to initalize (Issue #101)

It looks like the integration isn't able to login to ziggo.

— Reply to this email directly, view it on GitHub https://github.com/Sholofly/lghorizon/issues/101#issuecomment-1934265088 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6DUALRLSNS6GDEX4JZ3ALYSTP35AVCNFSM6AAAAABC7JUUSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGI3DKMBYHA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AE6DUALFOHP7QV4F2FMOBQ3YSTP35A5CNFSM6AAAAABC7JUUSGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTTJKFQA.gif Message ID: @. @.> >

Rotil66 commented 7 months ago

Hi Mten Hoorn,

This is what I can find in some log’s.

What does this mean. Looks like a login issue but nothing is changed there??

2024-02-07 20:53:56.940 ERROR (SyncWorker_18) [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)

Van: MtenHoorn @.> Verzonden: donderdag 8 februari 2024 15:42 Aan: Sholofly/lghorizon @.> CC: Rotil66 @.>; Author @.> Onderwerp: Re: [Sholofly/lghorizon] Intergration fails to initalize (Issue #101)

It looks like the integration isn't able to login to ziggo.

— Reply to this email directly, view it on GitHub https://github.com/Sholofly/lghorizon/issues/101#issuecomment-1934265088 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6DUALRLSNS6GDEX4JZ3ALYSTP35AVCNFSM6AAAAABC7JUUSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGI3DKMBYHA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AE6DUALFOHP7QV4F2FMOBQ3YSTP35A5CNFSM6AAAAABC7JUUSGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTTJKFQA.gif Message ID: @. @.> >

Rotil66 commented 7 months ago

I Now have try everything I can think of, but unfortunatly this intergration now permanently died for me.

No idea what I can do to make this work again.

Anybody an Idea ??

Thanks

Van: MtenHoorn @.> Verzonden: donderdag 8 februari 2024 15:42 Aan: Sholofly/lghorizon @.> CC: Rotil66 @.>; Author @.> Onderwerp: Re: [Sholofly/lghorizon] Intergration fails to initalize (Issue #101)

It looks like the integration isn't able to login to ziggo.

— Reply to this email directly, view it on GitHub https://github.com/Sholofly/lghorizon/issues/101#issuecomment-1934265088 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6DUALRLSNS6GDEX4JZ3ALYSTP35AVCNFSM6AAAAABC7JUUSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGI3DKMBYHA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AE6DUALFOHP7QV4F2FMOBQ3YSTP35A5CNFSM6AAAAABC7JUUSGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTTJKFQA.gif Message ID: @. @.> >

GHeiner commented 7 months ago

I have the same problem, I removed LGHorizon from integrations and then try to reinstall it.

`running long on the login and ends with "Unknown error occurred". so I can't reinstall the integration.

Logger: lghorizon.lghorizon_api Source: /usr/local/lib/python3.12/site-packages/backoff/_common.py:120 First occurred: 09:19:42 (24 occurrences) Last logged: 09:32:10

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) Giving up connect(...) after 11 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)

When you go to https://spark-prod-nl.gnp.cloud.ziggogo.tv/auth-service/v1/mqtt/token

It shows HTTP ERROR 401 Unauthorized URI: /public/v1/mqtt/token Status: 401 Message: Unauthorized Servlet: jersey

UPDATE: Version 2-24.2.1 gives the same result. Re-download 0.5.8 gives same result

MtenHoorn commented 7 months ago

Hi Mten Hoorn, This is what I can find in some log’s. What does this mean. Looks like a login issue but nothing is changed there?? 2024-02-07 20:53:56.940 ERROR (SyncWorker_18) [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) Van: MtenHoorn @.> Verzonden: donderdag 8 februari 2024 15:42 Aan: Sholofly/lghorizon @.> CC: Rotil66 @.>; Author @.> Onderwerp: Re: [Sholofly/lghorizon] Intergration fails to initalize (Issue #101) It looks like the integration isn't able to login to ziggo. — Reply to this email directly, view it on GitHub <#101 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6DUALRLSNS6GDEX4JZ3ALYSTP35AVCNFSM6AAAAABC7JUUSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGI3DKMBYHA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AE6DUALFOHP7QV4F2FMOBQ3YSTP35A5CNFSM6AAAAABC7JUUSGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTTJKFQA.gif Message ID: @. @.> >

I wish i could help you. I have got the same problem

delmeer commented 7 months ago

Don't know if I'm glad to see that I'm not the only one. Hope it will be solved soon. Keep up the good work!!

mrh270188 commented 7 months ago

I'm not sure if this is related, but I work for VodafoneZiggo, and over the past few days, we've had customers complaining about encountering login timeout errors when trying to access MijnZiggo or the Webmail service. Since your MijnZiggo account also serves as the login for the lghorizon plugin, this issue could be connected.

glijie commented 7 months ago

Also the same problem, what I notice now is that I have to log in to my Ziggo with a two-step verification. I haven't logged in to Ziggo for a long time now, but as far as I know I have never used two-step verification before. Could this be causing the login problem?

Edit: sorry for Ziggo Go no two-step verification is needed.

Rotil66 commented 7 months ago

I also noticed that there is a two step verification. Haven't seen that before??

⁣BlueMail voor Android downloaden ​

Op 10 feb. 2024 00:05, om 00:05, glijie @.***> schreef:

Also the same problem, what I notice now is that I have to log in to my Ziggo with a two-step verification. I haven't logged in to Ziggo for a long time now, but as far as I know I have never used two-step verification before. Could this be causing the login problem?

-- Reply to this email directly or view it on GitHub: https://github.com/Sholofly/lghorizon/issues/101#issuecomment-1936718309 You are receiving this because you authored the thread.

Message ID: @.***>

tne7laa commented 7 months ago

+1 same here

2 error messages:

Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 09:35:52 (2 occurrences)
Last logged: 09:44:13

Error setting up entry xxxxxx@xxxxx.nl for lghorizon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, 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

and

Logger: lghorizon.lghorizon_api
Source: /usr/local/lib/python3.11/site-packages/backoff/_common.py:120
First occurred: 09:30:58 (21 occurrences)
Last logged: 09:44:53

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)
Giving up connect(...) after 11 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)
Sholofly commented 7 months ago

Is the same as #100 Solution is on his way.