Marrow
EN
App StoreGoogle Play

Connects / Exports / Automation

Apple Health to Home Assistant: sensors without YAML

Automated

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.

  1. In Marrow, open Connects, then Exports, and tap Home Assistant. Turn Automated on.
  2. In Home Assistant: your profile, Security, Create token.
  3. 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.
    Tap Test connection, then Done. Marrow writes every hour unless you change it under Advanced, where you also pick the kinds of data and how far back the first run reaches (90 days unless you change it). The sensors appear in Home Assistant as sensor.marrow_ and the metric's name, for example sensor.marrow_step_count.

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
SensorStateAttributes
sensor.marrow_step_count, sensor.marrow_body_mass, sensor.marrow_resting_heart_rate and one for every other metric you sendThe latest day's valuedate, the unit
sensor.marrow_heart_rateThe day's averagemin, max
sensor.marrow_sleep_analysisHours asleep last nightThe stages, sleep_start, sleep_end
sensor.marrow_calories, _protein, _carbs, _fat, _waterToday's total from your food diarymeals
sensor.marrow_last_workoutThe activity, such as Runningstart, end, minutes, kcal, distance_mi, avg_hr
sensor.marrow_last_lift_sessionThe session's namesets, volume, exercises
sensor.marrow_moodThe latest State of Mind, in a wordvalence, 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

Automated checks

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.

Related: Apple Health to a webhook · Apple Health to Grafana · When automations run

More help

More Automation