◉ Pulse
ResiyHome avatar
#51 today

ResiyHome/resiyhome-health-sync

Python Other #custom-integration #google-health #hacs #health-data

Read-only Google Health integration for Home Assistant

Created Jul 22, 2026
Stars
7
Today
+7
Forks
0
Quality
100/100
Momentum
21

README

Fetched from GitHub on Nov 7, 2026, 1:52 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to ResiyHome/resiyhome-health-sync and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

Health Sync by ResiyHome

Health Sync by ResiyHome

Health Sync is a read-only Home Assistant custom integration that turns a person's Google Health data into person-scoped entities and normalized daily history. It polls Google every 15 minutes, supports multiple independently authorized people, and keeps OAuth under the user's control.

This project is independent and is not affiliated with, sponsored by, endorsed by, or officially connected with Google LLC, Alphabet Inc., Home Assistant, Nabu Casa, Fitbit, or Apple Inc. Product names are used only to describe interoperability.

Features and privacy

  • Activity, total-calorie, sleep, heart, respiratory, oxygen, fitness, workout, and synchronization entities.
  • Optional body measurements, current-day nutrition and hydration totals, and current paired-device battery and sync metadata.
  • One config entry and one Google authorization per person.
  • Google-reconciled all-source stream values, Fitbit attribution, and HealthKit-derived fallback classification without connecting directly to Apple Health.
  • Compact normalized daily summaries instead of stored raw Google API payloads.
  • Redacted diagnostics that report availability and synchronization health without health values, OAuth credentials, or Google identifiers.
  • Three baseline read-only scopes, plus two optional read-only scopes requested only when the matching per-person options are enabled.

This integration is not a medical device and does not provide medical advice, diagnosis, treatment, or emergency monitoring.

Installation and upgrade

HACS custom-repository quick start

Repository: https://github.com/ResiyHome/resiyhome-health-sync

In HACS, open the menu, select Custom repositories, enter the repository URL, select Integration, and add it. Then follow this sequence:

  1. Install or update Health Sync in HACS and wait until the download is fully complete.
  2. Do not restart Home Assistant earlier, even if HACS prompts you.
  3. After the install or update is fully downloaded, restart Home Assistant exactly once.
  4. Complete the Google Cloud OAuth prerequisite, add the client in Home Assistant Application Credentials, and then add Health Sync by ResiyHome from Settings > Devices & services.

See the complete installation guide before starting.

Google OAuth prerequisite

Each installation must use a Google Cloud project and OAuth client owned by its users. ResiyHome does not provide a hosted OAuth service, shared client, credential proxy, or backend. Every person must grant these three baseline read-only scopes:

  • https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly
  • https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly
  • https://www.googleapis.com/auth/googlehealth.sleep.readonly

The two optional read-only scopes are:

  • https://www.googleapis.com/auth/googlehealth.nutrition.readonly for include_nutrition
  • https://www.googleapis.com/auth/googlehealth.settings.readonly for include_paired_devices

Body measurements use the existing baseline health-measurements scope and do not add another permission. Existing baseline-only authorizations remain valid until a person enables an option that needs an optional scope.

Use https://my.home-assistant.io/redirect/oauth as the Authorized redirect URI when using Home Assistant's standard My Home Assistant callback. Full setup, Testing-mode expiration, and secret-handling details are in the Google Cloud OAuth guide.

Multi-user summary

Use one user-owned Google Cloud project and client, then create one independently authorized config entry per person. Use a private browser window or explicitly switch Google accounts for each authorization. Home Assistant asks for a person name, and Health Sync derives the stable person slug from that name. Users do not enter or choose the slug directly. The derived slug provides stable entity unique IDs and service and action targeting within the existing config entry. The normalized history store is keyed by the Home Assistant config-entry ID, not by the person slug. Use Reauthenticate on that existing entry so both identity mechanisms remain attached to the same entry. Multi-user setup explains the per-person option, consent, and entity-registry sequence.

Expanded Metrics

Enabled by default

Active-zone minutes, Daily VO2 max, Daily oxygen saturation, Daily respiratory rate, Sleep respiratory rate, Floors today, Sedentary minutes today, and Heart-rate-zone minutes are Enabled by default.

Disabled by default

The following detailed entities are Disabled by default:

  • active-zone minutes for fat-burn, cardio, and peak zones
  • heart-rate-zone minutes for light, moderate, vigorous, and peak zones
  • calories for light, moderate, vigorous, and peak heart-rate zones
  • sleep respiratory rate for deep, light, and REM sleep
  • Weight
  • Body-fat percentage
  • Height

Weight is disabled by default in the entity registry. Body-fat percentage and Height use the same default. Enabling an entity and opting in to body measurements are separate steps. The per-person include_body_measurements option starts a bounded 90-day normalized backfill for weight, body-fat percentage, and height. After you enable the entity, its state may be unavailable until body measurements are opted in and Google supplies usable data. A valid zero is retained as data; unavailable means no usable value was obtained, not that the entity is disabled.

Expanded metrics use reconciled daily summaries and daily rollups. For the current day, active-zone minutes, floors, sedentary minutes, and heart-rate-zone minutes use reconciled intervals until Google publishes the daily rollup. A published daily rollup takes precedence. Only expanded-metric polling avoids raw high-volume streams; core source attribution transiently inspects raw records. Neither path stores raw API payloads or Google identifiers.

Optional nutrition and paired devices

Enable include_nutrition, include_paired_devices, or both from one person's Health Sync options. If the saved authorization lacks the matching optional scope, Home Assistant starts reauthorization for that same config entry. Declining an optional permission leaves baseline sensors working, while the declined capability remains unavailable.

For an existing installation, authorize nutrition without removing the person:

  1. Install the current Health Sync release completely through HACS and restart Home Assistant once.
  2. Open Settings > Devices & services > Health Sync by ResiyHome.
  3. Open the existing person's entry, select Configure, and enable include_nutrition.
  4. Complete Reauthenticate on that same entry with that same person's Google account.
  5. On Google's consent screen, select the Google Health nutrition permission and continue. The requested scope is https://www.googleapis.com/auth/googlehealth.nutrition.readonly.
  6. Run the Health Sync refresh action or wait for the next 15-minute poll.

Repeat these steps for each person who wants nutrition values. Do not delete and recreate an entry to add the scope; reauthorization preserves its entity identity and normalized history.

Nutrition adds Calories consumed today and Water consumed today from Google's nutrition-log and hydration-log all-source results for the current local day. Nutrition has no historical backfill in this release. Daily normalized nutrition begins with the first successful opt-in refresh.

Paired devices add one Home Assistant service device for each Google paired tracker or scale, with Battery level and Paired-device last sync entities. The paired-device timestamp is Fitbit mobile-device sync time reported by Google's lastSyncTime; it is not Health Sync API refresh time and Health Sync does not cause the wearable or mobile application to synchronize. Paired metadata is current only and is absent from normalized history.

Refresh contract

A fully successful, non-paginated refresh of baseline capabilities makes 36 logical data requests when body measurements are disabled and 39 when body measurements are enabled. This includes core raw source-attribution requests, core and expanded reconciled requests, the wearable steps request, current-day interval fallbacks, and expanded daily rollups. Nutrition adds two current-day reconcile requests. Paired devices add one list request. With every option enabled, a non-paginated refresh therefore makes 42 logical data requests. Pagination can increase the actual HTTP request count. A one-time authentication retry can add a token request.

Authentication failure stops the remaining poll immediately; individual metric failures are isolated, so successful groups continue and failed groups retain prior values or remain unavailable under the partial-update rules. The exact data contract is documented in Data and privacy.

Energy dashboard remains outside this integration.

Reporting 15-minute CPU spikes

This diagnostics beta is not a claimed CPU fix. It adds bounded, memory-only timing records so an observed CPU spike can be compared with Health Sync's current refresh and backfill work. It does not add polling, Google requests, sensors, recorder data, or persistent performance storage.

Affected users helping with the investigation should:

  1. In HACS, enable beta versions for Health Sync and install the diagnostics beta named in the issue or release announcement. Wait until HACS finishes the download.
  2. Complete the one post-download restart in the installation sequence.
  3. Confirm every Health Sync person is loaded, then use Home Assistant normally. Allow at least four normal polling cycles (one hour) before collecting evidence. Do not repeatedly run the manual refresh action during the observation.
  4. Save a CPU-history screenshot covering the same hour. Include the approximate normal CPU level, spike level, Home Assistant installation type, hardware specifications, Health Sync version, Home Assistant Core version, and whether backfill is complete.
  5. Download diagnostics for every configured person from **Settings > Devices & services

    Integrations** by opening each Health Sync entry's three-dot menu and selecting Download diagnostics.

  6. Review every diagnostics file before sharing it. Do not post health values, account addresses, credentials, raw Google payloads, unredacted storage, or screenshots that expose personal health information.

Temporarily disabling every Health Sync config entry can be used as an optional isolation test. Observe the same period, record whether the pattern stops, and then re-enable the entries. See CPU spikes every 15 minutes for the complete support checklist.

Documentation

Support and security

Use the repository's issue forms for sanitized bug reports and feature requests. Do not attach credentials, tokens, raw Google Health responses, health-value screenshots, or unredacted Home Assistant storage. Report vulnerabilities through the process in SECURITY.md.

License and trademarks

The source is available under the MIT License. Brand and third-party name boundaries are documented in TRADEMARKS.md.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 23, 2026

first spotted on the list

Best rank

#51

highest position reached

Appearances

1

times on the trending list

Quality score

100

out of 100

Momentum

21

trend strength indicator

Star velocity

0.07

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot

Not enough snapshots yet — check back soon.

Rank history

position on trending · lower is better

Not enough snapshots yet — check back soon.

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/ResiyHome/resiyhome-health-sync" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="ResiyHome/resiyhome-health-sync — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

ResiyHome/resiyhome-health-sync stars badge
Markdown
[![ResiyHome/resiyhome-health-sync](https://www.notionpulse.cc/api/badge/ResiyHome/resiyhome-health-sync.svg)](https://www.notionpulse.cc/repo/ResiyHome/resiyhome-health-sync)
HTML
<a href="https://www.notionpulse.cc/repo/ResiyHome/resiyhome-health-sync"><img src="https://www.notionpulse.cc/api/badge/ResiyHome/resiyhome-health-sync.svg" alt="ResiyHome/resiyhome-health-sync stars badge" /></a>

Repository of the Day

#51 Repository of the Day

Repository of the Week

#51 Repository of the Week

Repository of the Month

#51 Repository of the Month