HA Workouts: bring your Garmin, Strava, Coros, Oura and Apple Health data into Home Assistant

Hi all :waving_hand:

I’ve been working on this in my spare time and it’s got to the point where I think it might be useful to other people, so I’m sharing it here.

HA Workouts is a custom integration that pulls your workout and health data from the various fitness platforms into Home Assistant as normal sensors and long-term statistics.

GitHub: GitHub - mrvautin/ha-workouts: Home Assistant integration for Garmin, Coros, Strava, and Apple Health workout & health data — sensors, long-term statistics, and per-km split calendar · GitHub

Why I built it

My workout data was spread across a few different apps, and none of them gave me the view I actually wanted, which was simple stuff like “how many km have I run this month compared to last month?” or “am I ahead of where I was this time last year?”. Home Assistant already has great statistics and charting, so it seemed like the obvious place to bring it all together.

Supported sources

  • Garmin Connect: uses Garmin’s official Personal API. You generate a key yourself in Garmin Connect settings, so your password never goes into HA. No developer account needed.
  • Coros: email/password login, with an optional second connection for steps, sleep, HRV, recovery and training load.
  • Strava: OAuth with your own Strava API app. Heads up: since Strava’s June 2026 developer changes, the account that owns the API app needs a paid Strava subscription. That’s Strava’s policy and nothing I can work around, unfortunately.
  • Oura (beta): Personal Access Token. Readiness, sleep and activity scores, plus workouts. I don’t own an Oura ring, so I’d love feedback from anyone who does!
  • Apple Health: workouts are pushed from an iOS Shortcut to a webhook (Apple has no cloud API).

You can add as many sources as you like. Each one gets its own source-prefixed sensors (sensor.garmin_*, sensor.strava_* etc.), so you can chart them separately or side by side.

What you get

  • Distance, duration and calories per activity type (running, cycling, walking…) stored as long-term statistics, so you can chart them per day, week, month or year
  • Week, month and year-to-date sensors (e.g. sensor.garmin_running_yeartd)
  • Daily health sensors, depending on the source: steps, resting HR, HRV, sleep, body battery, stress, recovery, training load
  • Last-activity detail, including running form and power metrics on Garmin
  • Each run or ride added as a calendar event with a per-km split breakdown (pace, HR, power, cadence, elevation)
  • History backfill, so you can import years of past workouts when you set it up

Charts

The bit I was most keen on was comparing periods. Month-by-month bars work with the built-in Statistics Graph card:

There’s also a get_monthly_totals action that returns monthly totals per year. Paired with ApexCharts Card, that gives you this year vs last year charts, including a cumulative year-to-date running-total line. Copy-paste YAML examples for all of these are in the README.

Hooking it up to your AI assistant :robot:

This is the part I’ve had the most fun with. Home Assistant has a built-in Model Context Protocol (MCP) Server integration, so once you expose the HA Workouts sensors to it, an AI assistant like Claude can read your real training data.

That means you can ask things like:

  • “How many km have I run this month, and how does that compare to last month?”
  • “My HRV and recovery have been low this week. Should I swap tomorrow’s intervals for an easy run?”
  • “Based on my last 3 months of running, put together an 8-week plan to get me ready for a half marathon.”

Because the assistant is looking at your actual numbers rather than guessing, the training plan suggestions are a lot more grounded. Setup steps are in the README under “Letting an AI assistant query your data (MCP)”. Nothing is exposed by default; you choose which sensors it can see.

Installation

  • HA 2026.11+: Settings → Marketplace → search “HA Workouts”
  • Older versions: it’s in the default HACS repository, just search “HA Workouts”

Then restart, add the integration under Devices & Services, and pick your source.

Feedback welcome

It’s a hobby project, so there will be rough edges. If you hit a bug or have an idea (other data sources, sensors, chart types), please open an issue on GitHub or reply here. And if you’re using it, I’d love to see screenshots of your dashboards!

Thanks for reading, and happy training :man_running::person_biking: