Skip to content
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

Missing Sensor update #8

Open
ranrinc opened this issue May 7, 2021 · 7 comments
Open

Missing Sensor update #8

ranrinc opened this issue May 7, 2021 · 7 comments

Comments

@ranrinc
Copy link

ranrinc commented May 7, 2021

Wondering if you going to implement new method in getting some missing sensor. HeartRate and Sleep since Google API Restfull API is changing on those two sensor. The documentation is in this link https://developers.google.com/fit/improvements

Hope you will have this new changes into your cool plugin

@ranrinc ranrinc changed the title V2 update? Missing Sensor update May 7, 2021
@syphernl
Copy link

ISTM that this integration needs to have additional scopes added to be able to read this data:

I tried to add these to my fork, this seems to be failing because of:

Error: Invalid response 400. Error: invalid_scope
You will need to restart hass after fixing.

Either way I was able to get it to work again using this: https://community.home-assistant.io/t/google-fit-support/4556/182

With the file it generated I can now see my sleep data + heartrate data again in HomeAssistant without any other code changes needed to this integration.

According to that particular thread it is supposedly not possible to use the code authentication with these sensitive scopes.
In another fork of this there is a discussion about how to fix this: vmanuel/hacs-google-fit#13.
The http 400 is also being mentioned/debugged here: vmanuel/hacs-google-fit#15

TLDR: This integration needs some changes for it to work. Using the mentioned HASS Community link you can generate a working .google_fit.token file that makes heartrate and sleep tracking work again.

@sharoltd
Copy link

Hello to all! Did someone solve the problem with HeartRate and Sleep sensors? Is there a working solution?
Thanks!

@cyberjunky
Copy link
Owner

Can you try version 1.0.7?
I added the scopes and it kept working, i have no heart/sleep data to test with.

@syphernl
Copy link

syphernl commented Jun 6, 2022

Can you try version 1.0.7?
I added the scopes and it kept working, i have no heart/sleep data to test with.

Everything shows up fine here 👍🏻

@cyberjunky
Copy link
Owner

@syphernl including sleep and heart rate?
I can't get it to work when i create manual sleep sessions

@syphernl
Copy link

syphernl commented Jun 7, 2022

@syphernl including sleep and heart rate? I can't get it to work when i create manual sleep sessions

Yes, I see both my heartrate and sleep duration as reported to Google Fit via Zepp Life (previously Mi Fit).

@sharoltd
Copy link

sharoltd commented Jun 7, 2022

Try to install it again. Have error:
Error: Invalid response 400. Error: invalid_scope
after reload HA. ((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants