[OBSOLETE] Ridiculously Simple Virtual Garage Door

pmckinnon
Fri, 21 Apr 2017 20:51:59 +0000
Community Created SmartApps

What it does:

Combines an actuator switch device and multisensor (contact/acceleration) into a single logical garage door device (capability.doorControl)

Properly reflects the state of the door if opened/closed externally (door-button, garage remote, etc)

opens/closes immediately when you tell it to

What it doesn’t do:

Attempt to retry close/open operations if they don’t succeed

Automate open/close operations based on other events (these automations can be accomplished with higher-level smartapps using this Virtual Garage Door device)

Doesn’t this already exist?
There are other implementations with a similar purpose, but they either rely on Smartthings’ simulated garage door device which isn’t optimal for this purpose, or they support a bunch of complicated automations which can already be accomplished with other more generic smartapps once you have a coherent virtual garage door device available.

Installation:
Install both the Virtual Garage Door device and Virtual Garage Door Manager smartapp, configure the smartapp with your door actuator and multisensor as well as the virtual device.

github.com

smartish-home/pmckinnon.smartthings/blob/master/smartapps/pmckinnon/virtual-garage-door-manager.src/virtual-garage-door-manager.groovy

/**
 *  Virtual Garage Door Manager
 *
 *  Copyright 2017 Patrick McKinnon
 *
 *  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.
 *
 *  Author: Patrick McKinnon (patrick@ojolabs.com)
 */

definition(
    name: "Virtual Garage Door Manager",
    namespace: "pmckinnon",

This file has been truncated. show original

github.com

smartish-home/pmckinnon.smartthings/blob/master/devicetypes/pmckinnon/virtual-garage-door.src/virtual-garage-door.groovy

/**
 *  Virtual Garage Door
 *
 *  Copyright 2017 Patrick McKinnon
 *
 *  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.
 *
 *  Author: Patrick McKinnon (patrick@ojolabs.com)
 */
metadata {
    definition (name: "Virtual Garage Door", namespace: "pmckinnon", author: "patrick@ojolabs.com") {
        capability "Actuator"
        capability "Door Control"

This file has been truncated. show original

32 posts - 14 participants