09-06-2023 06:51 AM
I would like to open a sprinkler when an animal is detected on a camera. I can control the sprinkler through a POST request. How could I automate the "animal detected on camera" --> "POST request" with Google Home Automation (or other ideas you may have)? Any way to create a "virtual device" which action would be to send that request? Any other ways?
Answered! Go to the Recommended Answer.
09-08-2023 04:35 AM
While I didn't manage with Smartthings, I did make it work with IFTTT. I just needed to create an Applet with a Webhooks action. On the Google side, create a script with the IFTTT scene as action. The IFTTT account needs to be connected with the Google Home App, and then the IFTTT scene will appear as autocomplete in the script editor.
09-06-2023 12:10 PM
Try using Samsung SmartThings. You can create a virtual device using the advanced features available at https://my.smartthings.com/advanced/devices. Later, link SmartThings with Google Home by navigating to 'Works with Google' in the settings. You should be able to configure a device to use a URL for GET requests; however, I'm not sure about using a POST request. Give it a try.
09-07-2023 07:31 AM
Thank you that sounds like a great idea. However I could not find how to run http requests in Smartthings (or any custom command for that matter), even after searching and reading quite a bit :-/. The closest I got was that I think I need to create a SmartApp(?). From the URL you give I don't see how to add anything except predefined devices. Any additional hints or pointer (I have never used Smartthings before)?
09-08-2023 04:35 AM
While I didn't manage with Smartthings, I did make it work with IFTTT. I just needed to create an Applet with a Webhooks action. On the Google side, create a script with the IFTTT scene as action. The IFTTT account needs to be connected with the Google Home App, and then the IFTTT scene will appear as autocomplete in the script editor.
09-13-2023 12:38 PM
Hi folks,
Thanks for visiting the Community.
It looks like this concern has finally reached its resolution. Glad to know that using IFTTT made it work with your devices.
By the way, we appreciate your suggestions, @Cosacalo. That's also helpful!
If you have additional questions or concerns relating to this topic, feel free to respond to this thread and the Community would gladly lend a hand.
Cheers,
Princess