Cannot rename device back to original zigbee name (friendly_name '0xxxxx' is already in use)
What happened?
- I renamed a device from the original name
0xyyyytoMydevicewith the option "Update Home Assistant entity". - Than later I wanted to rename it back to the original name.
This caused an error:
friendly_name '0xxxxx' is already in use
What did you expect to happen?
Rename back without an error.
How to reproduce it (minimal and precise)
- Rename a device from original zigbee name "0xyyyy" to eg. "Mydevice"
- Rename it back to the original name "0xyyyy"
This problem already exited in version 1.x
Discussed in #23341
Zigbee2MQTT version
2.0.0
Adapter firmware version
20240716
Adapter
SLZB-06P7
Setup
HA Addon
Debug log
No response
This solution is not a fix of this bug. It is only a mitigation for the time being.
To solve the problem you need to do the following:
- Stop zigbee2mqtt
- Open the file zigbee2mqtt/configuration.yaml
- Look for the section
devices: - Within this section you will find en entry with your original device name
0xabcde12345and within this section the entryfriendly_name: My-New-Device-Name - Change the entry
friendly_name: My-New-Device-Nametofriendly_name: '0xabcde12345' - Start zigbee2mqtt
After zigbee2mqtt is running again, you can check the result.
Example from:
devices:
'0xabcde12345':
friendly_name: My-New-Device-Name
To:
devices:
'0xabcde12345':
friendly_name: '0xabcde12345'
This solution is not a fix of this bug. It is only a mitigation for the time being.
I hope this discription helps to fix the bug faster.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This bug is not fixed yet. I hope soneone will look into it.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days