I’m running zwavejs2mqtt with the web service integration (mqtt is disabled).
I’ve added a few zwave devices and the first thing I do is rename the device after it’s added. This renamed the device, but all the entities are still the default name (e.g. switch.red_series_lightswitch instead of switch.kitchen_lights).
I’m about to add a few dozen switches and need to find some way to manage the entity names. A couple of questions on the best way to do this:
I’d prefer to manage names from zwavejs2mqtt and have them passed to HA so they’re the same in both places. Is that possible?
Why doesn’t renaming the device in HA also rename the entities? Is that a bug?
Is there a config file I can edit to rename everything? That would at least be easier than going through hundreds of pages in the UI.
I’d prefer to manage names from zwavejs2mqtt and have them passed to HA so they’re the same in both places. Is that possible?
Only if you disable the integration while you perform the inclusion in z2m. By the time you rename the node in z2m, it’s too late, HA has already created the device and entities with their default names. Node renames are not propagated from z2m to HA, so HA has no clue you did anything. It’s only noticed during integration startup.
Why doesn’t renaming the device in HA also rename the entities? Is that a bug?
Turn on Advanced mode in your user profile. When you rename the device, it will ask you to rename all the entities. This works as long as the device and entities share the same name sub-string, which is true after being created.
Is there a config file I can edit to rename everything? That would at least be easier than going through hundreds of pages in the UI.
config/.storage/ contains the registry files. You can stop HA and edit those files to rename devices and entities. Keep a backup though, if you mess up the formatting HA won’t startup properly.