Spent most of the weekend on this and I still can’t get it to work. Worked fine on SmartThings but this transition has taken over a week now.
Setup
- HA Version: 0.86.4
- Lock Model: Schlage BE369 (Zwave manual deadbolt with keypad and codes)
- Controller: Silicon Labs Z-Wave Static Controller (Works the same as Aeotec have one of those too)
- Proximity: Removed the lock and put it next to the controller after spending time back and forth
- Battery: Replaced both kinds (AAx2, 9v)
- NetworkKey: Enabled Z-Wave integration and copied over the key from core.config_entries to config.xml
- OZW Line 2: “Info, Setting Up Provided Network Key for Secure Communications”
Symptom:
Lock pairs after doing a secure pair. I see the capabilities flow by on the OZWLog and it settles down. It shows up as a lock on lovelace that has the LOCK button. Clicking on it does engage the lock and allows me to move the deadbolt from the outside as if I had entered a correct code.
I have even managed to change a usercode using the ZWave config, so COntroller to Lock seems to work fine.
However the state never changes in the UI. Locking/unlocking it manually has no effect either. The LOCK button works as a shortcut to engage the lock but no states are propagated back when I lock or unlock it. This lock worked fine in SmartThings.
Return messages not encrypted?
There is a very suspicious line that complains that a Clear Text Message was sent to a secure commandclass:
2019-02-04 00:21:03.206 Detail, Node072, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x48, 0x03, 0x20, 0x01, 0xff, 0xb6, 0x00, 0xd3
2019-02-04 00:21:03.206 Detail,
2019-02-04 00:21:03.206 Warning, Node072, Received a Clear Text Message for the CommandClass COMMAND_CLASS_BASIC which is Secured
2019-02-04 00:21:03.206 Warning, Node072, Dropping Message
This is odd since I’ve tried adding the lock as an unsecured node which pairs it but the lock blinks red instead of green and nothing works. I tried adding and removing locks and unsecure and secure as per various posts but no luck.
Spelunking using the public ZWave SDK tools
Another data point: I’ve been slowly moving over my ZWave house over to HA from ST and I’ve been using the new open Z-Wave SDK PC Controller 5 to view the USB Controllers view of the network when HA doesn’t use it. When securely adding node from HA, the Controller 5 reports it as added non-securely. I did some major surgery to test where I added the lock from the PC Controller 5 and then it does report as added securely as an [S0] node. I modified all entries in HA (ozwconfig and .storage files) to make HA recognize the node. Everything stays the same. I can engage the lock but no state changes.
Rants…
This is some of the geekiest stuff I have ever done and I do embedded development for a living. I thought Z-Wave would be the right choice since each device was certified. Now, looking under the hood and absolutely amazed what a jungle of poorly implemented command classes it is. Devices just simply lie about their caps. Anyway I’ll stop ranting and focus on the locks.
Pleading…
So what am I missing? Any ideas? Would love to help making HA+ZW better since this is messy (love the HA framework, just bleeding a little from the ZW integration)