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

No longer connecting with a Virgin (GB) box #82

Open dickthespoon opened 8 months ago

dickthespoon commented 8 months ago

Describe the bug Integration no longer working, not connecting to Virgin (GB)

To Reproduce Steps to reproduce the behaviour: Look in Devices and Services and Integration is red and entity is not available

Expected behaviour Entity to be available

Version of the component v0.5.3 installed

Logging 2024-01-10 19:52:19.894 ERROR (SyncWorker_2) [lghorizon.lghorizon_api] Giving up connect(...) after 11 tries (AttributeError: 'LGHorizonAuth' object has no attribute 'username') 2024-01-10 19:52:19.895 ERROR (MainThread) [custom_components.lghorizon.config_flow] 'LGHorizonAuth' object has no attribute 'username'

Additional context Tried removing and re-adding, it just spins for a while then says can't connect. All details used for login are correct, double checked with Virgin TV Go app and that is logging in and all working correctly.

ChrisThomas42 commented 8 months ago

I'm having the same issues. Posted details here, https://github.com/Sholofly/lghorizon/issues/62. I first noticed the problem around mid morning today 10/1/24.

I've tried rebooting HA and Virgin box. I then removed the device but I can't add it back in getting the above error.

Shivy011 commented 8 months ago

Same issue

dickthespoon commented 8 months ago

Just adding what's seen in the debug log:

2024-01-11 13:35:48.508 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Connect to API 2024-01-11 13:35:48.508 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 1 - Get Authorization data 2024-01-11 13:35:48.797 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie 2024-01-11 13:35:49.024 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 3 - Login 2024-01-11 13:35:49.179 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 4 - Follow redirect 2024-01-11 13:35:49.265 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 5 - Extract auth code 2024-01-11 13:35:49.265 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Auth code: **, Auth state: **** 2024-01-11 13:35:49.265 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code 2024-01-11 13:35:50.054 DEBUG (SyncWorker_10) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token... 2024-01-11 13:35:50.054 INFO (SyncWorker_10) [lghorizon.lghorizon_api] Backing off connect(...) for 1.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')

**Auth code and Auth state redacted!

KEV-github commented 8 months ago

Same here.

beanian commented 8 months ago

Also happening here, Virgin Media Ireland

ArkadiuszSilevis commented 8 months ago

It happened to me, but UPC Poland.

Pieter-Geerts commented 8 months ago

Same issue with Telenet (BE)

KEV-github commented 8 months ago

It happened to me just after an update to 2024.1.1

bdormael commented 8 months ago

same here for Telenet BE

davepearson1628 commented 8 months ago

I'm having the same problem - tried reverting to 2023.12.4, still had the same problem, also reverted to v.0.5.2 and still no connection to my Virgin Media UK devices.

Sholofly commented 8 months ago

I suspect there's something changed in the way authentication is implemented by LG. If someone in GB would like to share credentials and a VPN, I can take a look. Find me as Sholofly on discord.

Sholofly commented 8 months ago

For CH is a beta version available.v0.5.4b0

ChrisThomas42 commented 8 months ago

@Sholofly I'm in the Uk but we're away visiting sick relative for the next few days. I'll make contact when we get back home.

steuerzentrale commented 8 months ago

For CH is a beta version available.v0.5.4b0

I could test it, I am based in Switzerland. how can I get the beta in order to give feedback?

robertwigley commented 8 months ago

@Sholofly I am in the UK and happy to assist any way I can. What exactly do you need, my Virgin Media login? Unfortunately, I don't have a VPN.

BrauseP commented 8 months ago

For CH is a beta version available.v0.5.4b0

Works in CH

robertwigley commented 8 months ago

For CH is a beta version available.v0.5.4b0

I could test it, I am based in Switzerland. how can I get the beta in order to give feedback?

In HACS find the integration, click the three dots at the top right, select "Redownload", toggle on "Show beta versions", select the new beta version and click "Download" and restart HA. To switch this off and/or revert, toggle the switch back to off and you can redownload the non-beta version.

steuerzentrale commented 8 months ago

yes, can confirm too that it is working in CH with v05.4b0

robertwigley commented 8 months ago

I thought I would try v0.5.4b0 on the off chance it also fixed it for Virgin Media in the UK. Unfortunately not.

callumeveratt commented 7 months ago

@Sholofly Looks like VM (GB) may have moved MQTT servers?

image
ChrisThomas42 commented 7 months ago

@Sholofly I've only used discord once before so bear with! I've just sent you a friend request. We're home for a day or so, we're waiting the inevitable with my Mother-in-Law.

Sholofly commented 7 months ago

I've released a new beta version. That should be sufficient for other countries that don't use oAuth to log in. Unfortunately GB, IE en BE use oAuth and something has changed in the auth. I am on it.

Sholofly commented 7 months ago

yes, can confirm too that it is working in CH with v05.4b0

Can you confirm its still working in 0.5.4b1?

BrauseP commented 7 months ago

yes, can confirm too that it is working in CH with v05.4b0

Can you confirm its still working in 0.5.4b1?

No. v0.5.4b1 don't working in CH

Sholofly commented 7 months ago

Doe you have logs?

Op wo 17 jan 2024 00:41 schreef BrauseP @.***>:

yes, can confirm too that it is working in CH with v05.4b0

Can you confirm its still working in 0.5.4b1?

No. v0.5.4b1 don't working in CH

— Reply to this email directly, view it on GitHub https://github.com/Sholofly/lghorizon/issues/82#issuecomment-1894693472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG4EAG7IUSS2HOWMKGWFFDYO4FZPAVCNFSM6AAAAABBVMXH6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGY4TGNBXGI . You are receiving this because you were mentioned.Message ID: @.***>

BrauseP commented 7 months ago

not from 00:41

home-assistant_lghorizon_2024-01-17T00-17-11.982Z.log

ArkadiuszSilevis commented 7 months ago

v0.5.4b1

Works for me. Thanks!!

marcelkornblum commented 7 months ago

Are you still looking for someone from GB with Virgin to help? I could take a backup and give you direct access to my setup if that'd be useful, or happy to debug with you.

dnwlmz commented 7 months ago

@Sholofly Same as @marcelkornblum; I'm based in the UK, using Virgin Media and I can give you guest access to my setup, if you need the assist :)

KEV-github commented 7 months ago

@Sholofly Hope we can get this working again for our Virgin UK users. Thanks for all your input.

rknight20772 commented 7 months ago

Happy to help with troubleshooting if needed in UK.

Sholofly commented 7 months ago

Although I wouldn't recommend it to anyone, I really need someones account with access to the Virgin Go website to take a shot to solve this usse. its just too complex to do it on a simple log file.

So if someone is so stupid helpful ;) to trust a stranger on the interwebz than please contact me on discord. (Sholofly there too) I really won't share the details with anyone else, obviously.

robertwigley commented 7 months ago

@Sholofly I may be trusting enough. I'll need to check what I am exposing first, but is it just my Virgin login you need?

Sholofly commented 7 months ago

Thanks! I need the login for: https://virgintvgo.virginmedia.com/ Because you're able to control your settop box(es) there.

robertwigley commented 7 months ago

@Sholofly OK. I don't think there is anything critical exposed that would worry me about giving you my login. How's best to securely share this with you?

Sholofly commented 7 months ago

Using a PM on discord? Is that a possibillity?

robertwigley commented 7 months ago

I'm not on discord, but I can get myself setup. :-)

Sholofly commented 7 months ago

If you prefer a different communication channel, it's fine by me too :)

robertwigley commented 7 months ago

Think it should be fine. If I have any problems will let you know. Many thanks.

robertwigley commented 7 months ago

Hopefully done it right. I've sent you a friend request. I assume I need to do this before I can PM you.

dnwlmz commented 7 months ago

Any updates? I'm happy to also give access to my Virgin TV Go account if needed?

Shivy011 commented 7 months ago

Any updates? Happy to help. thanks. Grandma is struggling to watch TV without the automations (first world problem I know!)

jimb0b commented 7 months ago

I've been following this thread as I am also stuck. In the meantime I decided to pursue controlling the 360 box using an IR blaster (Broadlink) by purchasing a one for all remote and learning the commands.

I've got them working locally and was planning on uploading the codes later this week/early next to GitHub - I know this won't replace everything that this component does but it's another option to at least be able to control the device!

davepearson1628 commented 7 months ago

@jimb0b I did try using a Broadlink IR blaster a while back, but could not find a set of codes that worked for all the buttons on the TV360 Remote. I tried recording the buttons myself, with the Broadlink device, but couldn't detect them with it. If you are able to get them all working, that would be fantastic.

jimb0b commented 7 months ago

@davepearson1628 - yeah, the Virgin 360 remote is not actually an IR remote, it uses RF/bluetooth. However it is still possible to control the Virgin 360 box with IR (I used a one for all remote with magic code "1582" and then trained my Broadlink device to understand all the buttons).

I've uploaded the codes here now to https://github.com/jimb0b/broadlink-virgin-360-codes/ - I've added basic instructions but it does assume you're familiar with the CLI/json syntax etc. I'll look to freshen up the readme a bit later and then will post this to the HA community.

Cheers and good luck!

davepearson1628 commented 7 months ago

@jimb0b Sadly those codes don't seem to work on my Broadlink devices, I can see them being transmitted, but nothing happens on the TV360 boxes (tried on both the master and the remote TV360 boxes). Commands sent from the Broadlink iPhone App do work, but all of the code sets I have found for that are incomplete and sending numbers is very hit and miss. Thanks for your efforts, anyway.

I feel like we're hi-jacking this thread, though, so I'll just be patient now and wait for @Sholofly to come up with a solution, which I'm confident he will.

xtruss commented 7 months ago

Same for me, unable to connect to Virgin GB - I have only just installed this. I am happy to share any account login details that Sholofly needs to help him.

KEV-github commented 6 months ago

I know you’re a busy man @Sholofly but Any update on the GB issue. Thank you

marcelkornblum commented 6 months ago

I was thinking of trying to debug / see if I could get a fix in myself (I'm a python coder). I was just wondering if the issue seems to be in something to do with Virgin's oAuth system, or if it's somewhere else - or if we even know yet? Any pointers would be useful but I might have a bit of a poke myself in any case.

robertwigley commented 6 months ago

@marcelkornblum, @Sholofly had a look with my account, but he hasn't been able to make any progress and has told me he doesn't have much time at the moment. From what I can tell it's authorisation related. If going to https://id.virginmedia.com/rest/v40/session/start?protocol=oidc&rememberMe=true it's generating a captcha-required error.