<?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: How to toggle a light on or off with one command word in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/707436#M54596</link>
    <description>&lt;P&gt;No script required. Just a simple Routine. Even though I say "Hey Google, Air conditioner" you can also use any word.&lt;/P&gt;&lt;P&gt;This is my YouTube video from my channel...&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtube.com/shorts/5z69ruHrU3I?feature=share" target="_blank" rel="noopener"&gt;https://youtube.com/shorts/5z69ruHrU3I?feature=share&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 07:58:56 GMT</pubDate>
    <dc:creator>SmartHomeH-TAGS</dc:creator>
    <dc:date>2025-03-25T07:58:56Z</dc:date>
    <item>
      <title>How to toggle a light on or off with one command word</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/707387#M54592</link>
      <description>&lt;P&gt;I've been trying to write a script for my light to turn on when I say "Command word" if the light is off, and to turn off when I say "command word" if the light is on. The script AI cannot create it, and I've been trying to use conditions to no avail. All I need is "if light on --&amp;gt; turn off --- else --&amp;gt;turn on" but in script editor language. Please help!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 00:09:26 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/707387#M54592</guid>
      <dc:creator>CubeLead</dc:creator>
      <dc:date>2025-03-25T00:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle a light on or off with one command word</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/707436#M54596</link>
      <description>&lt;P&gt;No script required. Just a simple Routine. Even though I say "Hey Google, Air conditioner" you can also use any word.&lt;/P&gt;&lt;P&gt;This is my YouTube video from my channel...&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtube.com/shorts/5z69ruHrU3I?feature=share" target="_blank" rel="noopener"&gt;https://youtube.com/shorts/5z69ruHrU3I?feature=share&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 07:58:56 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/707436#M54596</guid>
      <dc:creator>SmartHomeH-TAGS</dc:creator>
      <dc:date>2025-03-25T07:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle a light on or off with one command word</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/708028#M54639</link>
      <description>&lt;P&gt;You can do this by using the same starter twice (make sure you use the hyphen in front of the starters as indicated in the following example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Light on/off with same command
  description: Light on/off same command
automations:
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: Toggle light
    condition:
      type: device.state.OnOff
      device: Light - Living room
      state: on
      is: false
    actions:
      - type: device.command.OnOff
        devices: Light - Living room
        on: true
        
  - starters:
      - type: assistant.event.OkGoogle
        eventData: query
        is: Toggle light
    condition:
      type: device.state.OnOff
      device: Light - Living room
      state: on
      is: true
    actions:
      - type: device.command.OnOff
        devices: Light - Living room
        on: false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 17:22:20 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/How-to-toggle-a-light-on-or-off-with-one-command-word/m-p/708028#M54639</guid>
      <dc:creator>MarciaMellow</dc:creator>
      <dc:date>2025-03-27T17:22:20Z</dc:date>
    </item>
  </channel>
</rss>

