<?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 Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatically? in Smart Home Developer Forum</title>
    <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/539419#M4570</link>
    <description>&lt;P&gt;I'm just dipping my toe into home scripting (but I'm a software architect with decades behind me). I'd like to set up loops that either run infinitely (or a really long time) but can be stopped by command. I haven't seen anything in the documentation on what happens should you attempt recursion (issue a command to start the currently running script.)&lt;/P&gt;&lt;P&gt;Similarly, if I just brute forced a script with lots of commands and time delays, but then wanted to terminate execution of the script, I haven't found any formal stop methods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or hidden gems of arcane knowledge?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 13:58:50 GMT</pubDate>
    <dc:creator>BinaryRhyme</dc:creator>
    <dc:date>2023-10-31T13:58:50Z</dc:date>
    <item>
      <title>Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatically?</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/539419#M4570</link>
      <description>&lt;P&gt;I'm just dipping my toe into home scripting (but I'm a software architect with decades behind me). I'd like to set up loops that either run infinitely (or a really long time) but can be stopped by command. I haven't seen anything in the documentation on what happens should you attempt recursion (issue a command to start the currently running script.)&lt;/P&gt;&lt;P&gt;Similarly, if I just brute forced a script with lots of commands and time delays, but then wanted to terminate execution of the script, I haven't found any formal stop methods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or hidden gems of arcane knowledge?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:58:50 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/539419#M4570</guid>
      <dc:creator>BinaryRhyme</dc:creator>
      <dc:date>2023-10-31T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatica</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/543704#M4597</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/452492"&gt;@BinaryRhyme&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out with your issue. To answer you question, the default mode is ON for the execution or implementation of devices .&amp;nbsp;&lt;SPAN&gt;As of now you can change the state of the device by leveraging the capabilities of the condition construct. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:08:44 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/543704#M4597</guid>
      <dc:creator>sipriyadarshi</dc:creator>
      <dc:date>2023-11-06T23:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatica</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/543709#M4598</link>
      <description>&lt;P&gt;That reply makes no sense at all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 23:19:12 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/543709#M4598</guid>
      <dc:creator>BinaryRhyme</dc:creator>
      <dc:date>2023-11-06T23:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatica</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/552628#M5256</link>
      <description>&lt;P&gt;This is a response I got from support:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Google Assistant does not support the concept of loops, so you cannot create a script that will continue to run indefinitely.&lt;/P&gt;&lt;P&gt;Another workaround is to use a third-party automation tool, such as IFTTT or Zapier. These tools allow you to create scripts that can loop indefinitely. For example, you could create an IFTTT applet that turns on a light every minute. This will continue indefinitely until you delete the applet.&lt;/P&gt;&lt;P&gt;While these workarounds are not as convenient as being able to loop a script directly in Google Assistant, they are the only way to achieve this effect at the present time.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 13:59:23 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/552628#M5256</guid>
      <dc:creator>alexanderleej</dc:creator>
      <dc:date>2023-11-28T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Scripts - can you loop? Can you recurse? Can you stop a running script programmatica</title>
      <link>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/552669#M5257</link>
      <description>&lt;P&gt;Thanks for your reply - I've been looking into alternatives for automation scripting... (Home Assistant, IFTTT specifically - I'll check out Zapier).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:46:10 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Smart-Home-Developer-Forum/Google-Home-Scripts-can-you-loop-Can-you-recurse-Can-you-stop-a-running/m-p/552669#M5257</guid>
      <dc:creator>BinaryRhyme</dc:creator>
      <dc:date>2023-11-28T15:46:10Z</dc:date>
    </item>
  </channel>
</rss>

