Nameing a zwave device

Hi

Ive searched the forum but cannot find someone with the same problem. Im trying to rename the zwave devices ive added. I use AeoTec Z-Wave stick.

I did test this:
Configuration - Z-Wave - Picked a node - Renamed the node and saved.
After this i did reboot HA. Now the node is renamed under the Z-Wave menu.

In the UI it still have the same name, so I did rename it there by clicking the device and the settings, and did rename. Now in the UI it does have the new name.

But still it does not get this name under states menu. I have rebooted HA atleast 10 times (Cause of other things).

What im I doing wrong?

I rename my zwave devices by editing the entity_registry.yaml file. Stop HA first before you do that.

Can you give me an exemple on how a device looks like in your yaml file?

Just an example of a door sensor:

entity_registry.yaml

zwave.master_bedroom_outside_door:
  config_entry_id:
  name:
  platform: zwave
  unique_id: node-10
sensor.master_bedroom_outside_door_sourcenodeid:
  config_entry_id:
  name:
  platform: zwave
  unique_id: 10-72057594211745825
sensor.master_bedroom_outside_door_access_control:
  config_entry_id:
  name:
  platform: zwave
  unique_id: 10-72057594211745937
binary_sensor.master_bedroom_outside_door_sensor:
  config_entry_id:
  name:
  platform: zwave
  unique_id: 10-72057594210680832
sensor.master_bedroom_outside_door_alarm_type:
  config_entry_id:
  name:
  platform: zwave
  unique_id: 10-72057594211745793
sensor.master_bedroom_outside_door_alarm_level:
  config_entry_id:
  name:
  platform: zwave
  unique_id: 10-72057594211745809

I just rename the entity_registry.yaml file to entity_registry.yaml.old then restart hass. it will then rebuild the entity_registry file from the node names in the xml file on the z stick.

That way I don’t have to go thru and rename every node once I rename it in z wave.