<?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: Can the same voice command do diffferent things at different times? in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658838#M49847</link>
    <description>&lt;P&gt;You're on the right track, just don't use the automation key more than once. Here is a script that should work for you. Make sure you use the hyphen on "starters". This tells the automation there is more than one starter (even thought they are the same starter).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Same starter example
  description: How to use the same starter
automations:
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: kickstart
    condition:
      type: time.between
      before: sunrise
      after: sunset
    actions:
      - type: device.command.OnOff
        on: true
        devices: some light - some room

  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: kickstart
    condition:
      type: time.between
      before: sunset
      after: sunrise
    actions:
      - type: device.command.OnOff
        on: true
        devices: some other light - some other room&lt;/LI-CODE&gt;&lt;P&gt;The hyphen inside the "actions" block is not necessary unless you are going to have more than one action. The same goes true for the hyphen inside each of the "starters" block. If you did put more than one starter in those "starters" blocks, then you could have multiple starters for each of your conditions (nighttime and daytime in this example). These starters would act like a logical "or" in case you wanted each light to come on, say at a time of day or if some other event happens.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 15:18:36 GMT</pubDate>
    <dc:creator>salbando</dc:creator>
    <dc:date>2024-11-27T15:18:36Z</dc:date>
    <item>
      <title>Can the same voice command do diffferent things at different times?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658414#M49799</link>
      <description>&lt;P&gt;When I voice command "kickstart" during daytime, I want to turn on light A.&lt;/P&gt;&lt;P&gt;When I voice the same command during night, I want to turn on light B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems Google Home doesn't allow creation of two automations (and they have conditions exclusive to each other) using same voice command.&lt;/P&gt;&lt;P&gt;So I was trying some nested automations like this (note the red).&amp;nbsp; Basically turn on Driveway and then off after 15 minutes, but then right after turning it on,&amp;nbsp;&lt;STRONG&gt;conditionally do (or not) something else&lt;/STRONG&gt;.&amp;nbsp; Still, I keeps receiving errors with the scripts.&lt;/P&gt;&lt;P&gt;How should I tackle the situation at the top?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;automations:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;starters:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;- type: assistant.event.OkGoogle&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; eventData: query&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; is: Testing&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;actions:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;- type: device.command.OnOff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; devices: Driveway&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; on: true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;- automations:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; starters:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; type: assistant.command.OkGoogle&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; eventData: query&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; is: testing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; condition:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; type: time.between&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; after: sunset&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; before: sunrise&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; actions:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; type: device.command.OnOff&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; devices: Home light&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; on: true&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;- type: time.between&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; after: sunset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; before: sunrise&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;- type:&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;device.command.OnOff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; on: false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; devices: Driveway&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 23:45:58 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658414#M49799</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2024-11-25T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can the same voice command do diffferent things at different times?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658838#M49847</link>
      <description>&lt;P&gt;You're on the right track, just don't use the automation key more than once. Here is a script that should work for you. Make sure you use the hyphen on "starters". This tells the automation there is more than one starter (even thought they are the same starter).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Same starter example
  description: How to use the same starter
automations:
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: kickstart
    condition:
      type: time.between
      before: sunrise
      after: sunset
    actions:
      - type: device.command.OnOff
        on: true
        devices: some light - some room

  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: kickstart
    condition:
      type: time.between
      before: sunset
      after: sunrise
    actions:
      - type: device.command.OnOff
        on: true
        devices: some other light - some other room&lt;/LI-CODE&gt;&lt;P&gt;The hyphen inside the "actions" block is not necessary unless you are going to have more than one action. The same goes true for the hyphen inside each of the "starters" block. If you did put more than one starter in those "starters" blocks, then you could have multiple starters for each of your conditions (nighttime and daytime in this example). These starters would act like a logical "or" in case you wanted each light to come on, say at a time of day or if some other event happens.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 15:18:36 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658838#M49847</guid>
      <dc:creator>salbando</dc:creator>
      <dc:date>2024-11-27T15:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can the same voice command do diffferent things at different times?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658931#M49859</link>
      <description>&lt;P&gt;thank you very much.&amp;nbsp; It works!&amp;nbsp; Very happy with that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:34:20 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Can-the-same-voice-command-do-diffferent-things-at-different-times/m-p/658931#M49859</guid>
      <dc:creator>stickyrice</dc:creator>
      <dc:date>2024-11-27T23:34:20Z</dc:date>
    </item>
  </channel>
</rss>

