03-19-2025 05:16 AM
I need to control a commercial smart outlet device in google home with a custom logic algorithm ( If logic true, set device to on).
What options do I have?
Would a matter outlet device be preferable?
Answered! Go to the Recommended Answer.
03-19-2025 12:49 PM
For controlling a commercial smart outlet with custom logic, you have several options:
What specific conditions are you trying to evaluate in your logic?
03-19-2025 12:49 PM
For controlling a commercial smart outlet with custom logic, you have several options:
What specific conditions are you trying to evaluate in your logic?
03-21-2025 07:22 AM
Thank you for your answer.
The parameters (conditions) to use in the logic are based on input data from a weather api (rain forecast and observations), and past irrigation.
I was thinking of logging and calculating these input data in a Google sheet using apps script and then automatically calling Google home to set the outlet on, either directly or using a Google cloud run function.
I think the main problem has to do with using an external script with custom logic to interact with Google home. However, Google home is evolving, and there might be a solution now with "the new Google home".
Can you give me guidance and/or references on how to use custom logic with Google home routines and/or Google Smart Home SDK as you mentioned?
/thanks
03-25-2025 11:13 AM
I recommend using our Smart Home Actions platform. This will let you connect your weather-based irrigation logic to Google Home with minimal complexity.
Start with our quickstart guide at https://developers.home.google.com/smart-home, which walks through setting up your first Smart Home Action.