Skip to content

Instantly share code, notes, and snippets.

@stonith
Last active October 16, 2024 16:28
Show Gist options
  • Save stonith/99ff7230c59d7e6f5e6076b127b2205e to your computer and use it in GitHub Desktop.
Save stonith/99ff7230c59d7e6f5e6076b127b2205e to your computer and use it in GitHub Desktop.
Z-wave Entities Restore
  • Rename devices by comparing restored backup of HA, ordered by Model, choose rename entities
  • Enable SFTP
  • Stop HA container by running ha core stop in terminal
  • scp /homeassistant/.storage/core.entity_registry locally
  • regex search and replace with ("entity_id":\s*".*<entity_name>.*)_2" and $1" as replacement, replace <entity_name> and _2 with each entity name grouping
  • scp updated file back to HAOS and restart HA via ha core start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment