schnuecks.dev
All projects

Nine Lives

Stable

Home Assistant · HACS · open source

Give a device a new life.

Replace a device in Home Assistant and keep everything that depends on it: the new device takes over the entity IDs, settings and history of the old one – for example when moving sensors from Zigbee to Thread, or when a broken device is swapped.

Free under MIT · Runs inside Home Assistant · Preview and undo for every swap

Preview of a swap with the entity IDs taken over and the rewritten references

One step instead of an afternoon of renaming.

When a device is replaced, Home Assistant sees a brand-new device with new entity IDs. Nine Lives moves everything over, shows every change first and can undo it.

Same entity IDs

The new entities take over the IDs of the old ones, with names, icons, areas, labels, voice assistant aliases and options.

Continuous history

The new entities continue the old history and long-term statistics instead of starting empty.

Meters without jumps

Energy, gas and water sums continue smoothly, even when the old device is already unplugged.

Device references rewritten

Device triggers, conditions, actions and targets in automations, scripts, scenes and dashboards point to the new device.

Smart pairing

Entities are paired by type, device class and unit, not by order, and every pair can be adjusted.

Safe by design

YAML files are never edited, only listed. Device triggers that may not exist on the new device are flagged for review.

Check every pair.

Pick the old and the new device and Nine Lives proposes the pairs. Entities without a partner stay where they are, and every pair can be changed before anything happens.

Entity pairs of the old and the new device

Swap, and see what is left.

The old device is disabled, the new one gets its area and labels, and a notification sums up what is left to do. Recent swaps can be undone with one click.

Swap done, with a pending meter correction

Installed through HACS.

Nine Lives needs Home Assistant 2026.10 or newer and appears in the sidebar for admins.

  1. In HACS open the menu → Custom repositories, add github.com/Schnuecks/ha-nine-lives with the type Integration.
  2. Install Nine Lives and restart Home Assistant.
  3. Add it under Settings → Devices & services → Add integration → Nine Lives.

Like what I build?

If one of my projects saves you time, you can buy me a coffee on Ko-fi. It keeps the printers running and the next idea coming.

Buy me a coffee on Ko-fi