Comments (55)
This is fairly significant:
2023-08-17 12:35:51.791 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-08-17 12:35:51.791 INFO (SyncWorker_11) [lghorizon.lghorizon_api] Executing API call to https://prod.oesp.virginmedia.com/oesp/v4/GB/eng/web/tokens/jwt
2023-08-17 12:35:51.886 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-08-17 12:35:52.132 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-08-17 12:35:52.363 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 3 - Login
2023-08-17 12:35:52.516 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 4 - Follow redirect
2023-08-17 12:35:52.600 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 5 - Extract auth code
2023-08-17 12:35:52.600 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Auth code: __REMOVED__, Auth state: __ALSO_REMOVED__
2023-08-17 12:35:52.600 DEBUG (SyncWorker_11) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code
2023-08-17 12:35:53.434 INFO (SyncWorker_11) [lghorizon.lghorizon_api] Backing off _do_api_call(...) for 0.9s (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://prod.oesp.virginmedia.com/oesp/v4/GB/eng/web/tokens/jwt. Error:410 Client Error: Gone for url: https://prod.oesp.virginmedia.com/oesp/v4/GB/eng/web/tokens/jwt)
That "410 Gone" response to the call to https://prod.oesp.virginmedia.com/oesp/v4/GB/eng/web/tokens/jwt implies that the authentication flow has changed, somewhat.
from lghorizon.
Published a fix for this to the python library just need @Sholofly to do the necessary checks and processes to update the library version and reference it in this component.
from lghorizon.
Updated and logged back in today and its working perfectly on VM-UK with 2x Horizon boxes. Great work sholofly!
I had deleted the integration and reinstalled it after the update was available, when you login remember to select the correct originating company from the first drop down menu!
Im using HA 2023.10.3 with OS11 and the recent update to LG Horizon :)
from lghorizon.
I'm seeing the same after a few reboots. Will have a further dig into it as my original fix clearly doesn't fully resolve the issue.
from lghorizon.
Same issue for me, since a couple of days i can not connect anymore to the ziggo box anymore.
Did you update to 0.5.9? See #100 for possible solutions
Ok that did the trick, thank you.
I already deleted the hacs integration and download it again, but that was version 0.58 again.
Now i am on 0.59 and everything is working again.
from lghorizon.
Thanks for the great work.
Reloading the 0.5.9 did the job.
Keep up the good work!!
from lghorizon.
Same
from lghorizon.
I have the same issue :(
from lghorizon.
Do the logs give any information?
from lghorizon.
Do the logs give any information?
Can't even register my device. I did a fresh install of Homeassistant and since then, its impossible to get the LG Horizon app to work. I put in my username and password, but it never connects. Would there be logs saved somewhere still?
from lghorizon.
Same, when I put my details in. It's just keeps spinning.
from lghorizon.
Can you enable logging?
logger:
default: warning #or whatever your default logging was ;)
logs:
lghorizon: debug
from lghorizon.
2023-05-13 22:05:00.825 DEBUG (SyncWorker_4) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code
2023-05-13 22:05:01.623 ERROR (SyncWorker_4) [lghorizon.lghorizon_api] Giving up _do_api_call(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Unable to call https://prod.spark.virginmedia.com/eng/web/recording-service/customers/(HIDDEN)_gb/quota. Error:501 Server Error: Not Implemented for url: https://prod.spark.virginmedia.com/eng/web/recording-service/customers/(HIDDEN)_gb/quota)
2023-05-13 22:05:01.625 ERROR (SyncWorker_4) [lghorizon.lghorizon_api] Unable to fetch recording capacity...
This is the last part of the log when it fails
from lghorizon.
Same issue here as well, any ideas on a fix?
from lghorizon.
Can you enable logging?
logger: default: warning #or whatever your default logging was ;) logs: lghorizon: debug
Hello, hope you are well? Any chance you've been able to look at this? I still cannot log into Virign GB. If you need any data let me know and I'll try to provide. Thank you!
from lghorizon.
Hi, anything happening with this integration problem for Virgin Media GB? Just want to know if it's best to look for an alternative or if it is still actively being worked on?
from lghorizon.
Hi @BettySwallocks At the moment I'm not able to test with a Virgin Account. Just for the fact I don't have one to test with. Even if someone is wiling t share credentials I need a VPN to spoof my location.
from lghorizon.
If you can provide guidance I'm willing to test, capture what I can & send?
from lghorizon.
If it helps as a start point - I configure the LG Horizon integration via the GUI using confirmed user and password like the first attached.
The wheel spins for around 10-15 minutes before I then see the screen result on the second attached.
I have looked in the system logs and find these lines which I believe are related:
2023-07-14 10:47:45.758 ERROR (SyncWorker_8) [lghorizon.lghorizon_api] Giving up connect(...) after 11 tries (AttributeError: 'LGHorizonAuth' object has no attribute 'accessToken')
2023-07-14 10:47:45.798 ERROR (MainThread) [custom_components.lghorizon.config_flow] 'LGHorizonAuth' object has no attribute 'accessToken'
Feels like Virgin Media have implemented a new access token in their API or changed the base auth type in some way?
from lghorizon.
A bit more after putting Debug on the HA Logger for lg_horizon:
2023-07-14 12:03:03.509 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-07-14 12:03:03.731 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-07-14 12:03:03.986 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-07-14 12:03:04.049 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-07-14 12:03:04.050 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 256.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'accessToken')
That block repeats every three minutes or so, about 10 or 11 times.
from lghorizon.
I guess you can add me to the list. I'm in the UK and had to have my 360 box replaced. The integration found the new box but still showed the old one. I decided to delete the integration and start again. Now, as others, it "Can't connect" after trying for 10 minutes or so.
In the logs I get AttributeError: 'LGHorizonAuth' object has no attribute 'accessToken' so I'm gussing something has changed at the Virgin media end?
from lghorizon.
Seeing the same here
2023-10-05 09:14:31.847 DEBUG (SyncWorker_18) [lghorizon.lghorizon_api] Connect to API 2023-10-05 09:14:31.848 DEBUG (SyncWorker_18) [lghorizon.lghorizon_api] Step 1 - Get Authorization data 2023-10-05 09:14:32.124 DEBUG (SyncWorker_18) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie 2023-10-05 09:14:32.337 DEBUG (SyncWorker_18) [lghorizon.lghorizon_api] Step 3 - Login 2023-10-05 09:14:32.485 DEBUG (SyncWorker_18) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token... 2023-10-05 09:14:32.486 INFO (SyncWorker_18) [lghorizon.lghorizon_api] Backing off connect(...) for 8.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'accessToken')
from lghorizon.
Updated. Please install latest version and check if it is working for you guys!
from lghorizon.
still getting unknown error when trying my credentials :(
from lghorizon.
I'm still getting the spinning circle as described by BettySwallocks on July 14th. I'm using version 0.5.1. Is there a beta version that I should try instead?
from lghorizon.
Removed the old version, restarted, sorted a few other things, restarted again, removed integration from HACS, restarted one more time, installed it in HACS, restarted again, went to add integration to HA and...
2023-10-17 16:40:14.413 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Connect to API
2023-10-17 16:40:14.414 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-17 16:40:14.697 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-17 16:40:14.979 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-17 16:40:15.148 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 4 - Follow redirect
2023-10-17 16:40:15.245 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 5 - Extract auth code
2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Auth code: gMKr0Y, Auth state: 12f9672c-f294-4dee-b174-3071781e9f3f
2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code
2023-10-17 16:40:15.899 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-17 16:40:15.899 INFO (SyncWorker_5) [lghorizon.lghorizon_api] Backing off connect(...) for 8.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
Repeat until the integration page throws "Unknown error occurred".
from lghorizon.
Removed the old version, restarted, sorted a few other things, restarted again, removed integration from HACS, restarted one more time, installed it in HACS, restarted again, went to add integration to HA and...
2023-10-17 16:40:14.413 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Connect to API 2023-10-17 16:40:14.414 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 1 - Get Authorization data 2023-10-17 16:40:14.697 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie 2023-10-17 16:40:14.979 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 3 - Login 2023-10-17 16:40:15.148 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 4 - Follow redirect 2023-10-17 16:40:15.245 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 5 - Extract auth code 2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Auth code: gMKr0Y, Auth state: 12f9672c-f294-4dee-b174-3071781e9f3f 2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code 2023-10-17 16:40:15.899 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token... 2023-10-17 16:40:15.899 INFO (SyncWorker_5) [lghorizon.lghorizon_api] Backing off connect(...) for 8.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
Repeat until the integration page throws "Unknown error occurred".
Ah. Now I think I know why; my VM boxes are V6, not 360. And they don't have the 360 OS on them.
from lghorizon.
Removed the old version, restarted, sorted a few other things, restarted again, removed integration from HACS, restarted one more time, installed it in HACS, restarted again, went to add integration to HA and...
2023-10-17 16:40:14.413 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Connect to API 2023-10-17 16:40:14.414 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 1 - Get Authorization data 2023-10-17 16:40:14.697 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie 2023-10-17 16:40:14.979 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 3 - Login 2023-10-17 16:40:15.148 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 4 - Follow redirect 2023-10-17 16:40:15.245 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 5 - Extract auth code 2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Auth code: gMKr0Y, Auth state: 12f9672c-f294-4dee-b174-3071781e9f3f 2023-10-17 16:40:15.246 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Step 6 - Post auth data with valid code 2023-10-17 16:40:15.899 DEBUG (SyncWorker_5) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token... 2023-10-17 16:40:15.899 INFO (SyncWorker_5) [lghorizon.lghorizon_api] Backing off connect(...) for 8.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
Repeat until the integration page throws "Unknown error occurred".
Ah. Now I think I know why; my VM boxes are V6, not 360. And they don't have the 360 OS on them.
Good shout, my VM box is a Stream box
i get
Logger: lghorizon.lghorizon_api
Source: /usr/local/lib/python3.11/site-packages/backoff/_common.py:120
First occurred: 5:38:59 PM (23 occurrences)
Last logged: 5:53:02 PM
Giving up _authorize(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Account locked)
Giving up _authorize(...) after 3 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Internal server error)
Giving up connect(...) after 11 tries (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
Giving up connect(...) after 11 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Account locked)
Giving up connect(...) after 11 tries (lghorizon.exceptions.LGHorizonApiConnectionError: Internal server error)
from lghorizon.
I tried it again with debug switched on after deleting the integration, downloading 0.51 again, restarting HA, and configuring the integration again.
Using Virgin Media (GB) as the provider with verified working username and password. I logged in to Virgin TV Go App to verify the credentials.
Home Assistant details are:
Home Assistant 2023.10.3
Supervisor 2023.10.0
Operating System 11.0
Frontend 20231005.0 - latest
Virgin Media 360 Box details are:
Application version: 63_2023061
Build Version: 5.03
Software Version: EOS1008C-MON-PRD-02.02-166-!J-AL-20230614210000-NA001
Hardware Version: HUMAX-EOS1008R-V001
The debug logs show the following:
2023-10-18 08:18:10.812 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:10.812 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:11.028 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:11.297 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:11.363 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:11.364 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 1.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:18:12.364 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:12.365 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:12.543 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:12.779 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:13.125 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:13.125 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 2.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:18:15.125 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:15.126 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:15.330 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:15.579 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:15.645 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:15.646 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 4.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:18:19.650 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:19.651 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:19.841 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:20.160 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:20.253 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:20.254 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 8.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:18:28.255 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:28.256 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:28.459 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:29.124 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:29.301 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:29.302 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 16.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:18:45.302 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:18:45.303 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:18:45.517 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:18:45.794 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:18:45.862 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:18:45.862 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 32.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:19:17.863 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:19:17.863 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:19:18.108 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:19:18.359 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:19:18.423 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:19:18.424 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 64.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:20:22.424 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:20:22.425 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:20:22.662 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:20:22.900 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:20:22.960 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:20:22.961 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 128.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:22:30.961 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:22:30.962 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:22:31.178 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:22:31.411 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:22:31.471 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:22:31.471 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 256.0s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:26:47.472 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:26:47.472 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:26:47.702 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:26:47.948 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:26:48.021 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:26:48.021 INFO (SyncWorker_23) [lghorizon.lghorizon_api] Backing off connect(...) for 83.3s (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:28:11.362 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Connect to API
2023-10-18 08:28:11.362 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 1 - Get Authorization data
2023-10-18 08:28:11.596 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 2 - Get Authorization cookie
2023-10-18 08:28:13.890 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Step 3 - Login
2023-10-18 08:28:13.955 DEBUG (SyncWorker_23) [lghorizon.lghorizon_api] Obtain Virgin GB mqtt token...
2023-10-18 08:28:13.955 ERROR (SyncWorker_23) [lghorizon.lghorizon_api] Giving up connect(...) after 11 tries (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
2023-10-18 08:28:13.958 ERROR (MainThread) [custom_components.lghorizon.config_flow] 'LGHorizonAuth' object has no attribute 'username'
from lghorizon.
Thanks, happy to test your next fix when you've had a dig.
from lghorizon.
from lghorizon.
TV360 one main box one mini box.
from lghorizon.
Oh, that's exactly the same box as in NL. I suspect something has changed on the Virgin side of the API.
Can one of you guys check in the online environment what API calls are done when connection to that environment.
I'm looking for the call that obtains a token...
from lghorizon.
Are these the calls that you are after?
Request URL:
https://spark-prod-gb.gnp.cloud.virgintvgo.virginmedia.com/auth-service/v1/sso/authorization?code_challenge=XXXX
Request Method:
OPTIONS
Status Code:
200 OK
Remote Address:
2.18.63.45:443
Referrer Policy:
strict-origin-when-cross-origin
Access-Control-Allow-Credentials:
true
Access-Control-Allow-Headers:
Accept-Charset,Accept-Encoding,Access-Control-Request-Headers,Access-Control-Request-Method,Authorization,Cache-Control,Connection, Content-Encoding,Content-Length,Content-Type,Cookie,DNT,Date,Host,If-Modified-Since,Keep-Alive,Location,Origin,Referer,Server, TokenIssueTime,Transfer-Encoding,User-Agent,UserRole,Vary,X-Client-Id,X-CustomHeader,X-Device-Code,X-HTTP-Method-Override, X-Language-Code,X-Requested-With,X-Viewer-Id,deviceName,nv-authorizations,password,username,x-api-key,x-cus,x-dev,x-drm-device-id, x-drm-schemeId,x-entitlements-token,x-go-dev,x-guest-token,x-oesp-profile-id,x-oesp-token,x-oesp-username,x-profile,x-profile-id, x-ratelimit-app,x-refresh-token,x-request-id,x-session-id,x-streaming-token,x-streaming-token-refresh-interval,x-tracking-id,x-ui-language,x-username
Access-Control-Allow-Methods:
GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin:
https://virgintvgo.virginmedia.com
Access-Control-Max-Age:
604800
Cache-Control:
max-age=0, no-cache, no-store
Content-Length:
1
Content-Type:
text/html
Date:
Thu, 26 Oct 2023 07:30:03 GMT
Expires:
Thu, 26 Oct 2023 07:30:03 GMT
Pragma:
no-cache
X-Lgi-Target:
options-request
:authority:
spark-prod-gb.gnp.cloud.virgintvgo.virginmedia.com
:method:
OPTIONS
:path:
/auth-service/v1/sso/authorization?code_challenge=XXXX
:scheme:
https
Accept:
/
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-GB,en;q=0.9,en-US;q=0.8
Access-Control-Request-Headers:
x-device-code,x-go-dev,x-profile
Access-Control-Request-Method:
GET
Origin:
https://virgintvgo.virginmedia.com
Referer:
https://virgintvgo.virginmedia.com/
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-site
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.61
Request URL:
https://spark-prod-gb.gnp.cloud.virgintvgo.virginmedia.com/auth-service/v1/sso/authorization?code_challenge=XXXX
Request Method:
GET
Status Code:
200 OK
Remote Address:
2.18.63.45:443
Referrer Policy:
strict-origin-when-cross-origin
Access-Control-Allow-Credentials:
true
Access-Control-Allow-Headers:
Accept-Charset, Accept-Encoding, Access-Control-Request-Headers, Access-Control-Request-Method, Authorization, Cache-Control, Connection, Content-Encoding, Content-Type, Content-Length, Cookie, DNT, Date, Host, If-Modified-Since, Keep-Alive, Origin, Referer, Server, TokenIssueTime, Transfer-Encoding, User-Agent, Vary, X-CustomHeader, X-Requested-With, password, username, x-request-id, x-ratelimit-app, x-guest-token, X-HTTP-Method-Override, x-oesp-username, x-oesp-token, x-cus, x-dev, X-Client-Id, X-Device-Code, X-Language-Code, UserRole, x-session-id, x-entitlements-token, x-go-dev, x-profile, x-api-key, nv-authorizations, X-Viewer-Id, x-oesp-profile-id, x-streaming-token, x-streaming-token-refresh-interval, x-drm-device-id, x-profile-id, x-ui-language, deviceName, x-drm-schemeId, x-refresh-token, X-Username, Location, x-tracking-id
Access-Control-Allow-Methods:
GET, POST, PUT, OPTIONS, DELETE, HEAD, PATCH
Access-Control-Allow-Origin:
https://virgintvgo.virginmedia.com
Access-Control-Expose-Headers:
x-streaming-token, x-streaming-token-refresh-interval, x-drm-device-id, x-profile-id, x-ui-language, deviceName, x-drm-schemeId, nv-qm-signature, nv-qm-version, x-refresh-token, Location
Access-Control-Max-Age:
1728000
Content-Encoding:
gzip
Content-Length:
636
Content-Type:
application/json
Date:
Thu, 26 Oct 2023 07:30:03 GMT
Vary:
Accept-Encoding
X-Content-Type-Options:
nosniff
X-Edgeconnect-Midmile-Rtt:
0
X-Edgeconnect-Origin-Mex-Latency:
16
X-Lgi-Target:
ecx
X-Request-Id:
241ad0b33d6b1f0d8cae76bdcc2a7256
:authority:
spark-prod-gb.gnp.cloud.virgintvgo.virginmedia.com
:method:
GET
:path:
/auth-service/v1/sso/authorization?code_challenge=XXXX
:scheme:
https
Accept:
/
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-GB,en;q=0.9,en-US;q=0.8
Cookie:
hp-v3=type%253Dnon-customer%XXXXv%XXXXX%XXXXgroup%XXXXdefault%XXXX; LPVID=XXXX; OptanonAlertBoxClosed=2023-05-31T12:19:58.665Z; rxVisitor=XXXX; optimizelyEndUserId=oeuXXXX.XXXX; _ga=GA1.1.1994501861.1695711019; _gcl_au=1.1.152564624.1695711129; source=seo; utag_main=v_id:XXXX$_sn:28$_se:2$_ss:0$_st:1696606470795$ses_id:1696604565643%3Bexp-session$_pn:2%3Bexp-session; OptanonConsent=isGpcEnabled=0&datestamp=Tue+Oct+17+2023+16%3A38%3A36+GMT%2B0100+(British+Summer+Time)&version=6.37.0&isIABGlobal=false&hosts=&consentId=a3754c45-1902-414e-bf46-33f5e1bf6a6b&interactionCount=1&landingPath=NotLandingPage&groups=XXXX&geolocation=GB%3BENG&AwaitingReconsent=false; _ga_7NQRHWTHK9=GS1.1.1698253128.13.1.1698253229.37.0.0; dtCookie=v_4_srv_1_sn_XXXX_perc_100000_ol_0_mul_1_app-3A2c673a8fcdb9beeb_1; TS01e9567a=XXXX; ACCESSTOKEN=XXXX
Dnt:
1
Origin:
https://virgintvgo.virginmedia.com
Referer:
https://virgintvgo.virginmedia.com/
Sec-Ch-Ua:
"Chromium";v="118", "Microsoft Edge";v="118", "Not=A?Brand";v="99"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Windows"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-site
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.61
X-Device-Code:
web
X-Go-Dev:
902092f0-dec1-424e-859e-1d04367c2d33
X-Profile:
anonymous
from lghorizon.
I have a Virgin 360 box and same issue when using creds for Virgin GB, updated to the latest but still no success, so watching this thread for a solution π
from lghorizon.
I'm not able to fix this, since i don't have credentials. And even if i had, i'm not sure I can.
from lghorizon.
OMG! My Virgin Stream box works again Thank you @Sholofly
from lghorizon.
Still the same for me, even with the recent update
from lghorizon.
Still the same for me, even with the recent update
Strange. I saw the update, so ran it, then tried to log in and it all went through fine.
from lghorizon.
from lghorizon.
Virgin GB, Virgin IE or Ziggo? I tried all x3
β¦
On Sat, Dec 9, 2023, 13:57 Andy @.> wrote: Still the same for me, even with the recent update Strange. I saw the update, so ran it, then tried to log in and it all went through fine. β Reply to this email directly, view it on GitHub <#62 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKKKZAPTYEGCECUJTQ6SUTYIRU6HAVCNFSM6AAAAAAXTCJ2FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYGQYTONRQGM . You are receiving this because you are subscribed to this thread.Message ID: @.>
Virgin GB. I'm using their Stream Box
from lghorizon.
from lghorizon.
It's now also working for me with the latest version on a Virgin GB 360 box
from lghorizon.
Glad it's sorted and hopefully it's my setup that's wrong, I will investigate π
from lghorizon.
Got somewhere with this but having issues with getting the MQTT token think it's cookies related. It appears Virgin 360 boxes in the UK follow the authorize_default flow as far as I can tell. I can auth and get an access token but can't seem to get the MqttToken in python despite managing to in browser from the same URL.
from lghorizon.
All was working fine until this morning when I noticed an issue with my madia player(s). The integration was saying failed to initialise so I tried a reload and after an absolute age the same error. When I had a quick look at the logs I saw an "unknown attribute username" or similar error. I tried to reload again but same, so I restarted HA and got the same type of error. No I didn't make a detailed note of the error, sorry!?
So I've now deleted the device but I cannot add it back in. It takes a good few minutes before I get an error on the dialog box either saying can't connect or unknown error. After adding "debug" to logger I get the following:
Logger: lghorizon.lghorizon_api
Source: /usr/local/lib/python3.11/site-packages/backoff/_common.py:120
First occurred: 12:00:12 (1 occurrences)
Last logged: 12:00:12
Giving up connect(...) after 11 tries (AttributeError: 'LGHorizonAuth' object has no attribute 'username')
This error originated from a custom integration.
Logger: custom_components.lghorizon.config_flow
Source: custom_components/lghorizon/config_flow.py:58
Integration: LG Horizon (documentation, issues)
First occurred: 12:00:12 (1 occurrences)
Last logged: 12:00:12
'LGHorizonAuth' object has no attribute 'username'
This is on a VirginMedia GB TV360 box. username and password confirmed as being correct, HA and Virgin box restarted several times. Virgin box works fine with remote and with the app.
from lghorizon.
Just add me to the list. Having the same problem with my ziggo next. Not initializing anymore and 'unknow error' when trying to reinstall.
from lghorizon.
Confirmed, Im having the same issue as well for Virgin Media UK. Worked fine for weeks but just times out now, removed and re-added but just times out with "Cant Connect" and "Unknown error occurred"... which isn't very helpful.
from lghorizon.
Same issue for me, since a couple of days i can not connect anymore to the ziggo box anymore.
from lghorizon.
Same issue for me, since a couple of days i can not connect anymore to the ziggo box anymore.
Did you update to 0.5.9? See #100 for possible solutions
from lghorizon.
unable to get this working with vm 360 uk, on version 0.5.9 has anyone else got this working latley
from lghorizon.
from lghorizon.
why they make these things difficult is beyond me, integration should be a selling point for any manufacturer or services oh well IR it will need to be
from lghorizon.
Hi guys, I can't find a way to get it to work yet. But as stated before, I'm lacking time to investigate it very deep. I'm sorry for that.
I've tried to contact Ziggo, Vodafone and liberty global to get more documentation about this. Unfortunately without any luck...
from lghorizon.
Same problem here (ziggo Client). Did a complete fresh installation (version 0.5.9). The integration however does not proceed past the ' login detail screen'. Wheel keeps turning for about 15 minutes and then a red line "can't connect" pops up on top of the popup screen.
I phoned Ziggo and they removed my two step login procedure but without any luck. So this is not the problem. I can login with the same credentials to 'my ziggo'.
from lghorizon.
Related Issues (20)
- Update to HA core 2024.2.0 crashes LG-Horizon and HA HOT 25
- Intergration fails to initalize HOT 14
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Can't login anymore HOT 7
- LG Horizon unavailable again and breaking HA as last time HOT 2
- LGhorizon intergration is running Command not send HOT 3
- LH Horizon integration not working HOT 2
- Giving up connect / KeyError: 'refreshToken HOT 24
- MediaFastForeward not working? HOT 1
- Send letter keys not only numbers
- Reduce time out when integration fails HOT 1
- SSL certificate expired HOT 10
- Fail to setup HOT 5
- Correct channel names for voice assistants HOT 5
- Virgin Stream Box HOT 3
- Deprication for lghorizon in HA version 2025.5 HOT 1
- No more connection to ziggo next mini HOT 3
- Support for BASE TV-Box HOT 3
- Network unreachable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lghorizon.