Open smarthome-w opened 4 years ago
I'm trying to do the login, but I'm redirected to a "Not found" page, with the following link:
pi@raspberrypi:~/homeassistant/config/custom_components/wideq $ sudo python3 example.py -c BR -l pt-BR
Log in here:
https://br.m.lgaccount.com/login/sign_in?country=BR&language=pt-BR&svcCode=SVC202&authSvr=oauth2&client_id=LGAO221A02&division=ha&grant_type=password
Then paste the URL where the browser is redirected:
**https://br.m.lgaccount.com/login/iabClose/thirdpartylogin?third_party_type=GGL&front_url=https://br.m.lgaccount.com/login/sign_in?country=BR&language=pt-BR&svcCode=SVC202&authSvr=oauth2&client_id=LGAO221A02&onyx_feature=N&division=ha&show_select_country=N&show_add_services=N&oauthTokenExpiredFlag=N&globalFacebook=false&globalGoogle=false&os_type=PC**
Traceback (most recent call last):
File "example.py", line 296, in <module>
main()
File "example.py", line 292, in main
example(args.country, args.language, args.verbose, args.cmd, args.args)
File "example.py", line 228, in example
client._auth = authenticate(client.gateway)
File "example.py", line 27, in authenticate
return wideq.Auth.from_url(gateway, callback_url)
File "/home/pi/homeassistant/config/custom_components/wideq/wideq/core.py", line 354, in from_url
access_token, refresh_token = parse_oauth_callback(url)
File "/home/pi/homeassistant/config/custom_components/wideq/wideq/core.py", line 244, in parse_oauth_callback
return params['access_token'][0], params['refresh_token'][0]
KeyError: 'access_token'
Hi, some already had SSL errors, such as the DH KEY TOO SMALL (message with debian, but ubuntu should be the same I presume) https://github.com/sampsyo/wideq/issues/104
After command:
I receive link to the login page. After login (empty page, link with redirection in address bar) I've put link into console.
After some time I received:
Platform: Ubuntu 20.04.
Any ideas?