Thanks for the info.
It’s a more inconvenient than doing it the old way but at least it’s an option.
Thanks for the info.
It’s a more inconvenient than doing it the old way but at least it’s an option.
Yup, as of 0.77 the only officially supported way to change any entity’s ID is through the UI. This is because the old entity_registry.yaml
file is gone, and replaced by the new storage module.
That said, the storage module uses JSON formatted files in .storage/
. You can still manipulate this file with Home Assistant shut down - but as with anything else, if you introduce errors you’ll potentially break HA. I’d highly advise using sites like JSON lint or tools like jq to validate any changes before you try starting HA.
This approach of course isn’t supported
On the plus side JSON is easier to modify than yaml
That’s debatable! Depends on what you’re used to.
not having to worry about spaces is a plus
So there’s no way to do it without the UI?
I’ve recently started using HA, and set up all of my automation/configs in a git repo using Ansible to deploy them to my rp3. It’s nice, because I don’t need to depend on backups of the HA instance - if something goes wrong, just rebuild it. Something broke? Check the git logs, all the changes are recorded. Fix it and redeploy.
As I said:
Whewre do you see this diaolog
Select the symbol next to the entity in the <>
menu, under Developer Tools.
This feels very broken - just tried adding a new smart switch - 1st one post the changes…
What should be happpening here IMHO - If I rename the entity id of a zwave node then the zwave rename function should be being used to rename the base node. Then HA should drive a rediscovery from ZWave to pick up the new names for all the child entities. Pretty much what I used to do manually.
I can confirm that I am NOT also posting as @cannfoddr!
But I couldn’t have said it better myself!
For now might it be better to delete the new node just added and clean up the mess…
The just like the good old days…head over to OZWCP - do the node add secure and the rename…then bring the config files back to HA and do a restart with the new OZW config?
I’ve decided to install a standalone version of OZWCP and try my hand at manipulating the devices with that but I haven’t had any time to play with it or had the need to add any zwave devices yet.
If I get a chance to do anything with it I’ll post my results. Hopefully I don’t brick my zwave network! But I’ve got backups of everything if things do go south.
Docker is the way to go for these type of things. I run HA in a docker with all the config files mounted from my NAS. When I switch to OZWCP i just flip the docker images and point to the same config.
agreed.
I already have OZWCP installed in a docker container but just haven’t had time to use it yet.
I am quite new to home assistant, but do I understand this correctly:
All configuration is done through files except the naming of z-wave entities which has to be done through the ui?
Also this has to be done for all Z-Wave entities and then for the corresponding sensor entities, too.
It’s not just zwave entities but any entity that supports getting a unique id from HA. That includes zigbee, chromecast, NEST among others. All of those need to be changed thru the UI. Everything else is done thru the text config.
Oh wow - actually this was one of the reasons I wanted to get rid of openhab.
So I have to rename >300 Z-Wave entities manually and then hope that magic backup button in hassIO ist always working?
Wouldn’t it be actually much easier and faster to suggest or set entity-ids through a config file?
It was easier and faster the way it was done before but for some reason that still eludes me the powers that be decided to make it way more cumbersome for the sake of “consistency”. And for some reason won’t even try to address the concerns that people have with this new way.
Your situation is the exact example I use when I bring this issue up in every thread about this topic. And there’s quite a few of those.
This is already annoying me and I am only using and learning hass now for ~6h.
I was really hoping things would be better, now they are just different.