Skip to content

Latest commit

 

History

History
87 lines (76 loc) · 2.83 KB

ALARM.md

File metadata and controls

87 lines (76 loc) · 2.83 KB

HW Setup

  1. Attach the smartthings sheild to the arduino Note: Match up the pin labels between the two boards.
  2. Setup the alternate serial pins jumper pin 2 -> 14 (tx3) jumper pin 3 -> 15 (rx3) set switch on shield to D2/D3 Note: This allows you to troubleshoot using the serial monitor also this is the only way i've gotten everything to work

Arduino Setup

  1. Download the ST_anything project

    git clone git@github.com:DanielOgorchock/ST_Anything.git 
    
  2. Copy the Skectes and Libraries folders from the project in othe Arduino directory

  3. Open the Arduino App and load the ST_Anything Sketch Arduino/Sketches/ST_Anything_Doors_Windows/ST_Anything_Doors_Windows.ino

  4. complile the sketch (The check icon)

  5. Upload the compiled sketch to the arduino

Pairing smartthings shield with hub

  1. Power on the arduion with sheild attached
  2. In the App go into pairing mode looking for a device
  3. Hit the "switch" button on the St sheild
  4. Should pair as an Arduion ThingSheild

Setup the Device Handler

  1. Login to the smarthings api https://graph.api.smartthings.com/login/auth
  2. Click on "My Device Handlers"
  3. Click on "+ New Device Handler"
  4. Select "From Code" Tab
  5. Paste code from Groovy/ST_Anything_Doors_Windows.groovy file in the repo
  6. Click on "Create"
  7. Click on "Save"
  8. Click on "Publich" -> "For Me"
  9. Click on "My Devices"
  10. Select your "Arduino ThingShield"
  11. Click on Edit
  12. Change type to "St_Anything" Note: It's at the bottom of the list
  13. Click on Update button
  14. Relogin to app on phone
  15. Click on the "Arduino thingShield" thing You should now see a bunch of tiles

Verify that everything is working

  1. Open up the arduino serial monitor You should see a bunch of "Sending" events. If not check the jumpers from 2/3 to 14/15

Setup the multiplexer (Breaks out the sensors under the sheild into sepearate virtual ones)

  1. In the API
  2. select "MySmartApps
  3. Select "+New SmartApp
  4. Click on Code tab
  5. Paste the Groovy/ST_Anything_Doors_Windows/ST_Anything_doors_Windows_Multiplexer.smartapp.groovy
  6. Click on "Create"
  7. Click on "Save"
  8. Click on "Public" -> "For Me"

Create the Virtual Devices

Create the handlers

  1. Select "My Device Handlers"
  2. Select "+Create New Device Handler"
  3. Select "From Code"
  4. Paste the Groovy/VirtualDevices/VirtualContactSensor.device.groovy
  5. Click on "Create"
  6. Click on "Save"
  7. Click on "Public" -> "For Me"
  8. Repeat for: "VirtualMotionSensor.device.groovy" "VirtualDoorControl.device.groovy"

Create a device for each contact switch (You will be using)

Type is

Continue here www.kindrickcoleman.com/index.php/Tech-Blog/total-noob-guide-to-move-your-old-wired-security-system-to-smartthings.html

Need to

Create virtual devices for each

Customize for your house

  1. Edit the schetch change the variables to match your zones