Renaming Sensors

Setup Information:
Raspberry Pi 3
Home Assistant All In One Installer
Aeotec Z-Stick Gen5
Aeotec by Aeon Labs ZW120 Door / Window Sensor, Small, White

Hi All

I have two Aeotec door / window sensors (and will buying more in the future) to help monitor when the windows are opened and closed. I am trying to rename them in my customize.yaml file but only have been successful with one of the two sensors.

When using the new entity id, I am able to rename one of the two sensors. I have tried using the old entity id but that doesn’t work.

Has anyone successfully made the name change for the same sensor that is used multiple times across their house?

Thanks in advance for the help!

Left Window Sensor Information:
new entity id = binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
value index = 0
old entity id = binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor_4_0
node id = 4
value id = 72057594110017536

Right Window Sensor Information:
new entity id = binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
value index = 0
old entity id = binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor_5_0
node id = 5
value id = 72057594126794752

You should rename the Z-Wave devices using the Z-Wave Control Panel in the UI - “Rename Node”, not in the config files. Then restart HA and the entity id will adjust accordingly.

This only seem to rename the device’s friendly name. I’ve used the rename node function and restarted HA. The node was renamed “Office_Switch”. All sensors for the node still use the old node name, but the friendly names are updated for all of the sensors. So I still have to use the long and not so unique name in the configs.

See the attached picture.

If you are using version 0.63+ then this behaviour might have to do with the new Entity Registry. Not sure though how exactly that relates to Z-Wave entity ID and friendly name.
In your screenshot you can see at least that the new_entity_id attribute correlates to the friendly name.