Skip to content

Instantly share code, notes, and snippets.

View gist:6720308
metadata {
// simulator metadata
simulator {
// status messages
status "on": "on/off: 1"
status "off": "on/off: 0"
// reply messages
reply "zcl on-off on": "on/off: 1"
reply "zcl on-off off": "on/off: 0"
View gist:6616375
/****
* Mode Change AWAY
* Bon Voyage with some minor additions
*
* Author: SmartThings
* Date: 2013-03-07
* Mods by Carl Aydelotte
*
* Monitors a set of presence detectors and triggers a mode change when everyone has left plus an indicator light to display when
* the mode is set to AWAY
@aurman
aurman / smartsense-virtual-open-closed.groovy
Created Sep 16, 2013
smartsense-virtual-open-closed.groovy
View smartsense-virtual-open-closed.groovy
/**
* SmartSense Virtual OpenClosed
*
* Author: SmartThings
* Date: 2013-03-07
*/
metadata {
simulator {
status "open": "zone report :: type: 19 value: 0031"
status "closed": "zone report :: type: 19 value: 0030"
@aurman
aurman / read_from_arduino.groovy
Last active Apr 12, 2017
Read string from Arduino
View read_from_arduino.groovy
/**
* Read From Arduino
*
* Author: urman
* Date: 2013-03-14
* Revision 2014-07-10
*/
// for the UI
metadata {
@aurman
aurman / Shield_on_off_hello.ino
Last active Sep 20, 2016
Arduino On Off Hello
View Shield_on_off_hello.ino
//*****************************************************************************
/// @file
/// @brief
/// Arduino SmartThings Shield LED Example
//*****************************************************************************
#include <SoftwareSerial.h> //TODO need to set due to some weird wire language linker, should we absorb this whole library into smartthings
#include <SmartThings.h>
#define PIN_THING_RX 3
View smartsense-garage-door-sensor-button.groovy
/**
* SmartSense Garage Door Sensor Button
*
* Author: SmartThings
* Date: 2013-03-09
*/
metadata {
simulator {
status "acceleration": "acceleration: 1, rssi: 0, lqi: 0"
status "no acceleration": "acceleration: 0, rssi: 0, lqi: 0"
View smartsense-garage-door-multi.groovy
/**
* SmartSense Garage Door Multi
*
* Author: SmartThings
* Date: 2013-03-09
*/
metadata {
simulator {
status "open": "zone report :: type: 19 value: 0031"
status "closed": "zone report :: type: 19 value: 0030"
View momentary-capability.groovy
metadata {
// simulator metadata
simulator {
// status messages
// none
// reply messages
reply "'on','delay 2000','off'": "switch:off"
}
View momentary-button-tile.groovy
/**
* Momentary Button Tile
*
* Author: SmartThings
*
* Date: 2013-05-01
*/
metadata {
// simulator metadata
simulator {
View lock-capability.groovy
metadata {
simulator {
status "locked": "lock:locked"
status "unlocked": "lock:unlocked"
reply "lock": "lock:locked"
reply "unlock": "lock:unlocked"
}
tiles {