-
Notifications
You must be signed in to change notification settings - Fork 15
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
No longer connecting with a Virgin (GB) box #82
Comments
I'm having the same issues. Posted details here, #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. |
Same issue |
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 **Auth code and Auth state redacted! |
Same here. |
Also happening here, Virgin Media Ireland |
It happened to me, but UPC Poland. |
Same issue with Telenet (BE) |
It happened to me just after an update to 2024.1.1 |
same here for Telenet BE |
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. |
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. |
For CH is a beta version available.v0.5.4b0 |
@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. |
I could test it, I am based in Switzerland. how can I get the beta in order to give feedback? |
@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. |
Works in CH |
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. |
yes, can confirm too that it is working in CH with v05.4b0 |
I thought I would try v0.5.4b0 on the off chance it also fixed it for Virgin Media in the UK. Unfortunately not. |
@Sholofly Looks like VM (GB) may have moved MQTT servers? |
@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. |
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. |
Can you confirm its still working in 0.5.4b1? |
No. v0.5.4b1 don't working in CH |
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
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG4EAG7IUSS2HOWMKGWFFDYO4FZPAVCNFSM6AAAAABBVMXH6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGY4TGNBXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
not from 00:41 |
Works for me. Thanks!! |
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. |
Updated the component. @ColinRobbins a massive Thank You! Please let me know if this fixes it for all the GB users! |
Thanks @Sholofly @ColinRobbins. I will give this a try at some point over the next few days. |
Is there anything in your log files? At a first guess, I suspect this is the same issue as... |
Please also be aware, you can only use the refresh token once. I dont think that is the error here, as it should say "authentication failure" if that happens. |
Just to report that I reinstalled everything this morning and I've got control back. It's amazing after all this time. Thankyou so much to everyone who contributed! |
Thank you, yes it was my fault and the token was to short. I have done it again and it works. Sorry for the false info, and once again thank you to all that have made this work, |
That’s great news. A shout out to @caraar12345 as it was his research on the refresh token that set us on the path to a solution. |
Just one question, do we download from the original repository or from Colin's forked repository? |
This repo |
Why is it always me.... I can't get it to work. I been through the process a few times this morning but I'm stuck with the spinning wheel. I have installed the new version and restarted HA, logged out of ALL instances I can find of VirginMedia, TVGo and email and when I go the TVGo page I'm asked to login on that platform. I found using Firefox with the JWT extension much easier than Chrome and the extension, so I'm getting this from Firefox. The key I get has not changed since yesterday despite me logging in and out several times of the app on my laptop and the web page. manifest.json is reporting The error in the logs;
So with the fact that the key hasn't changed since yesterday and this comment makes me think that I'm not logging out somewhere perhaps?
Any suggestions? |
I think the "Invalid Token" messsage means the token is correctly formatted, but has been previously used, so rejected. If using Firefox I suggest trying to login to Virgin from a "New Private Window", which should force a new token to be generated. |
This repo - best to use HACS and you'll get correct version. |
Happy to close this issue. Thanks again for everybody who contributed to the solution but @ColinRobbins in particular! |
Hmm, interesting..... If I use Firefox I get the same token as I did yesterday evening whether normal or private browsing. In Chrome in both normal and incognito browsing I get
and I never get anything in the dialog box? I even tried Edge with the same result. Time for a coffee and a head scratch |
Well done to everyone. |
I would like to add my thanks to Colin and Rudolf. I only found this
integration this week after upgrading the V6 to 360. Thanks for your magic
work.
Regards.
Mark.
…On Sat, 12 Oct 2024 at 16:14, Kevin Henry VIII ***@***.***> wrote:
Well done to everyone.
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXMPWMU3XD4NW6J5C4EIA73Z3E4EDAVCNFSM6AAAAABBVMXH6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGU4TOMZSHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks to everyone that worked on this, now I can replace my not 100% reliable BroadLink IR transmitters (although I will keep them to hand for the next time Virgin make a change 😁 ).
Regards,
Dave.
…Sent from my iPad
On 12 Oct 2024, at 15:27, Rudolf Offereins ***@***.***> wrote:
Happy to close this issue. Thanks again for everybody who contributed to the solution but @ColinRobbins in particular!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Big thank you to everyone who's managed to get this working, let's hope VirginMedia don't change anything!?!?! My issue I believe was user incompetency! I restarted laptop, turned off Tailscale, fired up Firefox, logged into VirginTVGo and got a different token. Fired up the Integration and success. Let's see if I disabled those old scripts and automations or did I delete them.... |
Hi all, thanks for sharing and updating, much appreciated. |
Do you see an error in the log? |
@Shivy011 I was having this yesterday morning. For me to get it going, I restarted laptop, stopped Tailscale and used Firefox Private window, then following @ColinRobbins guide above, login to VirginMediaTVGo then in the JWT extension make sure that you select "flutter WEB Storage..." and copy the WHOLE token. I'm suspecting that I didn't copy the whole key, but now everything is working for me, at least until ViginMedia change things again.... |
@Sholofly / @ColinRobbins after I updated to 0.62 my integration won't start and seems like it needs a new token. Is there an easy way to update the token or do I need to remove and re-add? Is this expected? |
This just happened to me too. Wierd, it did not happen in my dev environment, but is happening in live. Sadly, you have to delete and re-add. Not as bad as it seems and the entities will have the same id’s, so cards and automations will still work. We could modify the config to make this easier with a “re-configure” config_flow, a bit of a work around rather than a fix. My guess is something is causing the token to expire, so the initial refresh token is used, but we are not trapping the event and storing the new refresh token generated. |
I left mine running with debug logs all night, and today.
When the box has been switched off, and then turns on, it gets a 401-Unauthorise error. from the API It reconnects using the refresh token, and this generates a new refresh token - but we are not catching the new token, and updating the config. @Sholofly - I didn't spot this before, as the "raise" call, does not produce any log info.
Not quite sure why Its fixable, but not quite sure how yet. Not got time now, hopefully by the weekend. |
Thank you, Colin.
Really appreciate it.
Regards.
Mark.
…On Mon, 14 Oct 2024 at 16:46, Colin Robbins ***@***.***> wrote:
I left mine running with debug logs all night, and today.
I can see the problem.
When an API call fails, the code calls re-connect. This generates a new
refresh token - but we are not catching it, and updating the config.
Its fixable, but not quite sure how yet.
Not got time now, hopefully by the weekend.
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXMPWMW3YLHVAHVBNTWFZGLZ3PRN5AVCNFSM6AAAAABBVMXH6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJRGY2DCNZSGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Continuing this restart discussion via #136 as this thread is closed. |
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.
The text was updated successfully, but these errors were encountered: