Live
Software
Smart Home
HACS
Updated: Jun 2026

Monitor
Allenamenti

Home Assistant integration for workout and body composition tracking, with a dedicated Lovelace card. Imports history from Apple Health, reads the scale via Withings and adds points, streaks, personal records and correlation analysis. Distributed via HACS.

v1.7.0
Current version

What it is

Monitor Allenamenti is a Home Assistant integration that brings fitness and body composition tracking into the house, with a dedicated Lovelace card as its interface. It logs workouts, reads the scale’s data and relates the two, instead of leaving them scattered across different apps.

The idea is that workout and weight data end up in the same place where everything else in the house already lives, readable from the same dashboard, without depending on a cloud service to look at your own history.

Where the data comes from

  • Apple Health for workout history: you upload the export file (.xml or .zip) straight from the browser and it’s imported in bulk. The upload goes through a dedicated HTTP endpoint, because those files are large and the WebSocket isn’t the right channel.
  • Withings for body composition: the integration hooks into the scale’s entities and follows weight, fat mass, lean mass, muscle mass, bone mass, hydration and visceral fat.
  • Manual logging through the log_workout service, for sessions that don’t go through any app.

Workouts are classified by type: walking, running, HIIT, swimming and weights, each with its duration, calories, distance, volume lifted and set count depending on what makes sense for that type.

The card

The Lovelace card is split into six screens, using the same visual language as Chronos:

Screen What it shows
Overview The at-a-glance view of recent activity, points and general status
Workouts The list of sessions with their data
Calendar The distribution over time, navigable month by month
Body Body composition and weight broken into its components
Stats Correlations, trends and projections
Settings Card configuration

Points, streaks and records

On top of the raw numbers sits a deliberately simple gamification layer: each workout type is worth a certain score, a streak of consecutive active days is kept, and personal records are detected automatically when a session beats the previous ones. It’s there to give continuity, not to turn training into a video game.

Analysis

The statistics side is what gives the history meaning once it’s long enough:

  • Pearson correlation between variables, with the correlation strength translated into words instead of left as a raw coefficient
  • Linear regression on the weight trend, with a 30-day projection
  • Weight to training volume correlation, to see whether and how much the two move together
  • Workout distribution by type over a time window

The weight chart also shows the real data coverage and disables empty ranges, so it doesn’t draw imaginary lines across periods where nothing was measured. Body composition uses the Home Assistant recorder to backfill history: data already recorded in the house is read back, so the charts start full instead of rebuilding from scratch.

Services

Service Description
monitor_allenamenti.log_workout Logs a completed workout with its parameters
monitor_allenamenti.import_apple_health Imports workouts from an Apple Health export file

Stack

Python backend as a native Home Assistant integration, with a guided config flow, sensors for workouts and body composition, a statistical analysis module, gamification and the Apple Health export parser.

TypeScript frontend for the Lovelace card, with its six screens connected to real data via the WebSocket API and an editor to configure it from the UI.

Distributed via HACS as a custom integration.