<?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: Automation Script OkGoogleCommand and Google TV in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/438574#M19058</link>
    <description>&lt;P&gt;Yeah, &lt;A href="https://www.googlenestcommunity.com/t5/Home-Automation/assistant-command-OkGoogle-ignores-devices-field-with-assistant-event/td-p/438572" target="_blank"&gt;in my limited testing,&lt;/A&gt;&amp;nbsp; it seems like if your using&amp;nbsp;assistant.event.OkGoogle as a starter, then the devices field for&amp;nbsp;assistant.command.OkGoogle is ignored and instead the command is executed on the device that you said the OkGoogle command to.&lt;BR /&gt;&lt;BR /&gt;Try changing the starter, or just executing the script manually from&amp;nbsp;&lt;A href="https://home.google.com/automations" target="_blank"&gt;https://home.google.com/automations&lt;/A&gt;&amp;nbsp;using the play button. If that works, then that corroborates what I am noticing. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 06:49:44 GMT</pubDate>
    <dc:creator>Alphabet</dc:creator>
    <dc:date>2023-06-21T06:49:44Z</dc:date>
    <item>
      <title>Automation Script OkGoogleCommand and Google TV</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/436620#M18901</link>
      <description>&lt;P&gt;Should "&lt;SPAN&gt;assistant.command.OkGoogle" work for use with Google TV? The validation passes, but when executed nothing happens.&lt;BR /&gt;&lt;BR /&gt;In the below script, my Google TV is turned on through the onOff action, but nothing else happens. I've also tried the OkGoogle alone, without the onOff.&amp;nbsp; I also tried tell me the weather as described in the documentation.&lt;BR /&gt;&lt;BR /&gt;Is there a way to see the reason why a command fails? (A log of some kind?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Device: Chromecast HD - Android TV 12&amp;nbsp; Build STTE.230319.00.R1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also didn't see it in my activity log (&lt;A href="https://myactivity.google.com/myactivity?pli=1&amp;amp;product=31" target="_blank"&gt;https://myactivity.google.com/myactivity?pli=1&amp;amp;product=31&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.home.google.com/automations/schema/reference/entity/assistant/ok_google_command" target="_blank"&gt;&lt;SPAN&gt;https://developers.home.google.com/automations/schema/reference/entity/assistant/ok_google_command&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: test google tv automation # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
  description: Scripted automation # Write a detailed description that includes everything the automation does, like “At sunset, on weekdays, close blinds, turn on lights to 50%, and play the sunset playlist on certain speakers.”

automations:
  # “starters” and “actions” are required; “condition” is optional.
  # Use Ctrl + Space to see autocomplete suggestions.

  # ---- STARTERS ---- #
  # Starters describe events that will start the automation.
  # To add more than one starter, duplicate the "- type" section under "starters".
  # If you add multiple starter events, any one of them happening will start the automation
  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: test automation

  # ---- ACTIONS ---- #
  # Actions will start when a starter event takes place and all conditions are met.
  # Actions will start in the order they appear in the script, and with any delay specified.
  # To add more than one action, duplicate the "- type" section under "actions".
  actions:
    - type: device.command.OnOff # Turn the device on or off.
      on: true
      devices: Travel TV - Travel
    - type: assistant.command.OkGoogle
      okGoogle: launch netflix
      devices: Travel TV - Travel&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 20:43:11 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/436620#M18901</guid>
      <dc:creator>V0idmain</dc:creator>
      <dc:date>2023-06-18T20:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Script OkGoogleCommand and Google TV</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/438574#M19058</link>
      <description>&lt;P&gt;Yeah, &lt;A href="https://www.googlenestcommunity.com/t5/Home-Automation/assistant-command-OkGoogle-ignores-devices-field-with-assistant-event/td-p/438572" target="_blank"&gt;in my limited testing,&lt;/A&gt;&amp;nbsp; it seems like if your using&amp;nbsp;assistant.event.OkGoogle as a starter, then the devices field for&amp;nbsp;assistant.command.OkGoogle is ignored and instead the command is executed on the device that you said the OkGoogle command to.&lt;BR /&gt;&lt;BR /&gt;Try changing the starter, or just executing the script manually from&amp;nbsp;&lt;A href="https://home.google.com/automations" target="_blank"&gt;https://home.google.com/automations&lt;/A&gt;&amp;nbsp;using the play button. If that works, then that corroborates what I am noticing. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 06:49:44 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/438574#M19058</guid>
      <dc:creator>Alphabet</dc:creator>
      <dc:date>2023-06-21T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Script OkGoogleCommand and Google TV</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/451989#M19925</link>
      <description>&lt;P&gt;Thanks for responding! I see you already got your confirmation. I was out of town, but now home and see the behavior as you stated. I also noticed that my Android/Google TV devices are no longer being displayed as options under devices for the&amp;nbsp; type of `assistant.command.OkGoogle`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works for me to the start playing a hulu show on my google tv, where the associated hub video config is set to&amp;nbsp; send to the tv as well. if i don't turn on the tv via command on first, often times by the time the device wakes up the tv, the play video fails to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  automations:
  # Update "starters", "actions" and optionally "condition" sections to create an automation
  # Duplicate these three sections under "automations" to add more automations in the same script
  starters:
    # Use Ctrl + Space to get autocomplete suggestions
    - type: assistant.event.OkGoogle
      eventData: query
      is: just do it
  actions:
    # Use Ctrl + Space to get autocomplete suggestions
    - type: device.command.OnOff # Turn the device on or off.
      on: true
      devices: Kitchen TV - Kitchen
    - type: assistant.command.OkGoogle
      okGoogle: play always sunny in philadelphia on hulu
      devices: Kitchen display - Kitchen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 17:56:08 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Automation-Script-OkGoogleCommand-and-Google-TV/m-p/451989#M19925</guid>
      <dc:creator>V0idmain</dc:creator>
      <dc:date>2023-07-15T17:56:08Z</dc:date>
    </item>
  </channel>
</rss>

