Need to add a virtual button (not switch) for Go Control Garage door opener
Trying to figure how or find a DTH for a virtual button that I can tie into a Go Control garage door opener. The classic ST app has a virtual switch. But that doesn't seem to work well for something like a garage door that only requires a momentary pulse to open/close. I know its possible, since I had done it at my previous home based on a old youtube video. But that video is no longer out there.
Can anyone point me to a DTH or instructions on how to set up a virtual button that I can tie into something like a garage door zwave device? thanks.
Posted Mar 10, 2020, 3:09 PM UTC
The SmartThings repo also has a momentary button device type if that’s what you’re looking for. It should be fairly easy to modify the virtual switch code to make it momentary too - possibly just need to add one line of code.
I'm assuming you mean this one?
https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/61b864535321a6f61cf5a77216f1e779bde68bd5/devicetypes/smartthings/zwave-virtual-momentary-contact-switch.src/zwave-virtual-momentary-contact-switch.groovy
Thanks - I'll give it a try! Just have to figure out how to tie it to the GoControl device.
That’s for a zwave device. However, it’s has the logic in place if you want to understand it. Look at the code for the push routine - it turns on the switch, sets up a short delay and then turns off the switch. That’s the change that can be made in the virtual switch handler to make it momentary