Thanks to your proposal @rafspeik I am able to progress : the python3 script_google_fit.py was able to be run, and after been on my raspberry so as to execute the routine in local, it opens automatically the browser, but unfortunatly this is what appears
Do you know what could be wronf, and need to be corrected ?
Everything before have been done from my PC
I have the same problem. Did you manage to solve it?
This project and the instructions in the README worked perfectly for me.
Thank you very much @rafspeik for you link.
It enables me to generate the .google_fit.token
after a sudo python get_credentials.py
But the last problem is that after puting this .google_fit.token
on the homeassistant directory, and restarting HA, I don’t seen any sensor.google_xxx
Do you know what is the last step I have missed ?
I don’t know if it is linked, i just have this message after the sudo python script
[15255:15255:0723/001341.057368:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
and if I don’t put sudo, it is unable to generate the token
Traceback (most recent call last):
File "get_credentialsb.py", line 27, in <module>
main()
File "get_credentialsb.py", line 21, in main
with open('.google_fit.token', 'wb') as token:
IOError: [Errno 13] Permission denied: '.google_fit.token'
What’s the easiest way to convert centimeters to inches? Anyone?
With a Template Sensor, it’s easy to convert given values into others if the unit of measurement doesn’t fit your needs.
Hi,
I have tried the instructions in the README but when I execute “python get_credentials.py” nothing happens
any advice ?
Thank you!
If anyone is still having scope/authentication issues I’ve just created a new Google Fit integration that uses the UI completely for authentication + configuration and utilises the same approach as the Google Calendar core integration by leaning on the built in Home Assistant OAuth2 config flow that is used for configuring the likes of Spotify:
If you want to try it out it’s here: GitHub - YorkshireIoT/ha-google-fit: Home Assistant Google Fit Custom Component
Dude, you’re epic! Works like a friggin charm!!!
Hey kevjs, I realize this post is like 5 years old, but have you found a solution to pushing weight to Google Fit?
I know it’s being deprecated by 12/2024 but still would be useful…
I am using following integration and it pushes weight to HA from GFit
Ah yes! I have that integration too. But I would like to do it the other way round:
The Miscale measures the weight so HA has it. But I would like to send that to GFit so I don’t have to do it manually.
@kgroshert I ended up writing a service that I spin up in a container which exposes an API that syncs my weight and body fat to Fitbit. It also supports multiple users. You could use that to send data to fitbit which in turn can sync to google fit via Health Connect
just a heads up the companion app has begun integrating Health Connect sensors in the app beta
First of all, thank you for integrating Health Connect with Home Assistant! I’ve encountered a few points during my testing:
- It seems that historical data (e.g., Heart Rate) doesn’t sync automatically. Data only updates in real-time when the Home Assistant app is actively open and syncing.
- Is it possible to sync data from Home Assistant back to Health Connect? Some data, like those from a smart scale, are sourced externally and currently only available in Home Assistant but not in Health Connect.
- Where would be the best place to submit feature requests for Health Connect? I would love to see more sensor values added to the integration, such as:
- VO2 Max
- Oxygen Saturation
- Lean Body Mass
- Height
- Basal Metabolic Rate
- Bone Mass
- Respiratory Rate
Thanks again for your efforts on this integration!
HA core does not support historical data, we only pull the latest record whenever we check for sensor updates. If for example your device checked for updates once minute it would be kept more up to date. That part is entirely upto your own setup and how frequently your apps to sync those change to health connect. Some of this is out of our control.
we currently are read only
just have some patience it takes time to add these sensors as they each require approval from Google but all are being added. Cant add everything over night but the usual place to request things for the android app is in its github repo.
Seems like a pretty pointless sensor
Even worse when you consider health connect only let’s apps pulls data for last 30 days. Unless you have an app updating that value which never changes after a certain age it will have no value to pull.
unless someone is monitoring their kids growing up.