Skip to content

Instantly share code, notes, and snippets.

View tylerlange's full-sized avatar

Tyler Lange tylerlange

View GitHub Profile
/**
* Door Knocker
*
* Author: [email protected]
* Date: 9/10/13
*
* Let me know when someone knocks on the door, but ignore
* when someone is opening the door.
*/
/**
* Weather Station Controller
*
* 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
*
@tylerlange
tylerlange / gist:638d8d602d33c7929e42
Created April 23, 2015 16:41
Unlock it when I arrive
/**
* Unlock It When I Arrive
*
* Author: SmartThings
* Date: 2013-02-11
*/
definition(
name: "Unlock It When I Arrive",
namespace: "smartthings",
/**
* Zen Thermostat
*
* Author: Zen Within
* Date: 2015-02-21
*/
metadata {
// Automatically generated. Make future change here.
definition (name: "Zen Thermostat", namespace: "zenwithin", author:
"ZenWithin") {
tiles {
standardTile("toggle", "device.door", width: 2, height: 2) {
state("unknown", label:'${name}', action:"refresh.refresh", icon:"st.doors.garage.garage-open", backgroundColor:"#ffa81e")
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-opening", backgroundColor:"#ffe71e")
state("closing", label:'${name}', icon:"st.doors.garage.garage-closing", backgroundColor:"#ffe71e")
}
standardTile("open", "device.door", inactiveLabel: false, decoration: "flat") {
@tylerlange
tylerlange / cree-bulb.groovy
Last active August 29, 2015 14:15
cree-bulb.groovy
/**
* Cree Bulb
*
* 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
*
/**
* Darken Behind Me
*
* Author: SmartThings
*/
definition(
name: "Darken Behind Me",
namespace: "smartthings",
author: "SmartThings",
description: "Turn your lights off after a period of no motion being observed.",
metadata {
// Automatically generated. Make future change here.
definition (name: "SmartSense Multi", namespace: "smartthings", author: "SmartThings") {
capability "Three Axis"
capability "Contact Sensor"
capability "Acceleration Sensor"
capability "Signal Strength"
capability "Temperature Measurement"
capability "Sensor"
capability "Battery"