Blue Iris motion detection to activate smart app

Thanks for this Kristopher and all those this helpful hints above.

I wanted to document the steps that got this working for me all in one post, as it took a bunch of mistakes to get working.

  1. Create the SmartApp in IDE and enable oauth
  2. Create a Simulated Motion Sensor for each camera
  3. When setting up the SmartApp via Marketplace>My Apps, if you don’t get the URL code copied quickly, it will change and become invalid. Same with if you later reopen the SmartApp instance linked to the simulated sensor. For that reason, quickly copy the URL into a text editor and click ‘Done’. In iOS you can’t copy/paste the text, which is lame. A screenshot might be helpful.
  4. In Blue Iris, right click the camera>Camera Properties>Alerts>Request from a web service>Configure. Change “http:” to “https:” Now enter the URL from the Smart App (minus the https://, of course). But not so fast! Depending on where you live, you will need to change the URL to match how it looks in your IDE page. For me in the USA, that means changing “graph.api.smartthings.com” to “graph.na02-useast1.api.smartthings.com” If you don’t do this you will get a 403 error.
  5. If you enter anything in the POST Text field you will get a 405 error. Leave it blank.
  6. Click Test. If it worked, you should get “Received 0 bytes”
  7. Don’t go testing your camera yet or you will be disappointed. You must “OK” out of all the dialogs for it to take affect (trust me I wasted about 30 minutes before I closed the last dialog and then it worked).

I hope that saves some of you trouble!