How to get daily step count from Pixel (Android) phone

I’m currently showing mine and my wifes step data in the UI. I have an iPhone which resets the step count every night at midnight but it seems my wife’s phone (Android - Pixel) is just totalling step counts without resetting.

I see here that someone has created a solution through a template but is there really no other way to have the phone itself to refresh the data instead?

She also has a Fitbit but it looks as though that integration is very difficult to get working.

Ok, dont bother with programmatically getting daily step count with the above method as it seems that the phone will just reset step count halfway through the day (possibly midnight GMT) and not just on reboot. Really not sure what use this metric is to anyone the way it works… probably just Google things though.

Have instead done the hard way and created a Google App and got API credentials for her to use the HACs Google Fit integration. Looks good so far.

Edit: Actually, it didnt reset. My bad… not sure why the calculated steps entity suddenly showed zero. Still, its better to use Google Fit API I think.