I’m in the middle of changing all my light controls to Leviton Zwave dimmers, switches and outlets. So far I have about 30 or so devices. I have bumped into the following issues:
- the leviton devices where not in the openzwave config so when I added the first couple, their name was simply “light.level_” which was fine.
- since I needed to set some additional properties (like ramp and load types) I added the full description to the openzwave config files and use ozwcp to set them up. To my surprise, when HA rebooted, all the nodes had now a new lengthy name "light.leviton_dz6hd_inwall_switch_dimmer_level_XX_Y*. OK. changed all the groups and customizations and moved along.
- when I started to add new nodes, HA would once again report them a “light.level_XX_Y” UNTIL I restarted HA where then would once again get their long name. as I understand, it’s because if their is no name associated to the node, it will default to “{manufacturer}{device type}”. Problem is that the node is added (and therefore named) before openzwave finishes the capabilities discovery and retrieve the manufacturer and type. Only after HA restarts does it pick up this information and therefore the new name. I’m very uneasy with this behavior…
- after adding another 20+ nodes, I ran ozwcp to set them all up properly. Since they are all pretty much the same device, I went into naming and location them all so it would be easier to manage them from ozwcp. Saved the ozw filed, moved it to the HA folder and restarted HA.
- after restart, all the nodes where renamed. to “light.{name}_XX_Y” so I now had a dozen “ceiling” lights, no matter what the location has been set too… Once again, not super thrilled, changes all groups etc… HA is yet again usable.
- I now add another node and restart HA (remember I have to do that all the time). HA comes back and ALL my devices are back to “{manufacturer}{device type}” ! I immediately check the zwcfg file and indeed all names and locations are gone.
Needless to say it’s driving me a little crazy,
IMHO: - using {manufacturer}{device type} as a default name isn’t best, ESPECIALLY since the node is created before ozw finishes the discovery. Restarting HA should NOT rename entities in the absence of any other network changes.
- using only “name” isn’t the best as well since ozw has also a location field. I would prefer {location}_{name} is location isn’t nil.
- finally I’m still not understanding why somehow I lost all the naming from ozw when I added a node and restarted HA.
Questions:
- what I’m doing wrong?
- what is the best practice for keeping a consistent and convenient source of truth between ozw (and i particular ozwcp) and HA?
Help will be much much appreciated.