ogiewon
April 24, 2016, 11:12am
327
Daniel, take a look at these detailed instructions as an example of how to use the Virtual Devices and Multiplexer Apps from my github repo. Obviously you’ll want to use the “Relays” sample code instead of the “Doors” code mentioned in this post.
Ryan,
Not a stupid question… It took me quite some time to get my head in the SmartThings game…
Here are the basic steps to using ST_Anything_Doors:
Load ST_Anything_Dooor.ino on your Arduino (requires all of the associated library files to have also been installed in your Arduino Libraries folder.) Sounds like you’ve done this already.
Create a new “ST_Anything_Doors” DeviceType in the ST IDE (under Device Handlers) and paste in the ST_Anything_Doors.device.groovy code. Save and Publish. Sounds like you’ve done this already.
In the ST IDE (under Devices), change the Device Type of your Arduino to your new “ST_Anything_Doors” DeviceType from step 2. Sounds like you’ve done this already.
Create a new “Virtual Contact Sensor” DeviceType in the ST IDE (under Device Handlers) and paste…