-
Notifications
You must be signed in to change notification settings - Fork 20
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
'invalid_client' on restart #26
Comments
The same issue. Updated HA to 5.2022 version from 4.2021 and integration stopped working |
Something completely wrong with authorization. Old token file gives 401 error. New file can't be created, because authorization procedure doesn't start. Standalone authorisation python script from community doesn't accept the code returned by Google. |
Did some investigation about the problem. |
Any movement on this one, still nothing for 2022.6.5. Integration installs ok but sign in fails with the same 401 error for me. |
I confirm that neither "Desktop" nor "TV and Limited Input" credential type does not wok. |
Can you try if downgrading to 1.0.5 helps? That uses older (very old) oauth2 and google api's package. |
So now, with "TV and Limited Input", I have:
This is related to changes Google made to API: |
Best method for dealing with "invalid_scope" is: |
Getting token file is ok, but error while decoding to utf8: Script saves token in strange format, which is not exactly a bytestring. |
I did some testing today. |
Are there any updates you can provide on this issue? I recently came across your integration and am excited to get it set up, but am facing the same issue listed in this thread. I have tried changing my time zone but no luck so far. Thanks! |
I managed to fix invalid scope error with deleting heart_rate and sleep scopes from sensor.py. After that I just changed time zone and token was received. |
Thanks. It worked out. |
Dang. I was really hoping this would work. I made the change. Set my timezone to GMT no daylight savings and rebooted. Same problem as before. |
This plugin is currently broken on all new installs, but removing those 2 scopes and temp-timezone seams to work.. Are those two scopes really needed? Or is removing them a temporary fix that just waits to break because google deprecates something? |
I've tried auth with a Web client ID and a Desktop client ID. I've removed the two scopes, changed my time zone and rebooted multiple times. No luck here. |
The two scopes are valid scopes and have same auth requirements as the others, so not sure what the issue is yet... |
can we revert the breaking changes or is this plugin dead? |
I haven't found a version that this works with and it doesn't seem like anyone wants to try and fix this either which is a shame! |
Install visual studio add-on, open it, open file 'config/custom_components/google_fit/sensor.py' remove the lines above, restart HA, and you know it... if you can edit yaml file, you can do this too, it's no rocketscience you know.. |
I have the same issue. And i did delete the 2 lines at the scopes in the sensor.py file but it still has the same error... is there an other solution? |
I already have a couple of other Google integrations (Calendar and TTS). I added the Fitness API to my Home Assistant project on the Cloud Console. When I restart Home Assistant this is the error I get in notifications.
The text was updated successfully, but these errors were encountered: