Smart Home Monitor only supports motion sensor or contact sensor inputs. In order to simulate the sort of event SHM is looking for, I needed a virtual motion sensor and the ability for Sighthound to activate it. I stumbled upon a SmartApp from an iSpy user called "HTTP Motion Endpoint" which did exactly what I needed and so I figured I'd share it here.
Here's a rough guide to creating a motion sensor device in SmartThings that is controlled by Sighthound.
- Create a virtual "Simulated Motion Sensor" device in the ST developer IDE
- Create a SmartApp and enable oAuth using the code posted here.
- Install the application, select your virtual Simulated Motion Sensor device, and copy the "Activate" URL provided.
- Download a copy of cURL and put it in a folder with no spaces (like C:\cURL)
- In the Sighthound rule editor > If Seen > Take Actions > Run the command: enter a command to launch cURL to GET your "Activate" REST URL, something like the following:
- Code: Select all
C:\cURL\cURL.exe -v https://graph.api.smartthings.com/api/smartapps/installations/<installation>/active?access_token=<token>
