Rename ZWave Devices

They had to do that though. It was updated in 0.31 to prevent a very nasty bug; if you had multiples of the same model Z-Wave device there was a good chance that both would try to use the same entity IDs which would be a bad thing.

To fix the issue the internal Z-Wave index is now appended to the end of all Z-Wave entity IDs going forward.

The other option is to remove the one that ozwcp uses and replace it with a symbolic link which points to the copy in .homeassistant.

I’m not sure if I am doing this right? but I update all my zwave devices in ozwcp using names like Bathroom, kitchen, kitchen switch etc and then copy the zwcfgxxxxx.xml file into homeassistant folder and now I get
binary_sensor.bathroom_sensor_2_0
binary_sensor.kitchen_sensor_3_0
switch.kitchen_switch_switch_4_0

this is ok to do isn’t it? Just so I can get real names on the devices so I know at a glance which is which.

Cheers
Mark

1 Like

Does it work for you? That’s really the only concern in naming.

I’m having the same issue. Heck - I can’t even find the zwcfgxxxx.xml . Once I update the names in OZW web client, save.

I have a HASSBIAN install…

I do the same as @MarkR, as in: naming the devices through OZWCP so it makes sense what they are in Home Assistant. Sure, the node id’s and indexes are still a pain, but I understand they’re a necessary evil.

The only difference in my case is that I deleted the zwcfg_xxxxxxxxxx.xml file in my .homeassistant directory, and recreated it as a softlink pointing to the original zwcfg_xxxxxxxxxx.xml in the OZWCP directory. I didn’t come up with this myself, but saw other users report about this as a way to make sure that Home Assistant is using an up-to-date configuration. It saves me the trouble of having to copy the file over every time I make a change.

mine is in
/srv/homeassistant/src/open-zwave-control-panel

I use the all in one.

and the reason I ask, is should I be doing it this way? It does appear to work fine, automations etc.

Try this:

$ cd /
$ sudo find -name zwcfg*.xml

I executes the find command only file that came back was in the .homeassistant directory.

When I’m in Open Zwave control panel change the names and location, then click save but where does this actually save to? It doesn’t change in my home assistant directory. Any thoughts?

My goal is I want to rename my devices

I am using HASSBIANk

I’m stumped. You could carefully edit the xml file in home-assistant’s directory using a text editor. If you havn’t done much of this, I would make a backup of the file first.

Thanks for the help @dap35 - I’ll let you know if I figure it out.

@dap35 - rookie mistake wasn’t running “./ozwcp -p 8888” as “sudo ./ozwcp -p 8888”

We learn through pain. Glad you found it.

Here’s the hack I’m using to rename my zwave switches (to remove the trailing _123 bit):

I am seeing a similar behavior.
I am using an Aeotec ZW090 Z-Stick Gen5 stick and the Fibaro FGBS001 Universal Binary Sensor on Hassbian 0.40.0. There is just one zwcfg_ID.xml in /home/homeassistant/.homeassistant and a symbolic link in /srv/hass/src/open-zwave-control-panel points to that file. The xml only shows on instance of FGBS001 Universal Binary Sensor :

(So does OZWCP btw).

But I do see two instances in Home Assistant:

So where does the second one (binary_sensor.BLA_sensor_2_0_2) come from and how to get rid of it?

TIA

Try to get in the habit of using all the correct parts of the find command… it will save a lot of time some day.

find / -name “zwcfg*.xml” -print

When using wildcards like * and ? , if you dont doublequote it, you may hit shell expansion, and get interesting results. Also, without the -print, it may find the file and not tell you, unless you are checking the return code of the find command…

Yeah, old school, but ask me how I know…

2 Likes

Hi all,

How to install OZWCP now that 0.45.1 of HA is out and it builds Open Zwave upon install (so we no longer install Open Zwave libs separately). What is a new procedure for installing OZWCP?

I don’t think OZWCP comes pre-installed with new release 0.45.

With the new Z-Wave control panel built in to HA can do much of what you can do with OZWCP, including renaming devices. It’s worth checking that out to see if it covers all you’re looking for.

1 Like

Indeed, can rename devices… No need to install anything.

Just don’t forget to make backups of the zwave xml file. if it breaks, you have to rename them all again. Happened twice to me already, but maybe i was asking to much of it :slight_smile:

1 Like