Proper Way to Rename Z-Wave Entity Post Version 0.63

I’ve just installed a new ge z-wave switch. Its name came through as switch.switch. Naturally I’d like to rename it to something more… specific.

I’m currently running Home Assistant version 0.64.3 . Now that the entity_registry exists, how should I go about renaming this device? With the z-wave configuration rename node command? By editing the entity_registry? Both?

From the documentation:

Rename Node sets the name of the zwave entity - this won’t happen immediately, and requires you to restart Home Assistant (not reboot) to set the new name. Other entities of a device are renamed using the entity registry.

when I tried this I found that HA renamed the node as shown in the zwave control panel but the entities list still had the old name

Every Z-wave unit will show as (minimum) two entities in HASS: one Z-wave entity and at least one unit specific entity, i.e. zwave.switch and switch.switch. In case there are more parameters available on the Z-wave entity there will be more switch entities available, for example switch.switch_power or similar.

The switch.switch entity can only be renamed in the entity register file, locate your entity and change the title (NOT the name entry), i.e. change switch.switch to switch.frontporchlight or whatever you like. Restart HASS and your entity should be available with the new name.

2 Likes

@Tinkerer @bonterra thank you, this worked.

For my edification, do either of you know why each device has two entities, one the zwave domain and one in its actual domain?

Used to just be able to reset HA and it would name it something other than switch.switch. I guess that doesn’t happen anymore

1 Like

Simple, zwave. is the control entity for the device. The other entities relate to that functionality. So one of my sockets also has a switch. entity, and a bunch of sensor. entities for power usage.

  1. Use Rename Node
  2. Stop Home Assistant
  3. Delete the entries from the entity registry
  4. Start Home Assistant