Z-Wave Devices Stopped working after renaming

Hello Everyone. I am new to Hassio. After a little work I got my z-wave in wall light switches (GE) working through the Hassio UI. If I recall my steps correctly, I went into each of my devices through the “Overview” page, selected the cog at the top right and changed the ID name (e.g. light.Barn_Light). Shortly after this, I found that none of my devices were responding to any on/off commands from the UI. If I got back to the Device, the cog that allowed me to change the name is no longer there. What did I do wrong and how do I regain control of my z-wave switches?

I think I have found a reference that matches my issue:

I’m looking at my core.entity_registry file for the first time and I see I have duplicates of each of my devices. I assume I need to remove one of these, but I don’t want to start hacking away at this file before I understand it. Can someone provide me with some guidance on if I need to remove one set of the devices referenced in the registry?

{
“data”: {
“entities”: [
{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.aeotec_zw090_zstick_gen5_us”,
“name”: null,
“platform”: “zwave”,
“unique_id”: “node-1”
},
{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.leviton_dz6hd1bz_decora_600w_smart_dimmer”,
“name”: “Shed Row Light”,
“platform”: “zwave”,
“unique_id”: “node-4”
},
{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.ge_14294_inwall_smart_dimmer”,
“name”: “Random”,
“platform”: “zwave”,
“unique_id”: “node-5”
},
{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.ge_14294_inwall_smart_dimmer_2”,
“name”: null,
“platform”: “zwave”,
“unique_id”: “node-6”
},
{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.ge_14294_inwall_smart_dimmer_3”,
“name”: null,
“platform”: “zwave”,
“unique_id”: “node-7”
},
{
“config_entry_id”: “97462968d4814ad3aea57db23853353e”,
“device_id”: “ca1e27af85e144be9b7bff3c763a0f7d”,
“disabled_by”: null,
“entity_id”: “light.Main_Barn”,
“name”: “Barn Lights”,
“platform”: “zwave”,
“unique_id”: “6-72057594143408129”
},
{
“config_entry_id”: “97462968d4814ad3aea57db23853353e”,
“device_id”: “af88b6d0086b4882b91243902cf55ffd”,
“disabled_by”: null,
“entity_id”: “light.Back_Barn_Light”,
“name”: “Back Barn Light”,
“platform”: “zwave”,
“unique_id”: “5-72057594126630913”
},
{
“config_entry_id”: “97462968d4814ad3aea57db23853353e”,
“device_id”: “6df5d82838f84418ad0001bb6ff5492f”,
“disabled_by”: null,
“entity_id”: “light.Front_Barn_Light”,
“name”: “Front Barn Light”,
“platform”: “zwave”,
“unique_id”: “7-72057594160185345”
},
{
“config_entry_id”: “97462968d4814ad3aea57db23853353e”,
“device_id”: “544c10500db94e309681d46bb86122e0”,
“disabled_by”: null,
“entity_id”: “light.Shedrow_Lights”,
“name”: “Shed Row Lights”,
“platform”: “zwave”,
“unique_id”: “4-72057594109853697”
}
]
},
“key”: “core.entity_registry”,
“version”: 1
}

I don’t see any duplicates in the text you posted, so don’t remove anything. There is always an entity for the actual Z-Wave node, then there are entities for the various devices those nodes provide. For light switches there is a “light” which is what you can turn on/off, etc.

A Z-Wave node entity:

{
“config_entry_id”: null,
“device_id”: null,
“disabled_by”: null,
“entity_id”: “zwave.leviton_dz6hd1bz_decora_600w_smart_dimmer”,
“name”: “Shed Row Light”,
“platform”: “zwave”,
“unique_id”: “node-4”
}

The light entity corresponding to the Z-Wave node:

{
“config_entry_id”: “97462968d4814ad3aea57db23853353e”,
“device_id”: “544c10500db94e309681d46bb86122e0”,
“disabled_by”: null,
“entity_id”: “light.Shedrow_Lights”,
“name”: “Shed Row Lights”,
“platform”: “zwave”,
“unique_id”: “4-72057594109853697”
}

You can tell these are matching, besides the “shed row” names you assigned, is that the unique id for the light starts with the node number “4”, and the unique id of the zwave entity is the node number. The device_id also matches an entry in the core.device_registry file.

The issue you linked says that entity IDs stored with capital letters is causing problems. If so, then you can follow the solution they used:

The fix was simple; shutdown Home Assistant and edit the core.entity_registry device entry to use lower-case words. Once Home Assistant was up and running everything was working correctly.

This means you shutdown HASS, edit the core.entity_registry file and change the bad entity ids of the lights, such as light.Shedrow_Lights to lowercase, light.shedrow_lights. After you fix all the bad light entities restart HASS and hopefully everything is working again.

1 Like

I apologize. I cannot read my own references. I totally missed that the entity_id had to be lowercase. I updated the names and everything works perfectly now. I appreciate your time to point this key piece of info out to me. Thanks