Hi, Would anyone know how i would integrated the google fit api into home assistant to display my total steps
I have done a Google Fit weight implementation.
While it is focused on weight, it could be updated to other type of data by changing:
API_SCOPE = ‘https://www.googleapis.com/auth/fitness.body.read’
The scope for steps seems to be: https://www.googleapis.com/auth/fitness.activity.read
weight_datasources = self._get_datasources(‘com.google.weight’)
Probably you want one of:
Finally, you should select the right attributes afterwards instead of the weight.
I hope it is useful.
Here’s a feature request thread where I have posted a standalone script that gets the steps. Might be of help for you.