I’m interested in giving you a hand.
I have OpenHAB 2.5.0M2 installed (Windows 10), with Zooz Z-Wave stick (Zooz Z-Wave Plus S2 USB Stick ZST10).
Also have 1 S2 enabled device (HomeSeer Z-Wave Plus Floodlight Sensor [HS-FLS199+])
Forgive me, but I haven’t sniffed any network traffic to see what (if anything) appears during pairing, but I was wondering if we could pair the device, but not “enable” it (without adding the DSK [Device Specific Key] via the Configuration of Things UI)?
That way, we would not have to intercept the pairing with a UI injection. Presumably (in my mind), if the DSK is needed to complete the pairing, a SUBSEQUENT pairing could look to see if we have that UID and thingTypeUID (for the device being paired), that already has the DSK key recorded (thereby allowing the pairing to complete).
Granted that would make pairing a multi-step process, but it would eliminate having to hack the pairing process and/or UI.
Can you point me to the S2 spec you’re basing your code on?