Connects / Exports / Automation
Apple Health to Home Assistant: sensors without YAML
To get Apple Health data into Home Assistant, an iPhone app has to send it, because Apple Health has no API Home Assistant can poll. Marrow does this for free: give it your Home Assistant address and a long-lived access token, and it creates and updates sensors such as sensor.marrow_step_count on a schedule, with no YAML and no webhook to set up.
Open in Marrow works on an iPhone with Marrow 1.7.1 or later.
Automated Free
Marrow writes to it directly on a schedule, with the app closed. Nothing to run in between. You need: Your Home Assistant address and a long-lived access token.
- In Marrow, open Connects, then Exports, and tap Home Assistant. Turn Automated on.
- In Home Assistant: your profile, Security, Create token.
- In Marrow: tap Connect. Its page asks for:
- Address: Your Home Assistant address with its port, or your Nabu Casa address. It looks like
https://home.example.com:8123. - Long-lived access token: The token you just made.
sensor.marrow_and the metric's name, for examplesensor.marrow_step_count. - Address: Your Home Assistant address with its port, or your Nabu Casa address. It looks like
What arrives in Home Assistant
One sensor per metric, holding the latest day's value, named sensor.marrow_ and the metric's key. Marrow sets the unit, a friendly name and the state class, so the sensors chart and work in automations as they are. A sample state:
sensor.marrow_step_count state: 8746 attributes: unit_of_measurement: steps friendly_name: Marrow Steps state_class: measurement date: 2026-11-05 attribution: Marrow
| Sensor | State | Attributes |
|---|---|---|
sensor.marrow_step_count, sensor.marrow_body_mass, sensor.marrow_resting_heart_rate and one for every other metric you send | The latest day's value | date, the unit |
sensor.marrow_heart_rate | The day's average | min, max |
sensor.marrow_sleep_analysis | Hours asleep last night | The stages, sleep_start, sleep_end |
sensor.marrow_calories, _protein, _carbs, _fat, _water | Today's total from your food diary | meals |
sensor.marrow_last_workout | The activity, such as Running | start, end, minutes, kcal, distance_mi, avg_hr |
sensor.marrow_last_lift_session | The session's name | sets, volume, exercises |
sensor.marrow_mood | The latest State of Mind, in a word | valence, time |
Use it in an automation
The sensors behave like any other. This one sends a reminder at 21:00 when the day is under 8,000 steps:
automation:
- alias: "Evening walk reminder"
triggers:
- trigger: time
at: "21:00:00"
conditions:
- condition: numeric_state
entity_id: sensor.marrow_step_count
below: 8000
actions:
- action: notify.notify
data:
message: "Under 8,000 steps today. Time for a walk."
If it does not work
In Home Assistant
- Test connection fails. Check the address: it needs the port (8123 unless you changed it) and the phone must be able to reach it. Marrow takes https anywhere and plain http only on your own network.
- Home Assistant answers 401. The token is wrong or was deleted. Make a new long-lived access token under your profile, Security, and paste it again.
- The sensors are gone after a restart. Home Assistant does not keep sensors made this way across a restart. They are back on Marrow's next push.
- The sensors need another name. Open Advanced on the Connect screen and change Prefix. It is
marrowunless you change it. - An older webhook automation shows delivered, yet nothing changes. Automations made before Marrow 1.7 post to a webhook trigger in configuration.yaml and keep working. Home Assistant answers 200 even for a webhook id it does not know, so check the id at the end of the address. The direct connection above replaces that setup.
Automated checks
- Test with Run now. The line under Run now says what happened. Any 2xx answer counts as delivered. Anything else shows as Server answered and the status code, or the network error.
- Check the Activity log. In the automation, More options, Activity log lists its last 30 runs with the result of each.
- Runs come late. iOS picks the moment for background runs, and a phone that stays locked sends when it is next unlocked. Since last run catches up on the next run that succeeds.
- A receiver on your home network. Marrow needs Local Network access to reach it (Settings, Privacy and Security, Local Network). Tap Run now once with Marrow open, so iOS can ask: in the background it refuses without asking.
- It will not switch on. Each automation that is on counts as a connection. Free keeps 3 connections on at a time. Marrow Pro keeps up to 20: AIs, servers and automations together. Sources never count.
More fixes in the guides: Automated.
Questions
Do I need a custom integration, HACS or YAML?
No. Marrow uses Home Assistant's own REST API with a long-lived access token and makes the sensors itself. Nothing is installed in Home Assistant.
Does it work with Nabu Casa or a remote address?
Yes. Enter your Nabu Casa address or any https address the phone can reach. Plain http works only on your own network.
How fresh are the sensors?
Marrow writes every hour unless you change it under Advanced, at the moments iOS allows background work. A phone that stays locked all day sends when you next unlock it.
Can data arriving start an automation?
Use a state trigger on any of the sensors. If you would rather receive the whole payload and trigger on that, post it to a webhook trigger: Apple Health to a webhook has the YAML.
Is it free?
Yes. The Home Assistant connection is on Marrow's free plan and counts as one of its three connections.
Other ways to do it, and when to pick them
We make Marrow, so here are the alternatives as fairly as we can put them.
- Health Auto Export. It has its own Home Assistant automation type and also publishes over MQTT, both on its Premium tier. Pick it if you already run MQTT or want its Mac and iPad apps. See healthyapps.dev.
- The Home Assistant Companion app. Free, from Home Assistant itself, and it now has Apple Health sensors of its own for activity, body measurements, heart, nutrition, sleep and vitals (checked November 2026). If sensors in Home Assistant are all you want, it is the simplest choice. Pick Marrow when you also log food and lifts in it, want the last workout, lifting session and mood as sensors, or send the same data to other places too.
- Apple Shortcuts. Free and already on the iPhone. A personal automation can read a few Health samples and post them with Get Contents of URL. Pick it for one or two numbers a day when you do not mind building and maintaining each one, and remember it reads Health only while the phone is unlocked.
Related: Apple Health to a webhook · Apple Health to Grafana · When automations run