#Guarantee entity name from sensor in YAML

1 messages · Page 1 of 1 (latest)

boreal plaza
#

filter integration expects entity_id to work with. I have a template sensor that is being filtered. The template sensor is created in YAML and its entity_id can't be defined.

How do I guarantee the entity id for the template sensor won't change in the future since it is not defined?

#

essentially how does HA link my YAML code with the internal entity_id structure, if I modify the sensor in the future, for example

shell crater
boreal plaza
#

but is the "rule" that once you set the sensor name: My Sensor Name I am not supposed to change it anymore in the YAML ?

shell crater
#

if it was instead unique_id: "dancing_panda" the sensor would be sensor.dancing_panda

#

if you dont put in a unique id it autogens which i guess you are worried about changing. so if you manually specify then you wont have that issue

boreal plaza
#

thanks!

#

so conclusion is to put unique_id everytime

shell crater
#

yeah that should prevent any issues

#

it would be super rare that stuff would change anyway but for "mission critical" stuff then putting it in nails it down

boreal plaza