Hey everyone! ![]()
I'd like to share a custom Lovelace card I've been working on: Track History Card. It takes any device_tracker entity and draws its movement history for a selected day on an interactive map β paths, stops, times and distances, all in one place.
It started as a personal "where was my phone today?" project and grew into something I think others might enjoy too. ![]()
What it does
-
Pick any past day with a date picker (or step day-by-day with βΉ βΊ) and watch the map refresh automatically β no "Load" button needed. -
Full movement path drawn as a smooth, directional polyline on an OpenStreetMap map (powered by Leaflet). -
Smart stop detection β nearby points are grouped into stop clusters (with a configurable radius), showing how long you stayed and how many times you visited. Start (green) and End (red) markers mark the day's endpoints. -
Direction arrows along the path so you can tell which way you were heading. -
Home Assistant zones β if a stop falls inside one of your zones, its name is shown right in the timeline and popups. -
Optional reverse geocoding (opt-in) β for stops outside any zone, the card can look up a real address (e.g. Calle Mayor 3, Madrid Β· ES). Results are cached locally and localised to your HA language. -
Timeline panel listing every stop and the distance travelled between them. -
Summary bar with total points, time range and approximate distance. -
Light/Dark theme that follows Home Assistant, plus metric or imperial units. -
Full visual editor β no YAML required to get started.
Installation
Via HACS (recommended)
-
Open HACS β Frontend
-
Three-dot menu β Custom repositories
-
Add https://github.com/sergon2000/lovelace-track-history-card as type Lovelace
-
Search for Track History Card and install it
-
Reload your browser
Manual
-
Download track-history-card.js from the latest release (https://github.com/sergon2000/lovelace-track-history-card/releases)
-
Copy it to /config/www/community/lovelace-track-history-card/
-
Add /local/community/lovelace-track-history-card/track-history-card.js as a JavaScript module resource (Settings β Dashboards β Resources)
-
Reload your browser
Quick start
Add the card, then either use the visual editor or a minimal config:
type: custom:lovelace-track-history-card
title: "Daily Movements"
entities:
- device_tracker.my_phone
show_timeline: true
That's it β pick a device, pick a day, and explore. ![]()
Requirements
- Home Assistant 2023.0 or newer
- The Recorder integration enabled (it is by default)
- At least one device_tracker entity with GPS attributes (latitude / longitude)
Feedback welcome!
This is an actively maintained project and I'd love to hear what you think β feature ideas, bug reports, or just screenshots of your own travels. Feel free to reply here or open an issue on GitHub.
Stars are always appreciated!
Happy tracking! ![]()
![]()
