Skip to content

Instantly share code, notes, and snippets.

View bflorian's full-sized avatar

Bob Florian bflorian

View GitHub Profile
@bflorian
bflorian / the-washer-has-stopped.groovy
Last active November 6, 2022 10:41
Turn on a switch when a washing machine has been stopped for a certain period of time.
/*
* Turn on a switch when a washing machine has been stopped for a certain period of time
*
* This app makes use of the runIn() method to turn on the switch the specified period of time
* after the vibration stops. If vibration starts again before the time elapses, then the scheduled
* turn-on event is canceled.
*
*/
preferences {

Keybase proof

I hereby claim:

  • I am bflorian on github.
  • I am bobflorian (https://keybase.io/bobflorian) on keybase.
  • I have a public key ASDWnTeOH5gN-ivN6QyTS5w_7MlJg1LCIJBW4e_oaaXJ0Qo

To claim this, I am signing this object:

metadata {
// simulator metadata
simulator {
status "on": "command: 2003, payload: FF"
status "off": "command: 2003, payload: 00"
// reply messages
reply "2001FF,delay 100,2502": "command: 2503, payload: FF"
reply "200100,delay 100,2502": "command: 2503, payload: 00"
}
/**
* Sample Web Services Application
*
*
* Author: SmartThings
*
* ---------------------+----------------+--------------------------+------------------------------------
* Device Type | Attribute Name | Commands | Attribute Values
* ---------------------+----------------+--------------------------+------------------------------------
* switches | switch | on, off | on, off
/**
* Aeon Home Energy Meter
*
* Author: SmartThings
*
* Date: 2013-05-30
*/
metadata {
// simulator metadata
simulator {
@bflorian
bflorian / event-exporter.groovy
Last active December 17, 2015 12:49
Pushes events to a web service via JSON-encoded POST requests.
/**
* Event Exporter
*
* Author: SmartThings
*
* ---------------------+----------------+--------------------------+------------------------------------
* Device Type | Attribute Name | Commands | Attribute Values
* ---------------------+----------------+--------------------------+------------------------------------
* switches | switch | on, off | on, off
* motionSensors | motion | | active, inactive
@bflorian
bflorian / smartapp-welcome-home-rest-call.groovy
Last active December 17, 2015 03:19
Welcome Home Rest Call, SmartApp that makes a web service call when a contact sensor opens.
/**
* Welcome Home
*
* Make a web service call when your front door opens,
*
* Author: SmartThings
*/
preferences {
section("When the door opens/closes...") {
input "contact1", "capability.contactSensor", title: "Where?"
/**
* Button Shield
*
* Author: bob
* Date: 2013-02-08
*/
metadata {
// simulator
simulator {
@bflorian
bflorian / weather-alert-monitor.groovy
Last active December 17, 2015 00:29
Weather Alert Monitor -- SmartApp that listens to alert events from the SmartWeather Station Tile device, and sends alerts as push or SMS notifications.
/**
* Weather Alert Monitor
*
* Author: bob
*
* EXAMPLE NOT CURRENTLY PUBLISHED
*
* Date: 2013-04-30
*/
preferences {

Keybase proof

I hereby claim:

  • I am bflorian on github.
  • I am bflorian (https://keybase.io/bflorian) on keybase.
  • I have a public key whose fingerprint is 63BF 8C9F 0611 B500 DE41 D799 0CAF 074B 1520 093F

To claim this, I am signing this object: