Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am danlieberman on github.
  • I am dlieberman (https://keybase.io/dlieberman) on keybase.
  • I have a public key whose fingerprint is A244 816C 4C9B 5980 0466 A0EF 6ABA EDA0 6387 574E

To claim this, I am signing this object:

/**
* Scheduled Mode Change - Presence Optional
*
* Author: SmartThings
*
*/
preferences {
section("At this time every day") {
/**
* Off Without Motion
*
* Author: Dan Lieberman
*/
preferences {
section("Detect movement on..."){
input "motion1", "capability.motionSensor", title: "Where?"
}
/**
* SmartWeather Station
*
* Author: SmartThings
*
* Date: 2013-04-30
*/
// for the UI
metadata {
preferences {
/**
* CameraTest
*
* Author: dan@smartthings.com
* Date: 2013-08-15
*/
// for the UI
metadata {
simulator {
// TODO: define status and reply messages here
@danlieberman
danlieberman / ResetAppWithTouch.groovy
Last active December 19, 2015 19:08
Reset SmartApp with AppTouch
/**
* ResetAppWithTouch
*
* Author: dan@smartthings.com
* Date: 2013-07-15
*/
preferences {
section("Reset this device...") {
input "switch1", "capability.switch"
@danlieberman
danlieberman / contact-sensor-acceleration.groovy
Last active December 17, 2015 14:19
Read contact sensor state when processing an acceleration event
/**
* Vibration Active When Closed
*
* Author: dan@smartthings.com
* Date: 2013-04-02
*/
preferences {
section( "When there is vibration on this sensor..." ) {
input "sensor1", "capability.accelerationSensor"