<?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: Using CONDITIONS within ACTIONS, for automation script in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789722#M62676</link>
    <description>&lt;P&gt;hi &lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;, glad I was a helpful voice in the dark, and your exploration hit on the same solution. I have also found that automations (and start triggers particularly) can be fragile, especially when crossing platforms (Samsung/Tuya/Google Playground) and especially if the triggering event is short-lived.&lt;/P&gt;&lt;P&gt;My only suggestion would be to double up or even treble up. Create your Google Home Playground switch in the Tuya/SmartLife environment and maybe Samsung or some other as well. Set them all, test them all, and reset them all. If only one of them works it doesn't matter if the others don't.&lt;/P&gt;&lt;P&gt;I've also re-designed some of my automations recently to put the automation as close as possible to the device, that is if it only involves Tuya devices build a Tuya Smart Automation and don't write it in Google. This tends to make them more reliable and faster too. I tried this a couple of years ago but Tuya was unreliable and my automations would sometimes just disappear. The whole Home Automation scene then seemed like Windows PCs twenty or thirty years before when everything was a bit buggy, and a Blue Screen Of Death event might lay everything you were doing to waste. Slowly it's getting better but there's a way to go yet.&lt;/P&gt;&lt;P&gt;Keep at it!&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Feb 2026 14:32:59 GMT</pubDate>
    <dc:creator>John-A</dc:creator>
    <dc:date>2026-02-08T14:32:59Z</dc:date>
    <item>
      <title>Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789301#M62673</link>
      <description>&lt;P&gt;I understand that with automation scripts, CONDITIONS can be used&amp;nbsp;&lt;U&gt;only&lt;/U&gt; for STARTERS.&lt;/P&gt;&lt;P&gt;Question is: can I do something similar within ACTIONS?&amp;nbsp; Something like "if CONDITION then perform an ACTION".&lt;/P&gt;&lt;P&gt;My situation is within ACTIONS, after finishing action1, I wait for 15 minutes, and if certain device is still ON, then I'll do action2.&amp;nbsp; Otherwise I'll do action3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 01:43:38 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789301#M62673</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-06T01:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789609#M62674</link>
      <description>&lt;P&gt;Although it isn't possible to code this directly, you can break the problem down and solve it a bit at a time. The script language, based on YAML, is declarative, that is it only solves problems in the form of 'if this occurs, do a bunch of stuff'.&lt;/P&gt;&lt;P&gt;So let's firstly break your problem down into three automations. one that fires 'action1' and then pauses for 15 minutes, another that fires 'action2' then evaluates the ON condition, and a third one for 'action3' that evaluates the OFF condition (in conditions).&amp;nbsp;&lt;/P&gt;&lt;P&gt;All that's missing then is a trigger set by action1 that's the starter for actions 2 and 3.&lt;/P&gt;&lt;P&gt;There isn't any such mechanism inside the automation scripting system, but you can solve this using Google Home Playground (&lt;A href="https://home-playground.withgoogle.com/" target="_blank"&gt;https://home-playground.withgoogle.com/&lt;/A&gt;). A switch device created in Google Home Playground can be added to your Home devices, and now you've a binary variable you can switch on and off in a script. Your action1 switches this on, and actions 2 and 3 use it as a starter, then switch it off.&lt;/P&gt;&lt;P&gt;I'm not sure if this works if you trigger it a second or subsequent time while the 15 minute delay is running, i.e. if there's more than one instance of the script in progress. You'd need to test this.&lt;/P&gt;&lt;P&gt;As an alternative to Google Playground you can add a similar fake switch in the web interface for Samsung Smart Things, or&amp;nbsp;use a real physical switch/relay/other device that's not being used for anything else.&lt;/P&gt;&lt;P&gt;Google Playground or Smart Things need to be added as 'works with Google' services inside the Google Home app to make their devices visible in Google Home.&lt;/P&gt;&lt;P&gt;Problem solved (I hope). I've used this method to tackle a number of otherwise intractable workflows.&lt;/P&gt;&lt;P&gt;Hopefully Google Home Playground or something like it will be properly rolled into the Google Home environment someday to make all this easier.&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Feb 2026 19:43:32 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789609#M62674</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-07T19:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789691#M62675</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;, thanks for the long and comprehensive reply.&amp;nbsp; I really apprecaite that!&lt;/P&gt;&lt;P&gt;I am happy to hear about your solution --- meaning I am not alone&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp; As a matter of fact, before I started this question, I already implemented exactly what you suggested, using a Google Home Playground switch as the signal to trigger either action 2 or action 3.&lt;/P&gt;&lt;P&gt;Trouble is: Google Home Automation does NOT all the time capture that signal from the Google Home Playground switch.&amp;nbsp; Making my process in limbo.&lt;/P&gt;&lt;P&gt;(but well, if GHA does capture, my logics have been working perfectly)&lt;/P&gt;&lt;P&gt;And hence my question here to see if there are alternative ways of achieving the same thing (ideally, conditionally doing task 1, task 2 and task 3 within a single automation --- per this original question).&lt;/P&gt;&lt;P&gt;Do you experience unreliability with capturing triggers by Googleh Home Automation?&amp;nbsp; &amp;nbsp;Any fixing that you would suggest?&lt;/P&gt;&lt;P&gt;Again, appreciate your feedback here, and I look forward to more hehe&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sun, 08 Feb 2026 13:03:03 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789691#M62675</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-08T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789722#M62676</link>
      <description>&lt;P&gt;hi &lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;, glad I was a helpful voice in the dark, and your exploration hit on the same solution. I have also found that automations (and start triggers particularly) can be fragile, especially when crossing platforms (Samsung/Tuya/Google Playground) and especially if the triggering event is short-lived.&lt;/P&gt;&lt;P&gt;My only suggestion would be to double up or even treble up. Create your Google Home Playground switch in the Tuya/SmartLife environment and maybe Samsung or some other as well. Set them all, test them all, and reset them all. If only one of them works it doesn't matter if the others don't.&lt;/P&gt;&lt;P&gt;I've also re-designed some of my automations recently to put the automation as close as possible to the device, that is if it only involves Tuya devices build a Tuya Smart Automation and don't write it in Google. This tends to make them more reliable and faster too. I tried this a couple of years ago but Tuya was unreliable and my automations would sometimes just disappear. The whole Home Automation scene then seemed like Windows PCs twenty or thirty years before when everything was a bit buggy, and a Blue Screen Of Death event might lay everything you were doing to waste. Slowly it's getting better but there's a way to go yet.&lt;/P&gt;&lt;P&gt;Keep at it!&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Feb 2026 14:32:59 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789722#M62676</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-08T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789890#M62677</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have also found that automations (and start triggers particularly) can be fragile, especially when crossing platforms (Samsung/Tuya/Google Playground) and especially if the triggering event is short-lived.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Similar finding here, regarding (small) issue with short-lived triggers.&amp;nbsp; I am feeling that triggers are not populated out real-time, and listening automations are not sampling real-time too.&amp;nbsp; Meaning (a) I need to allow more time for a trigger to "settle" and be updated out around, (b) I also need to assume that listening automation needs at least a few seconds (say 5-10 sec) before it recognizes a trigger.&lt;/P&gt;&lt;P&gt;And then pray for the listening automation to be REALLY WORKING this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;My only suggestion would be to double up or even treble up.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's also what I have been doing too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Say, I have found my ARLO geofencing not working all the time.&amp;nbsp; Example: when all family members are away, ARLO may not sense it and switch to another mode.&amp;nbsp; And for such sensing, I find Google Home Automation's sensing much much better.&amp;nbsp; So I also "double up" by also having GHA telling ARLO to switch mode, when GHA senses that geofencing event.&amp;nbsp; Turns out this has been pretty good.&lt;/P&gt;&lt;P&gt;While the above "doubling-up" for ARLO is a good-to-add, I have trouble doubling up my automation around action 1, action 2 and action 3.&amp;nbsp; I hope you don't mind me sharing more details here, but:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Issue 1 (task 1)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;GHA-Action 1 is actually triggered by turning-ON of a physical switch, and GHA is sometimes missing the event.&amp;nbsp; I wished I could have avoided the use of the physical switch, since the whole story of this part is just to run GHA-Action 1 every time when any 1 of the geofencing family members returns home (whether there is other family member at home or not) --- but the geofencing of GHA simply cannot do this.&amp;nbsp; As a result, I had no choice but to (stupidly) use IFTTT to turn on physical switch, triggering GHA-Action 1.&lt;/P&gt;&lt;P&gt;So if at least 1 of the following could be improved, that would be great:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;having GHA doing the particular geofence sensing, so I can get rid of IFTTT, OR&lt;/LI&gt;&lt;LI&gt;having GHA capturing the physical switch, more reliably&lt;/LI&gt;&lt;LI&gt;"doubling up" the workflow from IFTTT to GHA (I can't figure out a way to execute GHA routine directly from IFTTT)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Issue 2 (task 2 and task 3)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;GHA-task 2 and GHA-task 3 are conditionally triggered by GHA-task 1, via turning-ON of GH playground switch.&amp;nbsp; As discussed, even this GHA capturing GHA is unreliable.&lt;/P&gt;&lt;P&gt;And I cannot figure out further ways to double this up.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope above hasn't been to long/boring for you mate.&amp;nbsp; I do wish to learn more from your experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sun, 08 Feb 2026 23:12:12 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/789890#M62677</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-08T23:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790084#M62678</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;&amp;nbsp;It's a tough one, I've no experience of ARLO and I have avoided using geofencing. I have a virtual switch to signal if we're away for any length of time so that the lights that come on automatically will get switched off again automatically at bedtime rather than manually.&lt;/P&gt;&lt;P&gt;For communication between A1 and A2/3 you could wire a real switch and then set/reset it as the trigger. I tried this as an experiment and it is more reliable than a virtual switch. Google home has occasionally declared my virtual switch to be offline momentarily, even though it doesn't exist!&lt;/P&gt;&lt;P&gt;I will muse on this some more when I get a minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 20:32:30 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790084#M62678</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-09T20:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790088#M62679</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;For communication between A1 and A2/3 you could wire a real switch and then set/reset it as the trigger. I tried this as an experiment and it is more reliable than a virtual switch. Google home has occasionally declared my virtual switch to be offline momentarily, even though it doesn't exist!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My experience with physical vs virtual switch is that as a trigger to be captured, physical is no better than virtual.&amp;nbsp; Both can fail over similar chances.&amp;nbsp; Actually I started using physical ones for all signals/triggers, before knowing there was the Playground.&lt;/P&gt;&lt;P&gt;But of course I understand that the ecosystem keeps changing.&amp;nbsp; If you do find GHA capturing events from physical switches better than from virtual ones now, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 21:15:15 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790088#M62679</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-09T21:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790089#M62680</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have avoided using geofencing. I have a virtual switch to signal if we're away for any length of time so that the lights that come on automatically will get switched off again automatically at bedtime rather than manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For your situation, I would recommend using GHA's geofencing, which is quite reliable.&amp;nbsp; Add a GHA routine using bedtime as starter, and geofencing status "at home" as condition, for the action of turning on the light.&lt;/P&gt;&lt;P&gt;And of course before you can use GHA geofencing, you have to set up Presence Sensing on all of your family members' devices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 21:24:00 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790089#M62680</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-09T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790945#M62727</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;I am trying a 'double-up' test with a virtual Tuya switch and a physical Tuya switch. They are set on by a Tuya automation when a vibration sensor is triggered (Google doesn't read the state of this sensor so it can't be used directly). Both of my Tuya switches are starters for a GHA routine, so either can trigger it.&lt;/P&gt;&lt;P&gt;Results are inconclusive as yet. If triggering happens the delay is fairly long (several seconds) but from time to time nothing happens at all. I will need to add some debug to the script to fathom which switch is triggering and if they are equally unreliable.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 16:02:56 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/790945#M62727</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-13T16:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791060#M62735</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;, it's new to me that there are also virtual Tuya switch!&lt;/P&gt;&lt;P&gt;When you are saying "nothing happens at all", then sounds like both GHA starters for physical and virtual tuya switch are equally unreliable.&lt;/P&gt;&lt;P&gt;The unreliability above is about GHA starters capturing trigger.&lt;/P&gt;&lt;P&gt;Q: How about the tuya virtual switch?&amp;nbsp; Is it equally reliable, in terms of being turned on/off by tuya automation?&lt;/P&gt;&lt;P&gt;If so, at least I can save up my physical tuya switch here (given GHA is equally unreliable in front of tuya physical/virtual switch).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2026 09:08:03 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791060#M62735</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-14T09:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791079#M62737</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;For Tuya virtual devices you need a free developer account then add as described here&amp;nbsp;&lt;A href="https://developer.tuya.com/en/docs/iot/manage-virtual-devices?id=Ka4725tiyfhg0" target="_blank"&gt;https://developer.tuya.com/en/docs/iot/manage-virtual-devices?id=Ka4725tiyfhg0&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I'm still experimenting and might not have any conclusions until some point next week as (play)time is a bit tight at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have the Tuya routine setting both a physical and a virtual switch, but now two GHA automations, each with a starter triggered by one of the Tuya switches. Each makes a different broadcast to the speaker on my desk so I can tell which one trigered. The result is sometimes one and sometimes the other. Sometimes neither. So far never both.&lt;/P&gt;&lt;P&gt;More work needed to conclude fully, if a conclusion is ever possible.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2026 13:10:04 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791079#M62737</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-14T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791213#M62758</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The result is sometimes one and sometimes the other. Sometimes neither. So far never both.&lt;/P&gt;&lt;P&gt;More work needed to conclude fully, if a conclusion is ever possible.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;, so far never both ....could this meaning GHA only allows one automation running per user every single time?&amp;nbsp; Just to make sure that GHA pooled resources and processing power don't get drained to run 1000s of automations, all under the same user.&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sun, 15 Feb 2026 12:47:54 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/791213#M62758</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-15T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/793818#M63008</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp; . Some new information. I had a conversation about this automation with Google Gemini. This gave two suggestions&lt;/P&gt;&lt;P&gt;1- Set the virtual trigger in Tuya on for 1 minute before turning it off. I thought that 30 seconds would be plenty but Gemini suggests longer.&lt;/P&gt;&lt;P&gt;2- Make the trigger a virtual light bulb instead of a switch because "Google Home often prioritizes status updates for "Lights" over "Switches" or "Sensors" in its polling hierarchy."&lt;/P&gt;&lt;P&gt;I have no way to know other than testing whether either of these will improve reliability but I thought I'd share in case this would help you too meantime.&lt;/P&gt;&lt;P&gt;It isn't really clear whether the state change is "pushed" or "pulled" in these interactions. Understanding that better would help when it comes to designing a more resillient automation. More research!&lt;/P&gt;&lt;P&gt;Cheers, John-A&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 10:19:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/793818#M63008</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-26T10:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794194#M63046</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for sharing the tips.&amp;nbsp; Have you tried either of these?&amp;nbsp; (I don't have tuya developer environment yet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 04:36:02 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794194#M63046</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-02-28T04:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794334#M63064</link>
      <description>&lt;P&gt;Hey &amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp; I'm testing both of the these at the moment. I went full belt and braces and send the trigger on/off three times. Three seconds on, wait three seconds, three seconds off, repeat three times. Then make both Tuya and Google wait and reset the trigger after about 30 seconds (not 1min) so I can't get more than one alert every 30 seconds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can't paste my Tuya automation, but here's my current GHA code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;metadata:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; name: Front Door Vibration Detect&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; description: If vibration is triggered at the front door, send an alert &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;automations:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; starters:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - type: device.state.OnOff #The actual vibration sensor isn't readable in Google Home so the virtual bulb is used as a proxy in Smart Life&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state: on&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is: true&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device: Virtual Bulb - ZZ Boolean&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suppressFor: 30sec &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; actions: &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - type: home.command.Notification&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: Front Door Knock?&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; members: # &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - type: time.delay&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for: 30sec &lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - type: device.command.OnOff &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on: false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; devices: Virtual Bulb - ZZ Boolean&lt;/EM&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The automation is robust now, but my cheap AliExpress sensor is less so. I get some false positives and some missed positives too, but that's a different problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 19:09:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794334#M63064</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-02-28T19:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794717#M63094</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;, that sounds very promising!&lt;/P&gt;&lt;P&gt;Were you toggling this virtual bulb ONLY from the tuya side, WITHOUT touching/waking up any google automation side of app?&lt;/P&gt;&lt;P&gt;The reason behind this question is that I find GHA NOT reliable in capturing starters, even though it DOES the capture successfully, (only) most of the times.&amp;nbsp; I am feeling a "sleeping" GHA (cloud side or device side) the issue, but I have not been able to prove that.&lt;/P&gt;&lt;P&gt;Say, are you able to just switch on this virtual bulb from TUYA side, following a time schedule?&amp;nbsp; that way, you can just touch nothing, and wait for the expected&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Front Door Knock?&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;notification.&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 00:54:34 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794717#M63094</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-03-03T00:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794966#M63117</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/618316"&gt;@stickyrice&lt;/a&gt;&amp;nbsp;I think this method addresses your concern by giving GHA time to wake and three separate chances to trigger. For clarity here's my Tuya automation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Vibration.jpg" style="width: 273px;"&gt;&lt;img src="https://www.googlenestcommunity.com/t5/image/serverpage/image-id/59220i1476C8089559F183/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Vibration.jpg" alt="Vibration.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the bulb is on 3 seconds and off 3 seconds two times, then on another 20 seconds and off. Meantime if Google detects any of these three times the 'bulb' is on it triggers the notification and also supresses any further triggering of the starter for 30 seconds. The theory is that if GHA 'sleeps' past one of the bulb on states, or the triggering packet is lost in transit it should get triggered by another (or maybe woken by one, and triggered by another). I can't think of any ways to 'know' if GHA is awake but this is maybe like a slap on the face rather than a gentle nudge to the ribs &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both the Tuya automation and Google finish by resetting the bulb to OFF so double checking that it's ready to fire again after the ~30 second supress.&lt;/P&gt;&lt;P&gt;If I trigger the bulb manually as a test it always seems to fire the notification.&lt;/P&gt;&lt;P&gt;Does that answer your concern?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 16:31:15 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/794966#M63117</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-03-04T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795182#M63130</link>
      <description>&lt;P&gt;For clarity 'If I trigger the bulb manually as a test it always seems to fire the notification' means I'm triggering the bulb on and off manually in Tuya.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 07:23:44 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795182#M63130</guid>
      <dc:creator>John-A</dc:creator>
      <dc:date>2026-03-05T07:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795409#M63184</link>
      <description>&lt;P&gt;the use of "suppress" to implement a stronger wake-up sounds good&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have a GHA routine that turns on on a google playground virtual switch but then GHA itself does not capture such trigger&amp;nbsp; by another GHA routine.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":tired_face:"&gt;😫&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me try the "suppress" way to see how it goes.&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 01:16:47 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795409#M63184</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-03-06T01:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using CONDITIONS within ACTIONS, for automation script</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795656#M63229</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/854247"&gt;@John-A&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have implemented this "flickering" of google playground virtual switch as trigger, and the capturing of it by GHA, followed by suppressFor.&amp;nbsp; So far so good, I don't see any missed capture which is good news.&amp;nbsp; I'll spend more time to see how reliable this change is.&amp;nbsp; Fingers crossed and thanks!&lt;/P&gt;&lt;P&gt;By the meantime, however, I am still suffering from a similar missed capture, but on a &lt;U&gt;physical switch&lt;/U&gt; that is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;turned ON by &lt;U&gt;IFTTT&lt;/U&gt; (have to use IFTTT, since GHA does not support triggering on geofencing activity of individual devices, within the same google "home")&lt;/LI&gt;&lt;LI&gt;captured by GHA as trigger for other actions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do you know if IFTTT support any virtual switch?&lt;/LI&gt;&lt;LI&gt;If I am to implement similar "flickering" and suppressFor trigger capture over the&amp;nbsp;&lt;U&gt;physical switch&lt;/U&gt;, do you know how I could do this flickering, once the physical switch is first turned on from IFTTT side?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Many thanks mate.&lt;/P&gt;&lt;P&gt;stickyrice&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2026 07:09:29 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Using-CONDITIONS-within-ACTIONS-for-automation-script/m-p/795656#M63229</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2026-03-08T07:09:29Z</dc:date>
    </item>
  </channel>
</rss>

