<?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: triggering automation with automation in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476299#M21726</link>
    <description>&lt;P&gt;My approach is just a workaround in the current Google Home implementation.&lt;BR /&gt;The implementation below is written by Scripted Automation, but it can also be implemented with a normal routine.&lt;/P&gt;&lt;H2&gt;Callee&lt;/H2&gt;&lt;P&gt;Add a starter with the type "assistant.event.OkGoogle" and set the property "is" to a function name. It's better that the function name is not a valid English sentence. For example, I prefer "turn_off_the_tv" instead of "Turn off the TV".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Turn off the Air
  description: Simply turn off the Air via scene in third party app

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: turn_off_the_air

  actions:
    - type: device.command.ActivateScene
      activate: true
      devices: Power off Air&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&amp;nbsp;Caller&lt;/H2&gt;&lt;P&gt;Now in the script you wanna call the above script, you can trigger the script by specifying the function name with "assistant.command.OkGoogle".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  actions:
    - type: assistant.command.OkGoogle
      okGoogle: turn_off_the_air
      devices: Nest - Living Room&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Sep 2023 17:36:45 GMT</pubDate>
    <dc:creator>EricTsengTy</dc:creator>
    <dc:date>2023-09-02T17:36:45Z</dc:date>
    <item>
      <title>triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476279#M21725</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm planning to make an automation that triggers two other automations, which have different conditions in order to create an if-else situation. Does anyone know how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 16:54:49 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476279#M21725</guid>
      <dc:creator>smarthomie</dc:creator>
      <dc:date>2023-09-02T16:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476299#M21726</link>
      <description>&lt;P&gt;My approach is just a workaround in the current Google Home implementation.&lt;BR /&gt;The implementation below is written by Scripted Automation, but it can also be implemented with a normal routine.&lt;/P&gt;&lt;H2&gt;Callee&lt;/H2&gt;&lt;P&gt;Add a starter with the type "assistant.event.OkGoogle" and set the property "is" to a function name. It's better that the function name is not a valid English sentence. For example, I prefer "turn_off_the_tv" instead of "Turn off the TV".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Turn off the Air
  description: Simply turn off the Air via scene in third party app

automations:
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: turn_off_the_air

  actions:
    - type: device.command.ActivateScene
      activate: true
      devices: Power off Air&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&amp;nbsp;Caller&lt;/H2&gt;&lt;P&gt;Now in the script you wanna call the above script, you can trigger the script by specifying the function name with "assistant.command.OkGoogle".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  actions:
    - type: assistant.command.OkGoogle
      okGoogle: turn_off_the_air
      devices: Nest - Living Room&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 17:36:45 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476299#M21726</guid>
      <dc:creator>EricTsengTy</dc:creator>
      <dc:date>2023-09-02T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476317#M21729</link>
      <description>&lt;P&gt;Pretty good idea, I also had it. In my automations it does not work sadly, did you manage to get it working properly?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 18:34:44 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476317#M21729</guid>
      <dc:creator>smarthomie</dc:creator>
      <dc:date>2023-09-02T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476480#M21736</link>
      <description>&lt;P&gt;Yep, it works (at least when I test it last week).&lt;/P&gt;&lt;P&gt;Maybe you can provide your script then I can help you check it.&lt;/P&gt;&lt;P&gt;It's also possible that I miss something.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 02:52:26 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476480#M21736</guid>
      <dc:creator>EricTsengTy</dc:creator>
      <dc:date>2023-09-03T02:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476509#M21737</link>
      <description>&lt;P&gt;That's cool! My scripts look like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Caller:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;metadata:&lt;/P&gt;&lt;P&gt;name: Untitled description: Caller&lt;/P&gt;&lt;P&gt;automations:&lt;/P&gt;&lt;P&gt;starters:&lt;/P&gt;&lt;P&gt;type: assistant.event.OkGoogle&lt;/P&gt;&lt;P&gt;eventData: query is: start my test routine&lt;/P&gt;&lt;P&gt;actions:&lt;/P&gt;&lt;P&gt;type: assistant.command.OkGoogle okGoogle: this_is_a_test devices: Badezimmer - Badezimmer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Callee:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;metadata:&amp;nbsp; name: Untitled2 description: Callee&amp;nbsp; automations:&amp;nbsp; starters:&amp;nbsp; type: assistant.event.OkGoogle eventData: query&amp;nbsp; is: this_is_a_test&amp;nbsp; actions:&amp;nbsp; type: assistant.command.Broadcast&amp;nbsp; message: it works devices: Badezimmer Badezimmer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 08:16:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476509#M21737</guid>
      <dc:creator>smarthomie</dc:creator>
      <dc:date>2023-09-03T08:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476591#M21743</link>
      <description>&lt;P&gt;Feels like I can't find any obvious problem in your script. I only notice that you don't have the dash "-" in front of the keyword "type", but I'm not sure whether it's just a copy/paste problem.&lt;BR /&gt;Btw, you can use the "Insert/Edit code sample" to format your script to make it more understandable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EricTsengTy_1-1693744578148.png" style="width: 400px;"&gt;&lt;img src="https://www.googlenestcommunity.com/t5/image/serverpage/image-id/28580i875BD3975C55D722/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EricTsengTy_1-1693744578148.png" alt="EricTsengTy_1-1693744578148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 12:41:09 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476591#M21743</guid>
      <dc:creator>EricTsengTy</dc:creator>
      <dc:date>2023-09-03T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476598#M21744</link>
      <description>&lt;P&gt;Thanks for the tip! I found a solution called "Google Home Playground". With that developer function you can create fake lights or other smart home devices. With the on/off states of them you can trigger other automations with an automation, works perfectly fine!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 13:40:10 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/476598#M21744</guid>
      <dc:creator>smarthomie</dc:creator>
      <dc:date>2023-09-03T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/483357#M22344</link>
      <description>&lt;P&gt;I also had the OkGoogle idea, but it doesn't want to work for me either.&lt;/P&gt;&lt;P&gt;The solution with the 'Google Home Playgroud' works perfectly. Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 12:17:04 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/483357#M22344</guid>
      <dc:creator>JacobWaterweg</dc:creator>
      <dc:date>2023-09-22T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: triggering automation with automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/681273#M52869</link>
      <description>&lt;P&gt;I know this is old, but I was looking to accomplish the same (call another automation from within a automation) and figured a trick to do so without using/creating scripts for anyone interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My solution was to use another Nest mini speaker.&amp;nbsp; In the active automation, I set a speaker to a specific volume (eg. 2%).&amp;nbsp; The other automation is triggered whenever that speaker was set at 2% and runs its commands. Additionally, it's important that within that other automation I use a spoken command at the end to set that same speaker back to another preferred/reset volume level (eg. 40%).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using this trick, it's possible to create 100 different other automations that can be triggered on.&amp;nbsp; Add another speaker, and you get another 100.&amp;nbsp; I suppose it's even possible to create nested automations and loops this way.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 17:46:01 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/triggering-automation-with-automation/m-p/681273#M52869</guid>
      <dc:creator>MisterE</dc:creator>
      <dc:date>2025-02-22T17:46:01Z</dc:date>
    </item>
  </channel>
</rss>

