New smart app to link the virtual/simulated garage door device with two actual devices

FYI, I was having the same issue that quagga described above and finally got it working again after removing and readding all of the devices then manually opening/closing the door a few times. Any idea why it got out of sync in the first place? Nice app, by the way!

I had the same issue yesterday. I believe the issue is with Smartthings platform. They are having issues with timed events. Since this app uses Runin() I would think it would be affected. It seems to be working again, but smartthings just posted they are having issues. http://status.smartthings.com/. Love the app!!

1 Like

also it oculd happen if the platform is too slow and it doesn’t sense the door open or closed in time… Hence why I recommended increasing the timeout. But you are right… timeout code uses runin… so that would also explain it.
Thanks for the praise

Thanks for all the replies. I need to add that I like the app a lot and thanks to Lgkahn.
I see some suggested that the runin could be adjusted which is set at 6. What is the best for this? 6 or 1?
I will change the timeout to 25 or 30. As I understand it, that is not the same as the runin. Correct?

1 Like

There are two runnins one in the default virtual door device.
That should be reduced from 6 to 1 (not mandatory) otherwise when you press the virtual button the actual door doesn’t start closing till that time expires.

The other runnin is the timeout as you surmise that is how long it waits after you press the virtual garage door button before checking if the actual door closed or not (via sensor) and if not try to resync.

How to change so its not checking if door is closed after opening?
I have connected to a door sensor that is always closed because my garage door automatically closes.

kimmi

I don’t understand this device is to link two devices a opener and a sensor… if you don’t have a sensor for open closed you don’t need this smartapp and the virtual device…

because i want to set it up at a garage opener that auto closes , and not a momentary switch with wrong status

this wont work for that it needs to read the status of sensor to check the state of the garage door. you cannot assume it is always closed… I still don’t understand the door must be open at times so you can drive in… so it would be appropriate for the sensor to show open at times ?

whether it auto closes or not just put a cheap door sensor or tilt sensor on anyway. and it will work fine

ie

@Lgkahn Thanks for writing this app.

I set this all up tonight and it works great. The only issue I am having is with my ST multi. With it set as device type “SmartSense Garage Door Multi” the status is always showing OPEN. I am at a loss as I am confident this is the right device type to be using. Does this sound like a sensor issue? I just pulled it out of the box tonight.

do you see me mentioning that device type… no… re-read the first posting… you have it installed wrong. is that the device you are using as the open close sensor … if so again that is wrong… it should just be multi not garage door multi

Thanks for the clarification. Working flawlessly now. I had two different posts open and got myself confused (and it was late). I am still new to the whole ST way of doing things so still learning :smile:. Thanks again!!!

sorry if I came off gruff it was late… anyway glad you got it working…

1 Like

No worries. I have a lot to learn still!

1 Like

I was able to install the app and it works great from my IOS Smartthings app. However, when I try closing the garage door with my Amazon Echo (“Alexa, close the garage door”), my garage door does not close. Amazon Echo says, “OK”, but nothing happens.

Opening the garage from Echo (“Alexa, open the garage door”) functions fine. Again, both open and close work from my IOS Smartthings app.

Can you think of anything that could be causing this issue?

Also, thanks for this app!

I’m not sure what you are seeing with alexa but alexa does not see my virtual garage door device… check in alexa app/settings/connected home… it may be trying to control the switch you installed for the garage door directly as that is something that alexa can control switches and lights…

that would explain the issue…

1 Like

if you modify the stock virtual garage door opener device type and change your device type to use the modified one… you should be able to get it to work with alexa…

you will have to add switch capability to the device and have the switch on/off pass trough to the door control.

here is the modified device type…as described above.
. for some reason wouldn’t let me check in to my github…

make sure you are using this device type ie this custom one not the stock one in your devices
and you would need to select the virtual garage door device name in the alexa smartapp in smartthings
then have alexa rediscover devices

side note: the normal garage door switch not this modified virtual one will also appear in the alexa smartapp. make sure NOT to select that as that is probably what you have doen and wont work correctly.

alexa open cindys garage door
and alexa close cindys garage door
now works fine for me after doing all this

/**

  • Z-Wave Garage Door Opener
  • Copyright 2014 SmartThings
  • Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at:
  •  http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
  • on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  • for the specific language governing permissions and limitations under the License.

*/
metadata {
definition (name: “Simulated Garage Door Opener”, namespace: “smartthings/testing”, author: “SmartThings”) {
capability "Actuator"
capability "Door Control"
capability "Garage Door Control"
capability "Contact Sensor"
capability "Refresh"
capability "Sensor"
capability “switch”

}

simulator {
	
}

tiles {
	standardTile("toggle", "device.door", width: 2, height: 2) {
		state("closed", label:'${name}', action:"door control.open", icon:"st.doors.garage.garage-closed", backgroundColor:"#79b821", nextState:"opening")
		state("open", label:'${name}', action:"door control.close", icon:"st.doors.garage.garage-open", backgroundColor:"#ffa81e", nextState:"closing")
		state("opening", label:'${name}', icon:"st.doors.garage.garage-closed", backgroundColor:"#ffe71e")
		state("closing", label:'${name}', icon:"st.doors.garage.garage-open", backgroundColor:"#ffe71e")
		
	}
	standardTile("open", "device.door", inactiveLabel: false, decoration: "flat") {
		state "default", label:'open', action:"door control.open", icon:"st.doors.garage.garage-opening"
	}
	standardTile("close", "device.door", inactiveLabel: false, decoration: "flat") {
		state "default", label:'close', action:"door control.close", icon:"st.doors.garage.garage-closing"
	}

	main "toggle"
	details(["toggle", "open", "close"])
}

}

def parse(String description) {
log.trace “parse($description)”
}

def open() {
sendEvent(name: “door”, value: “opening”)
runIn(1, finishOpening)
}

def close() {
sendEvent(name: “door”, value: “closing”)
runIn(1, finishClosing)
}

def finishOpening() {
sendEvent(name: “door”, value: “open”)
sendEvent(name: “contact”, value: “open”)
}

def finishClosing() {
sendEvent(name: “door”, value: “closed”)
sendEvent(name: “contact”, value: “closed”)
}

def on()
{
open()
}

def off()
{
close()
}

2 Likes

Thank you sir! Working perfect from my Amazon Echo and my Smartthings app. Appreciate it, mate!!!

1 Like

And plans to add a presence sensor so it opens and closes when you come and go?

what code are you using? I’m getting a licensing error everytime I try and publish.