SmartThings interfacing with local REST service

You’ll be using the hubAction command to pass commands to the device. Check out the Generic Camera Device type for an example of how to use this function (it’s kind of tricky):

Just as a note; Setting your Device Network ID (DNI) as the devices IP:PORT in Hex is very important. Also, you need to return the hubAction command if you are using it within another function.

2 Likes