Comments (7)
ISTM that this integration needs to have additional scopes added to be able to read this data:
- https://www.googleapis.com/auth/fitness.sleep.read
- https://www.googleapis.com/auth/fitness.heart_rate.read
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.
from home-assistant-google_fit.
Hello to all! Did someone solve the problem with HeartRate and Sleep sensors? Is there a working solution?
Thanks!
from home-assistant-google_fit.
Can you try version 1.0.7?
I added the scopes and it kept working, i have no heart/sleep data to test with.
from home-assistant-google_fit.
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 👍🏻
from home-assistant-google_fit.
@syphernl including sleep and heart rate?
I can't get it to work when i create manual sleep sessions
from home-assistant-google_fit.
@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).
from home-assistant-google_fit.
Try to install it again. Have error:
Error: Invalid response 400. Error: invalid_scope
after reload HA. ((
from home-assistant-google_fit.
Related Issues (20)
- Error 400: invalid_request
- googleapiclient.errors.UnknownApiNameOrVersion: name: fitness version: v1 HOT 3
- Heart rate sensor unknown HOT 4
- Heart Sensor / Sleep Sensor HOT 18
- Authentication code expired, please restart Home-Assistant and try again HOT 4
- 'invalid_client' on restart HOT 21
- Instructions not working - Sensor key not provided HOT 3
- Long-term statistics for weight sensor
- google_fit: Error on device update!
- Any way to update data on Google Fit?
- AttributeError: 'NoneType' object has no attribute 'authorize' HOT 1
- Error 401: client_id and client_secret could not be retrieved HOT 1
- Problems defining the configuratin
- How to solve invalid response HOT 9
- Stop Working
- Error 400 HOT 3
- Error 401 HOT 2
- ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2578) HOT 17
- Error adding entities for domain sensor with platform google_fit && google_fit: Error on device update!
- Incompatibility after HA Core 2025.1
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 home-assistant-google_fit.