erapade
(Erapade)
December 30, 2023, 9:51am
1
I’m trying to understand how renaming of devices and entities works internally in HA?
A guess is that there is a cross reference table but where can I find it and it’s it safe to modify it myself?
There’s a lot of detail in the dev docs (but I’d recommend a strong beverage first ):
Integrations can represent devices & services in Home Assistant. The data points are represented as entities. Entities are standardized by other integrations like light, switch, etc. Standardized entities come with services for control, but an...
The entity naming standards have some info, but some of the older developer blog links seem to be broken now (like the dev blog post on MQTT ).
I think the advice for automations is to link to Entity not Device.
It’s a big problem that you can avoid by not using device triggers, conditions or actions. There are always other triggers conditions and actions you can use instead.
e.g. instead of a device turn on trigger use a state trigger.
If you only ever use entity_ids in your triggers, conditions and actions then when you have to replace the device you can change the new entity id to match the old one in one place and all your automations keep working.
If you use device ids you have to change all of …
If this helps, this post!