Hi there. I’m completely new with HASS so it took me forever to pair my Danalock with my Z-Wave stick in Hass.
I combined a lot of good information found here and noted down some stuff that may seem self-explanatory, but were complete puzzles to me
So here is my complete newbie guide:
Note: At least for the pairing process, please make sure that your Hass device with the Z-Wave stick attached is close to your DanaLock Also note: You may not need to reset both Z-Wave stick and DanaLock. I just did this because it took me forever to get everything sorted
Reset both Z-Wave stick and Danalock
Pair iPhone with DanaLock
Note, if you have DanaPad as well, this might interfere with everything - Pull out the batteries for the DanaPad before proceeding (can be added later)
Calibrate the lock automatically so it turns all the way over
Find the USB path of your Z-Wave stick:
Install a Terminal for Hass or SSH into the docker image.
Execute the command: ha hw info
Look for the path under “serial” and save it (e.g. /dev/ttyACM1)
Insert the following three lines into your configuration.yaml:
Note: Be sure to replace your usb_path with what you found out in step 4. Network key can probably be left alone.
Restart HomeAssistant
Go to Configuration > Z-Wave and make sure that your Z-Wave stick is found under “Z-Wave Node Management” and that everything looks in order. Check your logs too for any possible errors.
Click the little pin hole on the DanaLock once - A green LED will begin to blink.
You now have 30 seconds before proceeding with step 9
Go to Configuration > Z-Wave and click “ADD NODE SECURE” and wait for 5 minutes before doing anything else.
If you want, you can “TAIL” the Z-Wave logs to follow what’s going on.
Verify that the following device/entities show up under the DanaLock in Hass
Poly-control Danalock V3 BTZE
Poly-control Danalock V3 BTZE Locked
Poly-control Danalock V3 BTZE Alarm Type
Poly-control Danalock V3 BTZE Alarm Level
Poly-control Danalock V3 BTZE Battery Level
Go to Configuration > Z-Wave and click the drop-down menu for Z-Wave Node Management. Make a note of “Node:X Complete”. This ID is to be used in step 13
Once more, click the little pin hole on the DanaLock once - A green LED will begin to blink.
You now have 30 seconds before proceeding with step 14
In Hass, go to Developer Tools > Services and find the service “lock.get_usercode” - Fill in the following:
node_id: 2
code_slot: 1
Click “CALL SERVICE”
Wait for a few minutes while stuff initializes again and everything should be good to go.
When you are setting up zwave locks, you need to have a secure network.
That’s why Danalock is included with “ADD NODE SECURE”
But, zwave security needs network_key as a secret password.
DO NOT COPY&PASTE it from elsewhere or show it to others!
When you start to use secure zwave connections, create your own network_key.
When you start HA, you can check the zwave log that it found you network_key
Info, Setting Up Provided Network Key for Secure Communications
Hi,
I am also new to HA and I want to install my danalock z-wave. But I have problem at a very begining.
After adding to configuration.yaml z-wave: usb_path … I am getting among integrations z-wave (deprecated) and not “just” z-wave. Is this OK? I am not sure. Should I add z-wave JS?
Thank you.
Yes install z-wave JS. But you will not get your lock function as you want.
We need the lock to report locked status and battery status. There is no way this lock will do it trough z-wave. The bluetooth app in phone pulls the information, the lock does not push the information. https://products.z-wavealliance.org/products/2556/configs
Adding this lock to the new ZWave JS integration works flawlessly. The device has been added as an S2 secured device. If I only knew from the start the ‘user pin’ was located on the inside of the battery cover, I could have done it in 2 minutes instead of an hour
Lock, battery, door and jamming status are all correctly reported and locking an unlocking the door through HA works fine!
I’ve seen it mentioned a few times but I don’t have the entity. I’d like to know who is unlocking the door. I’ve tried exclusion/inclusion multiple times. Also switched between ZWaveJS and ZwaveJS2MQTT, still nothing.
When including with “secure if possible” option later you are given the choice with 2 checkboxes to add S0 and S2 (and add code from inside of the batterylock). Do you just choose one of them or both? I did both and I get controller, sensor and diagnostic for the lock. I do not get battery. I can click controller (it sais locked) and get the option unlock but it does not open the door. All this worked flawless with old zwave hub I had (animus home). Im moving to HA and in learning mode for all that is new for me. But Ill try to unlink/remove and add again. I also placed the lock very close to HA to get it to add.
Edit: Just adding with s2 and using code I find under the cover it pairs directly and all features are there.
I included the danalock with holding it 50cm away from controller and it works great. Then I went downstairs and mounted it to the door and tried to lock the door. Nothing happens and 30 sec later the node went dead. The lock is about 10m away from the controller and I have a thermostat that is 20m away that works great… any ideas?