Skip to content

Document Apple Health sensors - #1368

Open
aero-oli wants to merge 2 commits into
home-assistant:masterfrom
aero-oli:docs/apple-healthkit-sensors
Open

Document Apple Health sensors#1368
aero-oli wants to merge 2 commits into
home-assistant:masterfrom
aero-oli:docs/apple-healthkit-sensors

Conversation

@aero-oli

@aero-oli aero-oli commented Jul 2, 2026

Copy link
Copy Markdown

Proposed change

Documents the new iOS Apple Health sensors added by home-assistant/iOS#4923.

This updates the sensors page with the new HealthKit-backed sensor entities, explains that the feature is opt-in, notes the required Apple Health read permission, and describes the normal iOS sensor update behavior.

Type of change

  • Document existing features within Home Assistant Companion App
  • Document new or changing features for which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Remove stale or deprecated documentation

Checklist

  • I have read and followed the documentation guidelines.
  • I have verified that my changes render correctly in the documentation.

Additional information

Validation: NPM_CONFIG_CACHE=/private/tmp/npm-cache npx --yes yarn@1.22.22 build completed successfully.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents newly added iOS Apple Health (HealthKit) sensor entities in the Companion App documentation by adding them to the main sensor list and introducing a dedicated “Apple Health sensors” section that explains opt-in behavior and update cadence.

Changes:

  • Added sensor.health_steps and sensor.health_resting_heart_rate to the iOS sensor list.
  • Added a new “Apple Health sensors” section describing enablement requirements (opt-in + Apple Health read permission) and update behavior.

Comment thread docs/core/sensors.md Outdated

## Apple Health sensors
![iOS](/assets/iOS.svg)<br />
<span class='beta'>BETA</span> Apple Health sensors read health and fitness data from HealthKit. They are opt-in and require Apple Health read permission. To enable them, go to **Companion App Settings** > **Sensors**, enable **Apple Health Sensors**, and allow the requested Health permissions.
Comment thread docs/core/sensors.md
| `sensor.distance` | None | The estimated distance walked by the user since midnight local time. Units: meters, m |
| `sensor.floors_ascended` | None | The approximate number of floors ascended by walking since midnight local time. |
| `sensor.floors_descended` | None | The approximate number of floors descended by walking. Since |
| `sensor.health_resting_heart_rate` | None | The latest resting heart rate value available from Apple Health. Units: beats per minute, bpm |
Comment thread docs/core/sensors.md
| Sensor | Description |
| --------- | --------- |
| `sensor.health_steps` | The number of steps recorded in Apple Health since midnight local time. |
| `sensor.health_resting_heart_rate` | The latest resting heart rate value available from the last 7 days. |
bgoncal added a commit to home-assistant/iOS that referenced this pull request Jul 28, 2026
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
Adds optional HealthKit-backed iOS sensors so selected health metrics
can be exposed through the existing Home Assistant sensor webhook flow.

This includes:
- HealthKit authorization and sensor value collection for supported
health metrics.
- A persisted app setting for enabling/disabling HealthKit sensors.
- Sensors settings UI wiring so the HealthKit group appears alongside
existing sensor controls.
- The required HealthKit entitlement and usage description.
- Unit coverage for HealthKit sensor encoding/collection behavior and
the sensor list view model wiring.

## Screenshots
<img width="1206" height="2622"
alt="serve-sim-screenshot-2026-07-24T17-13-15-427"
src="https://github.com/user-attachments/assets/708cf53a-7427-4b6c-99b8-d42e992b056b"
/>
<img width="1206" height="2622"
alt="serve-sim-screenshot-2026-07-24T17-14-53-623"
src="https://github.com/user-attachments/assets/15ef99ce-6a0f-49e0-8b25-af27900ce3df"
/>
<img width="1206" height="2622"
alt="serve-sim-screenshot-2026-07-24T17-15-12-007"
src="https://github.com/user-attachments/assets/0fc4090d-ce5e-4cfe-8034-828ac8c635a0"
/>


## Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#1368

## Any other notes
Validation: CI passed on the fork PR, including lint, unused-string
checks, SwiftLint disable checks, and the test job:
https://github.com/aero-oli/iOS/actions/runs/28614134149

---------

Co-authored-by: Bruno Pantaleão Gonçalves <5808343+bgoncal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants