Garage door button

Hello

I have a relay connected to a smartthings outlet connected to the two wires controlling my garage door.
My question, is there an app or code made that will turn on the outlet the turn it off when open the door.

  thanks- Joe

You can probably modify the app pasted here: