Categories
Home Automation Smart Home Disaster Recovery Version Control Configuration Management Home Assistant Backup and RestoreStars
Forks
Watchers
Developer links
Home Assistant Time Machine
Undo for your smart home: Home Assistant Time Machine snapshots your YAML configuration and restores one automation, script, dashboard, or ESPHome file at a time, never the whole system. Each snapshot opens in a side-by-side diff that highlights every changed line, with eight color palettes to choose from. Restore This Version puts the old copy back after a safety backup of whatever it replaces. Smart Backup saves only files that changed. Schedules run hourly, daily, or weekly, and a maximum-backups limit prunes the oldest snapshots. Backup Now snapshots on demand, and automations can trigger backups through a service call, the REST API, or an optional HACS integration. Search covers every backup, and Show Changes Only trims the list to snapshots that differ from the live config. A right-click menu locks, unlocks, exports, or deletes a snapshot. Snapshots can live in /share, /backup, /media, or a remote share. Split setups built on !include and !include_dir_list stay visible because every backup writes a manifest. The add-on opens through Home Assistant Ingress, and the standalone Docker container protects its API with a built-in password. Phones get a fullscreen diff viewer, and six interface languages are built in. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Rewind one item, not everything
- Restore a single automation, script, dashboard, or ESPHome file from any snapshot while the rest of Home Assistant keeps running, so one bad edit never forces a full system rollback.
- See exactly what you changed
- A side-by-side diff against the live version highlights every edited line, with eight switchable color palettes, so you can spot the typo yourself or restore the older copy.
- Snapshots that stay small and safe
- Smart Backup saves only files that changed, a retention limit prunes old snapshots, locks protect the ones you want to keep, and every restore writes a safety backup first.
- Runs as an add-on or container
- Install the Home Assistant add-on or run the Docker image anywhere with your config and backup folders mounted; outside Home Assistant, a built-in password protects the API.
Features
- Side-by-side diff viewer
- Compare any snapshot with the live YAML in a two-column view with highlighted changes, expandable context, eight color palettes, and arrow-key navigation, then restore the selected version.
- Search all backups
- Press Enter in the search bar to filter the snapshot history to backups containing matching items, with results streaming in live across automations, scripts, Lovelace, ESPHome, and packages.
- Scheduled and smart backups
- Smart Backup stores only changed files, schedules run hourly, daily, or weekly, a Backup Now button snapshots on demand, and a maximum-backups setting caps retention.
- Snapshot context menu
- Right-click a snapshot to lock it against auto-cleanup, unlock it, export it as an archive, or delete it, and save snapshots to /share, /backup, /media, or a remote share.
- REST API and HACS integration
- REST endpoints for backup, restore, schedule, and scan, plus a HACS integration with a time_machine.backup_now service and a status sensor, let automations trigger and monitor backups.
- Multilingual, mobile-ready interface
- Six interface languages (English, Spanish, German, French, Dutch, Italian), light and dark themes, and a mobile layout with a fullscreen diff viewer for phone browsers and the Companion app.