Need to add a virtual button (not switch) for Go Control Garage door opener

Help :table_flip:

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

106
jinxjy•

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.

1
zingbatOP•
1
jinxjy•

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

2
incond1te•

I have one setup for open and one for close. Msg me in a day if you haven't figured it out and I'll see if I can point you to it.

1
derek_villa•

To play devil's advocate, a switch would work quite well in that situation. You can align the on/off state of the switch with whether the door is open and close.

1
zingbatOP•

Yeah, I see your point. But reason I don't want to a switch is because I'm using the SharpTools app on an Android phone. Which lets me create button widgets on the home screen for any ST device. For switches, it will add two buttons. While a momentary switch will only add one button. Which I can also pin in the quick access pulldown bar.

I guess on the classic ST app - a switch would be fine if setup as a favorite on the main screen.

1