YorkshireIoT / ha-google-fit

Home Assistant Google Fit Custom Component
MIT License
94 stars 10 forks source link

Heart Rate and Resting Heart Rate not Updating #75

Closed WillScott73 closed 1 year ago

WillScott73 commented 1 year ago

System Health details

System Information

version core-2023.7.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4598 Installed Version | 1.32.1 Stage | running Available Repositories | 1340 Downloaded Repositories | 62
AccuWeather can_reach_server | ok -- | -- remaining_requests | 46
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.3 -- | -- update_channel | stable supervisor_version | supervisor-2023.07.1 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 234.0 GB disk_used | 16.8 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Advanced SSH & Web Terminal (15.0.3), Samba share (10.0.2), Studio Code Server (5.8.1), MariaDB (2.6.1), Home Assistant Google Drive Backup (0.111.1), Node-RED (14.3.0), Mosquitto broker (6.2.1), Cloudflared (4.2.0), RPC Shutdown (2.4), Zigbee2MQTT (1.32.1-1), InfluxDB (4.7.0), Grafana (9.0.2), Double Take (1.13.1), MQTT Explorer (browser-1.0.1), Piper (0.1.3), Whisper (0.2.1), Google Assistant SDK (2.5.0), Git pull (7.13.1), Double Take Proxy (1.0.0)
Dashboards dashboards | 6 -- | -- resources | 39 views | 27 mode | storage
Recorder oldest_recorder_run | 12 July 2023 at 05:18 -- | -- current_recorder_run | 17 July 2023 at 14:04 estimated_db_size | 502.72 MiB database_engine | mysql database_version | 10.6.12

Checklist

Describe the issue

The heart rate sensor is not updating.

Reproduction steps

  1. Observe the heart rate sensor value

Debug logs

2023-07-17 14:04:31.274 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.316 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.355 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration watchman which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.386 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration wiser which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.404 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration jokes which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.415 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration octopus_energy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.425 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hildebrandglow_dcc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.434 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration volkswagencarnet which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.441 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration whatspie which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.448 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.454 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration astroweather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.468 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration candy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.475 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.480 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration google_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.483 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration google_fit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.486 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration worlds_air_quality_index which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.489 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration mass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.492 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tapo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.497 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration dwains_dashboard which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.502 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ecowitt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.505 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ytube_music_player which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.507 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration circadian_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.509 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.512 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.514 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration google_photos which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.518 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:31.521 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-17 14:04:55.290 ERROR (MainThread) [homeassistant.components.sensor] Entity id already exists - ignoring: sensor.wiser_itrv_ensuite_temperature
2023-07-17 14:05:06.763 WARNING (MainThread) [custom_components.wiser.coordinator] Connection error trying to communicate with Wiser Hub 192.168.25.37 for url http://192.168.25.37:80/data/v2/domain/.  Error is Cannot connect to host 192.168.25.37:80 ssl:default [Connect call failed ('192.168.25.37', 80)]
2023-07-17 14:05:06.779 WARNING (MainThread) [homeassistant.config_entries] Config entry 'WiserHeat04B625' for wiser integration not ready yet: None; Retrying in background
2023-07-17 14:05:07.303 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Home Server ' for tapo integration not ready yet: Cannot connect to host 192.168.25.76:80 ssl:default [Connect call failed ('192.168.25.76', 80)]; Retrying in background
2023-07-17 14:05:07.308 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Living Room TV' for tapo integration not ready yet: Cannot connect to host 192.168.25.77:80 ssl:default [Connect call failed ('192.168.25.77', 80)]; Retrying in background
2023-07-17 14:05:07.310 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Fog Lamp' for tapo integration not ready yet: Cannot connect to host 192.168.25.78:80 ssl:default [Connect call failed ('192.168.25.78', 80)]; Retrying in background
2023-07-17 14:05:07.313 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Sofa Light ' for tapo integration not ready yet: Cannot connect to host 192.168.25.67:80 ssl:default [Connect call failed ('192.168.25.67', 80)]; Retrying in background
2023-07-17 14:05:07.317 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Back Bedroom Lamp Wall' for tapo integration not ready yet: Cannot connect to host 192.168.25.70:80 ssl:default [Connect call failed ('192.168.25.70', 80)]; Retrying in background
2023-07-17 14:05:07.320 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Back Bedroom Lamp Window' for tapo integration not ready yet: Cannot connect to host 192.168.25.69:80 ssl:default [Connect call failed ('192.168.25.69', 80)]; Retrying in background
2023-07-17 14:05:07.323 WARNING (MainThread) [homeassistant.config_entries] Config entry 'TV Light ' for tapo integration not ready yet: Cannot connect to host 192.168.25.68:80 ssl:default [Connect call failed ('192.168.25.68', 80)]; Retrying in background
2023-07-17 14:05:07.326 WARNING (MainThread) [homeassistant.config_entries] Config entry 'PC' for tapo integration not ready yet: Cannot connect to host 192.168.25.75:80 ssl:default [Connect call failed ('192.168.25.75', 80)]; Retrying in background
2023-07-17 14:05:13.372 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.25.2' for synology_dsm integration not ready yet: TimeoutError; Retrying in background
2023-07-17 14:05:16.251 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service nfandroidtv
2023-07-17 14:05:16.255 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service webostv
2023-07-17 14:05:16.955 WARNING (MainThread) [homeassistant.config_entries] Config entry 'BT HomeHub6DX' for upnp integration not ready yet: Device not discovered: uuid:740cb037-d20c-438b-a505-d808db25f70f::urn:schemas-upnp-org:device:InternetGatewayDevice:1; Retrying in background
2023-07-17 14:05:18.028 WARNING (MainThread) [homeassistant.config_entries] Config entry 'WLED' for wled integration not ready yet: Invalid response from API: Error occurred while communicating with WLED device at 192.168.25.105; Retrying in background
2023-07-17 14:05:18.137 WARNING (MainThread) [homeassistant.components.number] custom_components.octopus_energy.intelligent.charge_limit::OctopusEnergyIntelligentChargeLimit is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.
2023-07-17 14:05:18.727 DEBUG (MainThread) [custom_components.google_fit] Setting up Google Fit Coordinator. Use zero=True and updating every 5 minutes
2023-07-17 14:05:21.868 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Kitchen Drop Light KL130(UN)' for tplink integration not ready yet: Unable to connect to the device: 192.168.25.65: [Errno 113] Connect call failed ('192.168.25.65', 9999); Retrying in background
2023-07-17 14:05:22.939 DEBUG (MainThread) [custom_components.ecowitt] Primary update callback triggered.
2023-07-17 14:05:22.939 INFO (MainThread) [custom_components.ecowitt] First ecowitt data recd, setting up sensors.
2023-07-17 14:05:22.939 WARNING (MainThread) [custom_components.ecowitt] Unhandled sensor type runtime
2023-07-17 14:05:22.955 WARNING (MainThread) [custom_components.ecowitt] Unhandled sensor type interval
2023-07-17 14:05:23.075 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.solar_radiation (<class 'custom_components.ecowitt.sensor.EcowittSensor'>) is using native unit of measurement 'W/m^2' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-07-17 14:05:25.209 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Whisper' for wyoming integration not ready yet: Unable to connect; Retrying in background
2023-07-17 14:05:25.219 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Piper' for wyoming integration not ready yet: Unable to connect; Retrying in background
2023-07-17 14:05:55.293 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: google_mail, mobile_app
2023-07-17 14:06:05.687 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_work_phone_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:06:05.750 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_tablet_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:06:05.769 WARNING (SyncWorker_5) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2023-07-17 14:06:22.657 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_work_phone_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:06:22.863 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_tablet_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:06:36.518 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.passat_gte_charging_time_left (min) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-07-17 14:06:36.591 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.lg_webos_smart_tv is taking over 10 seconds
2023-07-17 14:06:36.625 WARNING (MainThread) [homeassistant.components.light] Setup of light platform tplink is taking over 10 seconds.
2023-07-17 14:06:37.633 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2023-07-17 14:06:38.569 WARNING (MainThread) [homeassistant.components.media_player] Updating androidtv media_player took longer than the scheduled update interval 0:00:10
2023-07-17 14:06:39.946 DEBUG (MainThread) [custom_components.ecowitt] Primary update callback triggered.
2023-07-17 14:06:39.947 WARNING (MainThread) [custom_components.ecowitt] Unhandled sensor type runtime value 0, file a PR.
2023-07-17 14:06:39.948 WARNING (MainThread) [custom_components.ecowitt] Unhandled sensor type interval value 60, file a PR.
2023-07-17 14:06:40.753 WARNING (MainThread) [homeassistant.components.input_select] Current option: loading no longer valid (possible options: Front Bedroom display, Hall Hub First Floor, Fire TV 192.168.25.46, work_chrome, Office Display, tab_chrome, Back Bedroom display, wills_home_group, Office Speaker TV, LG webOS Smart TV, Front Bedroom Speaker, Living Room Display, Living Room Speaker, Bedroom Group, radio_group, Middle Floor group, Back Bedroom speaker, Speaker Group, office_speaker_sink, Office Group, home_group, office, Kitchen display)
2023-07-17 14:06:44.464 WARNING (MainThread) [homeassistant.components.input_select] Current option: loading no longer valid (possible options: * 90s Favourite Faves, * All Time Top 100, * Best 00s, * Best 80s, * Best 90s, * Car, * DL, * Favourite Faves, * Friday Night Bangers, * ITOP, * Jamaica, * Lesser Hits, * London, * M6 Nights, * Ritzy, * The Best Remixes, * THL - Anthology, * To Sort, * To Sort - Live, * To Sort 2, * Windows Down, **, ** Indie Disco, 0 Favourite Faves - Copy, 00s Favourite Faves, 00s Favourites, 00s Number Ones, 00s Remixed (The Good Ones), 00s Remixed A-G, 00s Remixed H-M, 00s Remixed N-Z, 00s The Ok Ones, 10s - The Ok Ones, 10s Faves, 10s Favourite Faves, 10s Number Ones, 10s Remixed (The Good Ones), 10s Remixed A-M, 10s Remixed N-Z, Your Likes)
2023-07-17 14:06:45.722 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.fire_tv_192_168_25_46 is taking over 10 seconds
2023-07-17 14:06:55.000 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_tablet_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:07:30.970 DEBUG (MainThread) [custom_components.ecowitt] Primary update callback triggered.
2023-07-17 14:10:19.159 DEBUG (MainThread) [custom_components.google_fit] Fetching data for account will.scott1973@gmail.com
2023-07-17 14:10:20.578 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes
2023-07-17 14:10:23.512 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.hydration:com.google.android.gms:merged
2023-07-17 14:10:23.805 DEBUG (MainThread) [custom_components.google_fit] Finished fetching google_fit data in 4.647 seconds (success: True)
2023-07-17 14:10:28.880 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.waze_travel_time_to_rachel is taking over 10 seconds
2023-07-17 14:13:35.672 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.will_s_work_phone_active_notification_count exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-07-17 14:15:19.109 WARNING (SyncWorker_6) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2023-07-17 14:15:23.170 DEBUG (MainThread) [custom_components.google_fit] Fetching data for account will.scott1973@gmail.com
2023-07-17 14:15:24.428 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes
2023-07-17 14:15:27.380 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.hydration:com.google.android.gms:merged
2023-07-17 14:15:27.666 DEBUG (MainThread) [custom_components.google_fit] Finished fetching google_fit data in 4.496 seconds (success: True)
2023-07-17 14:20:19.113 WARNING (SyncWorker_1) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2023-07-17 14:20:27.160 DEBUG (MainThread) [custom_components.google_fit] Fetching data for account will.scott1973@gmail.com
2023-07-17 14:20:28.301 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes
2023-07-17 14:20:31.407 DEBUG (MainThread) [custom_components.google_fit] No float data points found for derived:com.google.hydration:com.google.android.gms:merged
2023-07-17 14:20:31.720 DEBUG (MainThread) [custom_components.google_fit] Finished fetching google_fit data in 4.559 seconds (success: True)

Diagnostics dump

No response

YorkshireIoT commented 1 year ago

Hi @WillScott73,

Can you add a bit more info please? What version of the add on are you using? When you say it's not updating do you mean you do initially get a value or it shows as unknown?

Thanks

WillScott73 commented 1 year ago

v1.0.0

The sensor has a value of 72 and has not changed for 4 days, even though my fit data shows heart rate changing by the minute.

All other sensors update as expected.

WillScott73 commented 1 year ago

I'm a .NET and Go developer, but since getting in to Home Assistant I have started to find my way around Python. You know your code well, so if you can give me clear instructions on what to try, I'm comfortable with that. Presumably I can modify code in place in custom_components/google_fit folder?

YorkshireIoT commented 1 year ago

I can't see anything in the log about it failing to fetch the data or there being no data available.

The only way to debug this would be to go into the OAuth Playground yourself and see if the data shows there. You'll need to use the data point changes with user ID as me. This link explains it in a bit more detail: https://developers.google.com/fit/rest/v1/get-started#try_the_rest_api_in_the_oauth_playground

You can modify the code in place but you will need to restart your home assistant for any changes to take place

WillScott73 commented 1 year ago

POST /fitness/v1/users/me/dataset:aggregate HTTP/1.1 Host: www.googleapis.com Content-length: 198 Content-type: application/json Authorization: Bearer <redacted> { "aggregateBy": [{ "dataTypeName": "com.google.heart_rate.bpm" }], "bucketByTime": { "durationMillis": 86400000 }, "startTimeMillis": 1689329728000, "endTimeMillis": 1689934528000 }

does return data in the Playground. I'll take a look at the code locally sometime next week to see what's going on.

WillScott73 commented 1 year ago

Since playing with this in the Google playground, the HA integration has started to pull the data back. Assuming it was an issue at Google's end, possibly with auth?

YorkshireIoT commented 1 year ago

Since playing with this in the Google playground, the HA integration has started to pull the data back. Assuming it was an issue at Google's end, possibly with auth?

Thanks for updating @WillScott73.

Please feel free to open this up again if you manage to capture a point when the data is in Google playground but not Home Asstiant

r2p2 commented 10 months ago

Sorry for bothering but it seems I have the same issue. Since the installation some days ago, the heart rate did not change once. On the one hand I could ask where this playground is in order to wake google up too. But maybe it would be useful to figure out the actual issue is. Sadly I have no clue how any of this works. I also have the feeling that the other sensor data (sleep, steps) is only updating after I open google fit on my phone. At least they get updated ..

cozyGalvinism commented 10 months ago

Same issue here. Works if I open the Google Fit app, otherwise, no update occurring.

YorkshireIoT commented 9 months ago

Hi @r2p2, without knowing what data is actually in your account on the Google servers it's really hard to debug what's going wrong. It's not about using the playground to get the values to appear, but just to figure out at what stage in the pipeline the data is disappearing. If you go to this website it should give you a good guide to getting started with retrieving your data: https://developers.google.com/fit/rest/v1/get-started#try_the_rest_api_in_the_oauth_playground

If you get stuck, give me a shout

YorkshireIoT commented 9 months ago

Same issue here. Works if I open the Google Fit app, otherwise, no update occurring.

This specifically sounds like an issue with your phone putting the app to sleep so it can't update in the background. I won't try and tell you how to fix this here as each phone has their own different methods to manage what they normally refer to as power saving but a quick Google should give you the answer

cozyGalvinism commented 9 months ago

Same issue here. Works if I open the Google Fit app, otherwise, no update occurring.

This specifically sounds like an issue with your phone putting the app to sleep so it can't update in the background. I won't try and tell you how to fix this here as each phone has their own different methods to manage what they normally refer to as power saving but a quick Google should give you the answer

I have done that now, I will monitor it and report back here.