<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom logic to control devices in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/705657#M8518</link>
    <description>&lt;P class="whitespace-pre-wrap break-words"&gt;For controlling a commercial smart outlet with custom logic, you have several options:&lt;/P&gt;
&lt;OL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Matter outlets are indeed preferable as they offer better interoperability and local control. With Matter, you can use the Google Home API to implement your conditional logic and control the device.&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;For custom logic implementation, you could use either:
&lt;UL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Google Home Routines with automation triggers&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;A third-party integration platform like Home Assistant&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;Direct API integration using the Google Smart Home SDK&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="whitespace-pre-wrap break-words"&gt;What specific conditions are you trying to evaluate in your logic?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 19:49:57 GMT</pubDate>
    <dc:creator>Suc_dpe</dc:creator>
    <dc:date>2025-03-19T19:49:57Z</dc:date>
    <item>
      <title>Custom logic to control devices</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/705477#M8515</link>
      <description>&lt;P&gt;I need to control a commercial smart outlet device in google home with a custom logic algorithm ( If logic true, set device to on).&lt;BR /&gt;What options do I have?&lt;BR /&gt;Would a matter outlet device be preferable?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 12:16:03 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/705477#M8515</guid>
      <dc:creator>Johan5</dc:creator>
      <dc:date>2025-03-19T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom logic to control devices</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/705657#M8518</link>
      <description>&lt;P class="whitespace-pre-wrap break-words"&gt;For controlling a commercial smart outlet with custom logic, you have several options:&lt;/P&gt;
&lt;OL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-decimal space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Matter outlets are indeed preferable as they offer better interoperability and local control. With Matter, you can use the Google Home API to implement your conditional logic and control the device.&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;For custom logic implementation, you could use either:
&lt;UL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;Google Home Routines with automation triggers&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;A third-party integration platform like Home Assistant&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;Direct API integration using the Google Smart Home SDK&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="whitespace-pre-wrap break-words"&gt;What specific conditions are you trying to evaluate in your logic?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 19:49:57 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/705657#M8518</guid>
      <dc:creator>Suc_dpe</dc:creator>
      <dc:date>2025-03-19T19:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom logic to control devices</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/706332#M8525</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The parameters (conditions) to use in the logic are based on input data from a weather api (rain forecast and observations), and past irrigation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 14:22:16 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/706332#M8525</guid>
      <dc:creator>Johan5</dc:creator>
      <dc:date>2025-03-21T14:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom logic to control devices</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/707511#M8535</link>
      <description>&lt;P class="whitespace-pre-wrap break-words"&gt;I recommend using our Smart Home Actions platform. This will let you connect your weather-based irrigation logic to Google Home with minimal complexity.&lt;/P&gt;
&lt;H2 class="text-xl font-bold text-text-200 mt-1 -mb-0.5"&gt;Key Resources&lt;/H2&gt;
&lt;UL class="[&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc space-y-1.5 pl-7"&gt;
&lt;LI class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Smart Home Actions&lt;/STRONG&gt;: &lt;A class="underline" href="https://developers.home.google.com/cloud-to-cloud/guides" target="_blank"&gt;https://developers.home.google.com/cloud-to-cloud/guides&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Apps Script Weather Integration&lt;/STRONG&gt;: &lt;A class="underline" href="https://developers.google.com/apps-script/guides/services/external" target="_blank"&gt;https://developers.google.com/apps-script/guides/services/external&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Google Smart Home Documentation&lt;/STRONG&gt;: &lt;A class="underline" href="https://developers.google.com/assistant/smarthome/overview" target="_blank"&gt;https://developers.google.com/assistant/smarthome/overview&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Cloud Functions&lt;/STRONG&gt;: &lt;A class="underline" href="https://cloud.google.com/functions" target="_blank"&gt;https://cloud.google.com/functions&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="whitespace-normal break-words"&gt;&lt;STRONG&gt;Smart Home Local Execution&lt;/STRONG&gt;: &lt;A class="underline" href="https://developers.google.com/assistant/smarthome/concepts/local" target="_blank"&gt;https://developers.google.com/assistant/smarthome/concepts/local&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2 class="text-xl font-bold text-text-200 mt-1 -mb-0.5"&gt;Getting Started&lt;/H2&gt;
&lt;P class="whitespace-pre-wrap break-words"&gt;Start with our quickstart guide at &lt;A class="underline" href="https://developers.home.google.com/smart-home" target="_blank"&gt;https://developers.home.google.com/smart-home&lt;/A&gt;, which walks through setting up your first Smart Home Action.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 18:13:49 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Custom-logic-to-control-devices/m-p/707511#M8535</guid>
      <dc:creator>Suc_dpe</dc:creator>
      <dc:date>2025-03-25T18:13:49Z</dc:date>
    </item>
  </channel>
</rss>

