Skip to content

Instantly share code, notes, and snippets.

Last active September 30, 2015 14:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
* Test
* Copyright 2015 Brian Steere
* 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:
* 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.
* A test with quotes "thing in quotes"
name: "Test",
namespace: "dianoga",
author: "Brian Steere",
description: "test with \"quotes\"",
category: "",
iconUrl: "",
iconX2Url: "",
iconX3Url: "")
preferences {
section("Title") {
input "outlet", "capability.switch", multiple: false
input "contact", "capability.contactSensor", multiple: false
def installed() {
log.debug "Installed with settings: ${settings}"
def updated() {
log.debug "Updated with settings: ${settings}"
def initialize() {
subscribe(contact, "contact", myHandler)
def myHandler(evt) {
log.debug "$outlet.currentSwitch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment