Relased, this should be final version, two DH’s one for a gate and one for a garage door and APP capable of using one or two open/close switches and one or two open close sesnors.
APP
/**
* Copyright 2015 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.
*
* Author: LGKahn kahn-st@lgk.com
* version 2 user defineable timeout before checking if door opened or closed correctly. Raised default to 25 secs. You can reduce it to 15 secs. if you have custom simulated door with < 6 sec wait.
Version 3 made compatable with two sensors and two switches M Cockcroft 11/09/2019
*/
definition(
name: "LGK Virtual Garage Door",
namespace: "lgkapps",
This file has been truncated. show original
Gate DH
/**
* Simulated Gate 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 Gate Opener", namespace: "lgkapps", author: "SmartThings & Mark-C") {
capability "Actuator"
capability "Door Control"
capability "Garage Door Control"
This file has been truncated. show original
Garage DH
/**
* Simulated 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: "lgkapps", author: "SmartThings & Mark-C") {
capability "Actuator"
capability "Door Control"
capability "Garage Door Control"
This file has been truncated. show original