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

Closed
RonaldGoovaerts opened this issue Nov 10, 2024 · 27 comments
Closed

Unable to connect to Telenet TV Box #158

RonaldGoovaerts opened this issue Nov 10, 2024 · 27 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...

@Sholofly
Copy link
Owner

Sholofly commented Dec 8, 2024

@RonaldGoovaerts Do you have an image of the box?

@StevenBrs
Copy link

Hi there,
I also had problems with setting up the integration, but I just found a solution.
Take a look at #164 (comment), last comment. Hopefully this can help you too ?

@RonaldGoovaerts
Copy link
Author

@RonaldGoovaerts Do you have an image of the box?
24-12-09 22-22-50 1908
24-12-09 22-23-24 1909

@mtbbart
Copy link

mtbbart commented Dec 22, 2024

Hello, I also get the message 'can't connect' ... I am using the latest version 0.7.4 . This worked fine in the previous version, with the token. It seems an issue between the HA version 2024.12.5. Thanks for any suggestions !

@BernsBe
Copy link

BernsBe commented Jan 2, 2025

Hi all,

Sharing recent experience that worked for me for Telenet:
By the looks of things, I have the same box as @RonaldGoovaerts. Home Assistant runs on a RPi4.

I just upgraded to most recent versions of Home Assistant, HACS and LG Horizon integration, and seemed to have the same problem as others, not able to register.
I've completely wiped the lg horizon folder and re-downloaded, re-installed.

On my former version v0.5.4 of LG horizons I was able to run for almost a year without any flaws.
I only provided user-ID and password on that one. No need for DTV code to be inserted.

Now, with the new version 0.7.4, I needed to provide a token instead of a password. Where did I get that token?

Below steps assume that Home Assistant, HACS and LG Horizon are all in most recent version and are all running error-free.
All these steps are being run from an W10 PC that is fully up to date.

  1. Installed firefox browser.
  2. Installed JWT debugger plugin
  3. Browse to https://www.telenet.tv/en/home and log on (you use an e-mail address to do this. Keep that address in mind)
  4. Run JWT addon
  5. On top of the small interface, in the middle, next to "open JWT from", select the dropdown arrow and click on "flutter.web_secure_storage..."
  6. From the left of the JWT addon interface, under the word "encoded" select the complete token (is is pretty long, and the interface produces it in multiple colours. Just make sure to have the whole token. Treat it as a password, don't share it with other people)
  7. From the home assistant integrations (accessed via web browser from the PC) add LG Horizons, on first interface select "Telenet (BE)", and for username use the e-mail address from 3) above and submit
  8. On the second interface paste the token from 6) above and submit. I did not use the DTV decoder number, just left that field blank. And submit.
    Note: I've experienced that the token changes over time, so I don't know for how long this will work.
  9. It can be that the next window asks to confirm the profile that you use withing the telenet.tv internet interface (In my case it is calles "shared profile" and I think that that is still the default. Doing this might result in your Telenet decoder booting and then shutting down again.
  10. Assign your device to a room in the next screen.

This did the trick for me.
Note: The box was named with a specific name, and kept it during the re-install. All dependant links in home assistant still seem to work (example: when I use the remote to switch on the telenet box, the powered speakers in the living room still power on as well).

@mtbbart
Copy link

mtbbart commented Jan 4, 2025

Hi to all,
I also managed to get it working, in contradiction to the documentation, you have to copy the complete string, and not starting after about 3 to 4 lines after the "." Just copy completely the string in the "Encoded" box and that did the magic.
Kind regards,
Bart

@Sholofly
Copy link
Owner

Sholofly commented Jan 7, 2025

Good to hear that it's working. @RonaldGoovaerts Does it work for you already?

@Sholofly
Copy link
Owner

Sholofly commented Jan 7, 2025

Hi to all, I also managed to get it working, in contradiction to the documentation, you have to copy the complete string, and not starting after about 3 to 4 lines after the "." Just copy completely the string in the "Encoded" box and that did the magic. Kind regards, Bart

I don't see where the docs say that you should start after the dot.

@mtbbart
Copy link

mtbbart commented Jan 7, 2025

Hi this is mentioned in the readme.
image
And this does not work, I had to copy all data starting from byte 1 to the last one. In previous versions - I needed to copy the string as mentioned in the readme.
I hope this helps.
Kr
Bart

@JorisHeugebaert
Copy link

image
I finally got it working, thanks to the clear step-by-step guide from BernsBe, but probably also because I exchanged my old Telenet digicorder for the newest TV box. (image)
That device is smaller and newer than the one in the photos above by RonaldGoovaerts.

@RonaldGoovaerts
Copy link
Author

Good to hear that it's working. @RonaldGoovaerts Does it work for you already?

Yes it is working for me.

@Sholofly Sholofly closed this as completed Jan 7, 2025
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

9 participants