ZWave naming, where does this come from?

I have several zwave sensors where the new_entity_id, old_entity_id and actual entity_id are all different. What’s the proper way to change the actual id? As in ‘binary_sensor.sensor’ in the image here? I know I can give it a new friendly name in customize.xml and can also create a template for the value any way to change the actual entity_id though?

1 Like

Ok, think I figured it out, just an FYI for others.

  1. I renamed the ZWave device within the ZWave configuration ( although this step isn’t really needed I don’t think but didn’t specifically test that theory )
  2. Find the entry within entity_registry.yaml, for instance switch.switch_5 in my case and rename the entity id to whatever makes sense for you switch.outlet_office_monitor in my case.
  3. Restart home assistant

This is actually really nice that HA is starting to abstract the entity ids away from internal references, makes it much easier to manage. After I tested with one entity I went into the entity page in the front end searched for all occurrences of the zwave node I was interested in, search for node_id: 7 for instance and just cmd+g to quickly find them all, make note of the entity id, find in the entity_registry.xml and just rename them all. Done!

Maybe this will help someone else as I found it a little confusing at first ( the fact that there is an actual entity_id, new_entity_id and old_entity_id is confusing but it’s all noise as far as I can tell )

1 Like

I believe there’s a PR open to remove the old and new entity id scheme as it’s redundant and doesn’t work properly in the light of the new entity registry.

1 Like

Cool, thanks for the heads up!