This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata { | |
// simulator metadata | |
simulator { | |
// status messages | |
// none | |
// reply messages | |
reply "'on','delay 2000','off'": "switch:off" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata { | |
simulator { | |
status "locked": "lock:locked" | |
status "unlocked": "lock:unlocked" | |
reply "lock": "lock:locked" | |
reply "unlock": "lock:unlocked" | |
} | |
tiles { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata { | |
// Simulator metadata | |
simulator { | |
// status messages | |
status "ping": "catchall: 0104 0000 01 01 0040 00 6A67 00 00 0000 0A 00 0A70696E67" | |
status "hello": "catchall: 0104 0000 01 01 0040 00 0A21 00 00 0000 0A 00 0A48656c6c6f20576f726c6421" | |
} | |
// UI tile definitions | |
tiles { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata { | |
simulator { | |
// reply messages | |
["strobe","siren","both","off"].each { | |
reply "$it": "alarm:$it" | |
} | |
} | |
tiles { | |
standardTile("alarm", "device.alarm", width: 2, height: 2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Garage Door Monitor | |
* | |
* Author: SmartThings | |
*/ | |
preferences { | |
section("When the garage door is open...") { | |
input "multisensor", "capability.threeAxis", title: "Which?" | |
} | |
section("For too long...") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def switchMode{ | |
def map = [:] | |
switch (cmd.mode) { | |
case zigbee.smartShield(text: "F,0").format() | |
break | |
case zigbee.smartShield(text: "F,1").format() | |
break | |
case zigbee.smartShield(text: "F,2").format() | |
break | |
} |