SmartThings Community

[RELEASE] Enhanced Linear GD00Z-4/GD00Z-5/GoControl/Iris/others Device Handler with Switch and Automated Garage Door Open/Close when People Arrive/Leave/Timer

smartapp_alerts
dth_garage
smartapp_garage
smartapp_security
rboyapps

(Ron) #65

It’s not a smartapp, it’s a device.

ide->my device types->+New Device Types
From Code Tab
Paste code
save


#66

Ahhh perfect, so now that it’s published what do I do next? Sorry still VERY new to all this, as my other post stated i’m looking to automate the door as a CYA. I went ahead and ordered a Ecolink z-wave wireless tilt sensor after reading that this sensor for this GD00Z is not an active sensor but more of a passive sensor.

Just really need to make sure it’s notifying us / closes the door, one of the drawbacks to living is a less than great neighborhood.


#67

Hmm looks like it took some time but finally updated the Garage Door control screen on my mobile. I now have a “power like” button that goes with the door being open/closed.


(Ron) #68

No problem, this stuff it tricky :smile:

You then need to change the device type for your door.

-My Devices
-Click Display Name of your Garage Device, to open device page
-On device page click “Edit”
-Select “Device Type” dropdown and pick “RG Linear GD00Z Garage Door Opener” (unless you renamed it then select that name)


#69

Done and DONE! :slight_smile: Yeah I’m kinda keeping track of what I do, once I get it working constantly with automation I want to do a “Complete N00bie Guide” to getting it working. Most of the time you just need to spoon people once then they’ll 1) understand a lot clearer 2) able to do more things which in turn helps grow the product.

I assume that NOW that I have the Device setup I need to find the corresponding SmartApp to load. The two working together will allow full functionality?

Thank you for your replies, it has helped me a lot already!


#70

This might help:


(Ron) #71

You are correct.

I have two but any smart app that controls a Thermostat should work.

Set ZXT-120 based on schedue.

Set ZXT-120 based on temp.


#72

Sweet making progress!

Using your Device Code + Loaded the Ridiculously Automated Garage Door template, from there I modified the doorOpenCheck. Looking at the code I didn’t want to kick off the doorClose() operation until AFTER the first messages fired, once all of those actions are done I then added the modified code to shut the door.

CODE

def doorOpenCheck()
{
final thresholdMinutes = openThreshold
if (thresholdMinutes) {
def currentState = doorSensor.contactState
log.debug "doorOpenCheck"
if (currentState?.value == “open”) {
log.debug "open for ${now() - currentState.date.time}, openDoorNotificationSent: ${state.openDoorNotificationSent}"
if (!state.openDoorNotificationSent && now() - currentState.date.time > thresholdMinutes * 60 *1000) {
def msg = "${doorSwitch.displayName} has been open for ${thresholdMinutes} minutes"
log.info msg

            if (location.contactBookEnabled) {
                sendNotificationToContacts(msg, recipients)
            }
            else {
                sendPush msg
                if (phone) {
                    sendSms phone, msg
                }
            }
			state.openDoorNotificationSent = true
		}
	}
	else {
		state.openDoorNotificationSent = false
	}

/### Code to close door if it’s left open./
closeDoor()
log.info "Closing ${doorSwitch.displayName} has been open for ${thresholdMinutes} minutes"
sendPush(“Closing ${doorSwitch.displayName} has been open for ${thresholdMinutes} minutes”)
/### End of Code to close door if it’s left open./
}
}

/CODE

So far i’ve tested with phone opening within the ST app, opening with using the button. Also confirmed that if something prevents the door closing (breaking the door beam) it will try to close the door after the next doorOpenCheck runs again.

So far so good! Going to continue to test until my neighbors start wondering WTH I’m doing with the garage door.


(John) #73

Can someone post the finalized code so I can use it once I get the device.

Thanks


(David Baran) #74

ditto!
Please post the final code!


(www.rboyapps.com - Make your home your butler!) #75

Folks this code is available on the RBoy server at http://smartthings.rboyapps.com
This is a paid service which gives you access to all of our the apps/devices. It is not free to redistribute. There are other versions around the forums (as you would have seen), this one is actively maintained by my and my team.

Please refer to the first post for details:


Notification of garage door open?
(Dale C) #76

How did your final tweaks come out? I would like to try this out if you think it has been working well for you. I was thinking how do keep the garage door open if you wanted to override the software timer completely and put it in manual until I manually close it? For example I am working/cleaning out the garage which is normal so I want to completely override the timer from closing the door and in effect keep it in manual mode.


(Ron) #77

My version can be found here. It’s free. And is maintained by me and … my dog :dog: :smile:


#78

I’m using a Rons driver code for my door and it’'s been PERFECT! I’ve added to the SmartApp the ability to Auto shut or not the door. So if I’ve gotta keep the door open longer I can turn the auto shut off.

I added the code to my Noob guide. N00bs guide to ST & GD00Z (Garage Door Controller)

Also I found that getting an more “active” sensor helped make sure the door was shut or open. Ecolink Z-Wave Wireless Tilt Sensor - ECO-TILT-US It’s only 32$ on amazon, since I got that i’ve had zero problems with the code / sensors / door controller.

If you want to keep the door open, just change the setting in the SmartApp, when you’re done change the setting back and it will start doing the checks, the SmartApps seem to handle live changes without a problem.


(Dale C) #79

@Taco Thank you , Thank you !! As a newbie to ST, I truly appreciate the simple steps you lined out so well. :smiley:


(Michael and Jessica) #80

Thanks for the device Ron, but I have a question. what is the outlet icon/button for? All I can see is that toggling it will open the door.


(Ron) #81

This lets you use the “door” as a “switch”. In other words if you have a smart app that only controls a switch you can control the door using that app. It is just a convenience feature and can be safely removed/commented out.


(www.rboyapps.com - Make your home your butler!) #82

Improved the low battery detection and reporting mechanism (this it the garage door position sensor battery) in version 2.1.3


(www.rboyapps.com - Make your home your butler!) #83

Added support for sending momentary notifications for SmartApps to use (e.g. Trigger based pictures)


(Dale C) #84

Thanks Ron! This baby rocks it. I am using it in conjunction with @kevintierney Securifi Key Fob device type New Zigbee Device (Securifi Key Fob)