I’ve successfully created a simulated switch following these directions. I need to have the virtual switch send a learn command (via the SmartThings hub) so that I can include it to another hub. I think the next step is to create a Device Handler where I can add a command for the virtual switch to go into learning mode at the same time I’ve asked my other hub to go into Inclusion mode. If so, I’ve found ZWave commands in the SmartThings API to learn or add a device, but I’m not sure where to start. I’ve included some additional details at the bottom of this post in case it’s helpful.
Can anyone help? Has anyone done this before and can share some sample code?
I have a SmartThings hub (Hub V2) and a Go Control 2Gig control panel alarm system. The 2Gig alarm system supports Z-wave, but in order to control device you need to add them via the panel rather than just having them on the network itself. My goal is to pair a virtual switch with the 2Gig control panel that will turn on when the alarm has gone off. Then my SmartThings app can notify me of the alarm. I have already created the virtual switch that I can control via the SmartThings app and I can see it on the 2Gig ZWave network, but I can’t control it unless I click add device on the 2Gig panel while the virtual device is sending a learn command out (via the hub). That’s where I’m stuck and would love some help.