HC Webhook
Health Metric

What is Sleep?

Measured in: hours + stages

How long you slept and your sleep stages — light, deep, and REM — from the night before.

Definition

What it measures

How long you slept and your sleep stages — light, deep, and REM — from the night before.

Unit: hours + stages

Why Track It

Why it matters

Track sleep quality over time, get a heads-up after a bad night, and see how sleep affects other health metrics.

Automations

What you can do with Sleep data.

HC Webhook sends sleep readings to any webhook — here are ideas to get you started.

Sleep Log in Notion

Create a Notion entry for each night with duration and stage breakdown automatically.

Alert for Short Nights

Send a Telegram or email alert any morning your total sleep was under 7 hours.

Sleep Quality Dashboard

Push sleep stage data into InfluxDB and chart deep sleep percentage over time in Grafana.

Morning Routine Trigger

Fire a Home Assistant automation when sleep data arrives — adjust lights, start coffee, or play music.

Weekly Sleep Report

Aggregate nightly sleep in n8n and send a weekly digest showing your average and worst nights.

Correlation Tracker

Log sleep alongside steps and heart rate in a spreadsheet to spot patterns over weeks.

Data Format

What the JSON looks like.

HC Webhook posts a JSON object containing a sleep array to your endpoint on every sync.

{
  "timestamp": "2026-04-15T07:00:00Z",
  "sleep": [
    {
      "session_end_time": "2026-04-15T07:00:00Z",
      "duration_seconds": 27000,
      "stages": [
        { "stage": "deep", "duration_seconds": 5400 },
        { "stage": "light", "duration_seconds": 14400 },
        { "stage": "rem", "duration_seconds": 7200 }
      ]
    }
  ]
}
How to Export

Get Sleep out of Health Connect

Google Health Connect stores your sleep data from compatible apps (Samsung Health, Fitbit, Garmin, and more). HC Webhook reads that data on a schedule you set and forwards it as JSON to any URL you add — n8n, Home Assistant, Zapier, or your own API.

  1. 01

    Install HC Webhook and grant Health Connect permission for Sleep.

  2. 02

    Paste your webhook URL — Home Assistant, n8n, Zapier, or any endpoint.

  3. 03

    Set your sync schedule. Sleep readings arrive automatically, every time.

Get it on Google Play

Start tracking your Sleep data.

Free Android app. No account required. Data stays on your device.

Get it on Google Play