Google fit steps

Hi, Would anyone know how i would integrated the google fit api into home assistant to display my total steps

Hi @KH665

I have done a Google Fit weight implementation.

Code: https://gist.github.com/nitobuendia/23f5dfb6cf443405641f753373785e9a

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

Then:

weight_datasources = self._get_datasources(‘com.google.weight’)

Probably you want one of:
com.google.step_count.cadence
com.google.step_count.delta

Finally, you should select the right attributes afterwards instead of the weight.

I hope it is useful.

Cheers,
Nito

Here’s a feature request thread where I have posted a standalone script that gets the steps. Might be of help for you.