Z-Wave Network_Key in Home Assistant 0.103

Noob to Home Assistant… still transitioning from a VeraPlus controller.

I have Pi3B running the latest version of Hass.IO with HA 0.103, using a Nortek HUSBZB-1.

I’ve been able to transfer most of my devices to HA without issue so far. One of the devices I’d like to add is a Schlage BE469NX, which requires secure network for full operation.

My impression is that with the newer versions of HA there isn’t a need to add ZWAVE information in the configuration.yaml anymore. The network is working fine with unsecured devices thus far for me and I have no ZWAVE reference in my configuration.yaml file.

The error msg in the OZW_Log file is very clear:

2019-12-20 19:55:34.086 Always, OpenZwave Version 1.4.3452 Starting Up
2019-12-20 19:55:41.702 Info, Setting Up Provided Network Key for Secure Communications
2019-12-20 19:55:41.702 Warning, Failed - Network Key Not Set

The question is how/where should I add the network_key In this new HA setup?

Thanks much.

I did it as described in the docs:


I also put the usb path there, as described on the same page.

Did you originally use configuration.yaml to install zwave, with usb_path only, and then remove it? That’s the only way I can think that would cause an empty key. If you used the Integration in the UI, it should have created a random one for you, it’s a bug if it didn’t.

At this point, you could either 1) manually set network_key in configuration.yaml which will override the Integration settings, 2) hand edit the .storage/core.config_entries file and replace null key entry with a proper one (do this while HA is stopped), or 3) just delete the integration in the UI and re-add it, and it will generate a key for you.

I think it’s safe to just delete the integration and re-add it, without affecting anything, but you could make a backup of the config directory before doing so, if you go that route.

My understanding is that adding the ZWAVE through configuration.yaml is the “old way” of doing it. In newer versions ZWAVE parameters should be taken care of through the integration via the UI. This should be the same as entries for name, latitude, longitude, elevation, unit system and time zone which are no longer needed in the configuration.yaml file.

I did not use configuration.yaml to initialize zwave. All was done through the integration in the UI.

I’ll try deleting/re-adding the ZWAVE through integration and see how it works.

Thanks.

you’re probably right, I think I tried that and it wouldn’t load at the time, so I went to look at the docs and did what was written there. Since that worked, I’m not going to try the other way :slight_smile:

Removing the Z-Wave stick through the integration and adding it back up worked OK. It asked me for the Network_Key and all is well.

I’ve added my Schlage Connect lock and it’s working as it should.

Thank you so much for your help.