This page lists the groovy code and installation instructions to install a custom device handler over your SmartThings hub and form part of the larger TriSensor user guide.


For users using SmartThings Hub, TriSensor may require custom device type support until SmartThings adds native compatibility with the sensor. 


SmartThings Hub Instructions for creating your own Device Handler:

http://docs.smartthings.com/en/latest/device-type-developers-guide/quick-start.html


Recommended TriSensor Github code 

https://github.com/robertvandervoort/SmartThingsPublic/blob/master/devicetypes/robertvandervoort/aeon-trisensor.src/aeon-trisensor.groovy

(by Robert Vandavoort)


Follow the steps below:

  1. Login to Web IDE (login here: https://graph.api.smartthings.com/)
  2. Click on "My Locations"
  3. Select your SmartThings Home Automation gateway that you want to put the device handler in.
  4. Select tab "My Device Handlers"
  5. Create a new Device Handler by  clicking on "New Device Handler" button in the upper-right  corner.
  6. Click on "From Code."
  7. Copy Robert Vandavoort code from Github, and paste it into the code section (https://github.com/robertvandervoort/SmartThingsPublic/blob/master/devicetypes/robertvandervoort/aeon-trisensor.src/aeon-trisensor.groovy)

    Pro-Tip: Click on "RAW", CTRL + A (select all text), CTRL + C (copy highlighted text), then click on the code section for SmartThings IDE, then CTRL+V (paste all copied text).

  8. Click on "Save", then wait for the spinning wheel to disappear before continuing.
  9. Click on "Publish" -> "Publish for me"
  10. If you have not paired the TriSensor yet, please skip steps 11 - 16. When you pair TriSensor, the custom device handler should automatically be used.
  11. Install it on your TriSensor by going to "My Devices" page in the IDE
  12. Find your TriSensor.
  13. Go to the bottom of the page for the current TriSensor and click on "Edit."
  14. Find the "Type" field and select your device handler. (should be located at the bottom of the list as Aeon TriSensor).
  15. Click on "Update"
  16. Save Changes