Ha Translations And Ids

Home Assistant translation_key and identifier practices—entity/device naming via translations, stable unique IDs, and migration tips. Use when this capability is needed.

tomevault-io Updated

File contents

HA Translations & IDs

Use when fixing names/IDs in a custom component.

Quick start

  • Set _attr_translation_key and _attr_has_entity_name=True; keep code names minimal.
  • Provide names under entity.<platform>.<translation_key>.name in translations JSON.
  • Keep unique_ids stable; prefer device serial/model over mutable unit_id.
  • Device identifiers should not change across reloads; plan migrations if format changes.

References

  • references/translations-json.md
  • references/ids-and-migrations.md

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/plebann--eastron-sdm-ha-integration--ha-translations-and-ids commit c4c02c708e

Frequently asked questions

npx skillmds@latest add tomevault-io/ha-translations-and-ids