Skip to content

Instantly share code, notes, and snippets.

@mckeed
mckeed / intermatic-dimmer.groovy
Created July 31, 2014 22:04
Intermatic Dimmer SmartThings Device Type
metadata {
// Automatically generated. Make future change here.
definition (name: "Intermatic Dimmer", namespace: "mckeed", author: "Duncan") {
capability "Switch Level"
capability "Actuator"
capability "Switch"
capability "Refresh"
capability "Sensor"
}
@mckeed
mckeed / intermatic-switch
Created August 1, 2014 01:19
Intermatic Switch SmartThings Device Type
metadata {
// Automatically generated. Make future change here.
definition (name: "Intermatic Switch", namespace: "mckeed", author: "Duncan") {
capability "Actuator"
capability "Switch"
capability "Refresh"
capability "Sensor"
fingerprint inClusters: "0x25"
}
@mckeed
mckeed / zwave-garage-door.groovy
Last active July 17, 2016 19:39
Z-Wave Garage Door Opener device type handler
/**
* Z-Wave 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
*
@mckeed
mckeed / ridiculously-automated-zwave-garage-door.groovy
Last active March 20, 2019 17:53
Ridiculously Automated Garage Door for GD00Z
/**
* Ridiculously Automated Garage Door
*
* Author: SmartThings
*
* Monitors arrival and departure of car(s) and
*
* 1) opens door when car arrives,
* 2) closes door after car has departed (for N minutes),
* 3) opens door when car door motion is detected,
@mckeed
mckeed / accessory-switch.groovy
Created November 12, 2014 04:46
Z-Wave Accessory Switch SmartThings Device Type
metadata {
// Automatically generated. Make future change here.
definition (name: "Accessory Switch", namespace: "mckeed", author: "Duncan") {
capability "Switch"
capability "Switch Level"
capability "Sensor"
command "associate"
fingerprint deviceId: "0x12"
@mckeed
mckeed / aeon-siren-with-sound-cmds.groovy
Last active October 24, 2018 01:56
Aeon Siren w/sound commands
/**
* Aeon Siren with Sound Commands + revert to default
*
* Author: SmartThings
* Date: 2014-07-15
*/
metadata {
definition (name: "Aeon Siren", namespace: "smartthings", author: "SmartThings") {
capability "Actuator"
capability "Alarm"
@mckeed
mckeed / rgbw-light.groovy
Created July 17, 2015 04:09
Z-Wave RGBW Light device handler
/**
* 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
@mckeed
mckeed / aeon-rgbw-bulb.groovy
Created July 17, 2015 04:10
Aeon Labs RGBW LED Bulb device handler
/**
* 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
@mckeed
mckeed / aeon-multisensor-6.groovy
Last active May 15, 2016 19:06
Aeon Labs Multisensor 6 device handler
/**
* 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
@mckeed
mckeed / encrypto
Created October 15, 2015 15:45
Shell script for easy encrypting of folders using keybase (I'm not a shell script master so let me know if there's errors)
if [ -d "$2" ]; then
( set -x
tar -cz "$2" | keybase encrypt -bs $1 -o "$2".tgz.gpg
)
elif [ -f "$2" ]; then
( set -x
keybase encrypt -bs $1 $2
)
else
echo "Usage: encrypto keybaseuser path"