Apple Santé smart home integration, free and open source

Apple Health data (steps, heart rate, sleep...) via Health Auto Export
Apple Health data (steps, heart rate, sleep, weight...) in Gladys, sent by the Health Auto Export iPhone app.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for Apple Santé and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
Access: cloud. Health Auto Export pushes its data to a public URL, relayed to your Gladys by Gladys Plus.
Prerequisites: a Gladys Plus subscription, and the Health Auto Export app with its REST API automation, which is a paid feature of the app (not of this integration).
- In the Configuration tab, paste your Gladys Plus Open API key in the webhooks block: Gladys shows the public URL.
- In Health Auto Export, create an automation: type REST API, format JSON, paste the URL, choose the health metrics and the workouts, and the Day aggregation.
- Run the automation, then press Check the webhook in Gladys.
The URL is a secret: anyone who knows it can send data to your Gladys. Do not share it.
Option: Heart rate value (minimum, average or maximum) when the export aggregates the heart rate.
Option: Sensor names language (English, French, German or Spanish). It applies when the device is added: set it before adding the device.
Usage
The Apple Santé device is not created by your iPhone, nor offered at install time: it appears in the discovered devices only once the webhook has received a first export (or when Check the webhook finds one). Add it then. The first export's values are not kept, the next ones fill the sensors. After an integration restart, the device is offered again at the next export; a device already added is not affected.
The device has one sensor per metric: steps, active energy, walking + running distance, exercise time, flights climbed, sleep (hours), heart rate, resting heart rate, blood oxygen, respiratory rate, weight, body fat, systolic and diastolic blood pressure. A sensor stays empty until the app exports that metric. Energy is in kcal, distances in km, weights in kg (converted if the app uses kJ, miles or pounds). Steps, energy, distance, exercise time and flights are the total of the latest day of the export.
Scenes and dashboards
- Trigger "Health metric received": fired for each metric of an export, with the variables
metricandvalue. Filter on the metrics you care about. - Trigger "Workout received": fired once per new workout, with
workout,duration_minutes,distance_kmandenergy_kcal. - Action "Read a health metric": returns the last value received (
available,value,measured_at) for the following actions of the scene. After a restart, values are unknown until the next export. - Widget "Health summary": live tiles for steps, heart rate, sleep and weight, and the time of the last export.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.
Configuration settings
These are the settings Apple Santé asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Getting started | section | No | 1. Paste your Gladys Plus Open API key in the webhooks block to get the public URL. 2. In Health Auto Export, create an automation of type REST API, format JSON, paste the URL, pick the metrics and the workouts, and use the Day aggregation. The URL is a secret: do not share it. The Apple Santé device appears in the discovered devices once a first export has arrived (use Check the webhook). Health Auto Export's REST API automation is a paid feature of the app. |
| Sensor names language | select | No | Language of the sensor names of the Apple Santé device. Applied when the device is added: change it before adding. |
| Heart rate value | select | No | Which value to keep when the export aggregates the heart rate. |
How to install Apple Santé in Gladys
- In Gladys, open Integrations: Apple Santé appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/gboulvin/gladys-apple-sante-health-auto-export:1.2.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/gboulvin/gladys-apple-sante-health-auto-export.
Apple Santé requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Apple Santé is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by gboulvin, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation