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
63 stars 15 forks source link

Unable to connect to Telenet TV Box #158

Open RonaldGoovaerts opened 1 week ago

RonaldGoovaerts commented 1 week ago

I had my Telenet TV Box connected to HASS using the LGHorizon integration. All was working fine till a few days ago. One action I did was to upgrade HASS to 2024.11.1, so possibly that's what broke it.

Steps to reproduce the behavior: I removed the existing TB Box Item from the HASS LGHorizon integration, then try to add it again. I'm using the login account that I'm using to login My Telenet succesfully. The DTV code I found on my invoice image

The error I get looks like this image

Version of the component: tried it with LGHorizon v0.7.4, also downgraded to 0.7.3 but get the same behavior.

Sholofly commented 1 week ago

Please check the docs and use the refresh token method to register.

RonaldGoovaerts commented 1 week ago

Thanks for your prompt reply ;-). In the JWT, I found the JWT token and I copy-pasted it into the "refreshToken" attribute (see below screenshot, BTW the token is >1300 chars long). But then I wonder what is the next steps to add the integration (that's not mentioned in the doc)? I tried to add the integration again using the account PWD, or the token instead of the password. BTW: I also noticed a DTV ID in JWT which is different then the one on my invoice, is this the one I'm supposed to use? I tried to login with using both DTV ID's, but still no luck...

image

ColinRobbins commented 1 week ago

The screenshot “paste here” confuses me! You paste the refresh token into the HA configuration screen.
The first HA screen comes up, and you select the county. Hit next. The next screen asks for a token - paste it there.

RonaldGoovaerts commented 1 week ago

Found it... Had to first upgrade back to LGHorizon v0.7.4 (instead of 0.7.3). Then the login prompt of the Integration was expecting to put the "Refresh token" (instead of the password). Then the login worked. So it seems that this change came with v0.7.4 of the integration and it's breaking the configuration of an existing integration... If so, then possibly I will not be the only one overlooking this change... Thanks for the assistance!

JorisHeugebaert commented 1 week ago

I still can't get the integration to work. What strikes me: -As soon as I select "flutter.web_secure_storge…" in the JWT debugger, the Signature Verified field at the bottom changes to: "Invalid Signature" -Do I choose "TELENET" or "TELENET BE PREPOD" as Provider? -Under the "refresh token" field, there is also a DTVidentifier field. Do I still have to fill this in?

HamsenBender commented 1 week ago

Also can't get it working again "Can't connect" error when providing the refresh token. See following error in the log file:

2024-11-14 21:43:51.611 ERROR (SyncWorker_14) [lghorizon.lghorizon_api] Giving up connect(...) after 3 tries (requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)) 2024-11-14 21:43:51.612 ERROR (MainThread) [custom_components.lghorizon.config_flow] Expecting value: line 1 column 1 (char 0)

RonaldGoovaerts commented 6 days ago

ere is also a DTVid

In my system, I always get image

I have selected "TELENET" (it seems that PREPROD should be used only when you have a Telenet beta tester account). If I remember correctly, I left the DTVidentifier field empty. Are you also using v0.7.4 of the integration?

Bart1960 commented 6 days ago

Same problem here. Using Ziggo and tried different versions. Can't connect

JorisHeugebaert commented 6 days ago

ere is also a DTVid

In my system, I always get image

I have selected "TELENET" (it seems that PREPROD should be used only when you have a Telenet beta tester account). If I remember correctly, I left the DTVidentifier field empty. Are you also using v0.7.4 of the integration?

yes 0.7.4

RonaldGoovaerts commented 5 days ago

OK, I also tried again from scratch and didn't get it to work at first... :-( When opening the Telenet link, I got this page and was not able to login: image

Only after opening a browser in incognito mode, I was able to login in the Telenet web page: image

I also opened the Home Assistant page in a second tab in the same browser instance (don't know if it's needed). Then adding the integration worked (left the DTV ID field empty).

Hope this also solves it for you guys...