How to retrieve DSKs

Greetings,
I tend to keep a lot of the papers for my z-wave devices. I also started tracking the DSKs in a spreadsheet. Most of my devices also have stickers.

Well, on one of my devices the sticker is missing. It was added manually (without SmartStart) before I started tracking in the spreadsheet. And I can’t find the paper. :weary:

I keep finding things online that say I should be able to retrieve these keys. For example, there’s many suggestions in this thread: How to export paired devices' S2 DSK PIN? · zwave-js/zwave-js · Discussion #3910 · GitHub

None of them work.

This was closer: DSK Backup logs - Where do I find them? - #3 by freshcoast

But that only exported the smart start keys which I could have done from the GUI.

I really don’t want to e-waste this thing, but I’d really like to move it to LR and I’ve not found a good way of doing that besides removing and readding the device.

Can anyone please help me figure out how to get the DSK from HA?

Thanks!

Is this device currently included with S2 Security?

It is listed as S2_Authenticated and under Z-Wave+ it has the 2 symbol. So I believe: yes.

How long have you been using Z-Wave JS? Before SmartStart was supported the DSK was not saved. Any chance you included this device before then? SmartStart was first introduced way back in Nov. 2021. zwave-js/CHANGELOG_v12.md at e221ba55038238b67db51f3afd14c7f682ab75fe · zwave-js/zwave-js · GitHub

Greetings,
I’ve been tinkering with HA for a number of years, but I didn’t get started with Z-Wave until like… mid 2023? Somewhere in that time frame.

As for SmartStart, for a long time it didn’t work well for me. The app would just crash when opening the camera. So I just manually included z-wave.

Here’s why I believe that the DSK is somewhere in the depths of HA … I have two door sensors going into the same area. One of them is acting up and advice I got was try to remove it, factory reset it, and add it back in (which worked BTW)… The problem is that the first time I went to factory reset :grimacing: I reset the wrong one :man_facepalming: … And I can not find the DSK for it (see first post). However, I had hope that since I hadn’t removed it from HA it might join back in… So I battery pulled it and tried forcing various methods to wake it up… no go… So I gave up and decided to do a deeper dive in various papers hoping to retrieve the key… then ten hours later :- It just started working again :astonished: :man_shrugging:

So it’s “saved” from the early electronic recycling for now… but if it hadn’t rejoined automatically after 10 hours my only options are a) use an insecure connection, b) brute force the pin, c) trash a perfectly good device and buy another… I would /really/ like to simply recover the key if possible.

Thanks.

Unfortunately HA won’t know anything about the DSK, the Z-Wave JS driver handles all of that.

You can try inspecting the driver cache files (<homeid>*.jsonl files) in the app (or however you’re running Z-Wave JS) to see if it’s stored there somewhere, but the driver code examples posted are doing exactly that.

You can try asking at zwave-js/zwave-js · Discussions · GitHub for any last ditch efforts.

1 Like