IvanVojtko / googlefit-homeassistant

MIT License
27 stars 10 forks source link

Question about Fit heartrate reporting and update interval #9

Open NCC1941 opened 2 years ago

NCC1941 commented 2 years ago

Hi! First, thank you for creating this integration. I've only been using it for a bit over a day now, but I've been really enjoying it so far.

The only maybe-issue I'm running into so far is with the Google Fit heart rate sensor. Specifically, for me, it seems to update very irregularly - often only once every several hours - and the resulting data and history in Home Assistant have little in common with the data that's visible in Google Fit directly.

Here's an example, with my February 8th heart rate data as shown in the Fit app overlaid on a graph of the same time period in Home Assistant.

GFit Heartrate

I'm new to all of this, but especially the Google API stuff (I just fumbled through the API instructions, I think correctly), so I don't know if this 'problem' is something I did wrong, or something up with the integration, or if this data is just as good as Google is willing to offer.

Any help or insight on how to get better heartrate data (or just confirmation that this is as good as it gets, disappointing as that would be) is greatly appreciated.

NCC1941 commented 2 years ago

I've noticed that the 'Google Fit heart rate' sensor is directly duplicating the 'Google Fit resting heart rate' sensor (or vice versa). Could that be the issue?

chintito4ever commented 2 years ago

I did also notice that Google fit reporting total bed time not Sleep time. I'd be in bed for 10 hours but would sleep only 7 hours. Is there any way to only report sleep hours instead of in bed hours?

NCC1941 commented 2 years ago

I've noticed that as well, with the sleep/bed time.

Are you also having the heartrate issue? At the moment, I can't tell whether I'm the only one with this issue, or it's widespread.

chintito4ever commented 2 years ago

I’m having same heart rate issue. Both resting HR and regular HR are same.

caohuongls commented 2 years ago

I have same issue with heart rate. The sensor of heart rate seem not update regularly or even wrong value at time it's update. Others sensor still working well with correct value. I update my heart sensor via Third App call Health Sync which transfer value between different apps. And I don't know is it effect to real value but on Google Fit app still display correctly