Skip to content

Instantly share code, notes, and snippets.

View tylerlange's full-sized avatar

Tyler Lange tylerlange

View GitHub Profile
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"
/**
* 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.",
@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
*
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") {
/**
* Zen Thermostat
*
* Author: Zen Within
* Date: 2015-02-21
*/
metadata {
// Automatically generated. Make future change here.
definition (name: "Zen Thermostat", namespace: "zenwithin", author:
"ZenWithin") {
@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",
/**
* 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
*
/**
* 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.
*/
@tylerlange
tylerlange / keybase.md
Created August 6, 2015 18:20
keybase.md

Keybase proof

I hereby claim:

  • I am tylerlange on github.
  • I am tylerlange (https://keybase.io/tylerlange) on keybase.
  • I have a public key whose fingerprint is DD5F 23B2 D6B2 FD2A A4D2 97C1 881F 3509 A971 BFF2

To claim this, I am signing this object:

/**
* 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