Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Telenet TV Box #158

Open
RonaldGoovaerts opened this issue Nov 10, 2024 · 16 comments
Open

Unable to connect to Telenet TV Box #158

RonaldGoovaerts opened this issue Nov 10, 2024 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@RonaldGoovaerts
Copy link

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.

@RonaldGoovaerts RonaldGoovaerts added the bug Something isn't working label Nov 10, 2024
@Sholofly
Copy link
Owner

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

@RonaldGoovaerts
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

RonaldGoovaerts commented Nov 10, 2024

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
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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

@JorisHeugebaert
Copy link

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
Copy link
Author

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...

@HamsenBender
Copy link

@RonaldGoovaerts tried it but issue remains the same here

@HamsenBender
Copy link

@Sholofly anything else we can do to help troubleshooting this?

@RonaldGoovaerts
Copy link
Author

@RonaldGoovaerts tried it but issue remains the same here

Sorry to hear, but now I'm out of ideas

@JorisHeugebaert
Copy link

Could it have to do with the hardware we use?
I 'm still on the old telenet digicorder.
Annyhow, thx for al the effords!

@ColinRobbins
Copy link
Contributor

Sorry I can’t help directly as I’m in the UK and our set up is clearly different.
I think it will take someone with developer skills to debug.
Here’s what I did to get UK working.
The first step is find a Linux box, download, configure and run the test in https://github.com/Sholofly/lghorizon-python.
If the test script works, HA will work - just a case of getting the config right.

In my case the test script was not working, so I installed and configured https://portswigger.net/burp/communitydownload

I logged into my box using a web browser, capturing the session in Burp.
I then ran the test script, also capturing the session in Burp.
It’s then a case of play “spot the difference” to get some clues.

@RonaldGoovaerts
Copy link
Author

Could it have to do with the hardware we use? I 'm still on the old telenet digicorder. Annyhow, thx for al the effords!

Good point, I'm using the new TV box...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants