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
/** | |
* Read From Arduino | |
* | |
* Author: urman | |
* Date: 2013-03-14 | |
* Revision 2014-07-10 | |
*/ | |
// for the UI | |
metadata { |
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
/**** | |
* 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 |
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 "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" |
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
/** | |
* Aeon Door/Window Sensor | |
* | |
* Author: SmartThings | |
* Date: 2013-04-23 | |
*/ | |
// for the UI | |
metadata { | |
// simulator metadata |
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
/* | |
* On/Off Shield (example) | |
* | |
* Author: urman | |
* Date: 2013-03-14 | |
* Revision: 2014-07-10 | |
* Capabilities: | |
* Switch | |
* Custom Attributes: | |
* greeting |
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 "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" |
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
/** | |
* App Name: Wireless 3-Way | |
* | |
* Author: chrisb | |
* Date: 2013-07-16 | |
* | |
* This app "groups" a set of switches together so that if any one is turned on | |
* or off, they all will go on or off. This allows them to act as three-way | |
* without needing wiring between the switches. | |
* |
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
/** | |
* App Endpoint API Access Example | |
* | |
* Author: SmartThings | |
*/ | |
preferences { | |
section("Allow Endpoint to Control These Things...") { | |
input "switches", "capability.switch", title: "Which Switches?", multiple: true | |
input "locks", "capability.lock", title: "Which Locks?", multiple: true |
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
<?php | |
//client id and client secret | |
$client = ''; | |
$secret = ''; | |
//hardcode the full url to redirect to this file | |
$url = ""; | |
//STEP 1 - Get Access Code |