<?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: Device status for routine conditions? in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652276#M49135</link>
    <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/610243"&gt;@Olfader&lt;/a&gt;&amp;nbsp;This is not something that you can do in the home app on your phone. You have to use Google's automation script editor at&amp;nbsp;&lt;A href="https://home.google.com/home" target="_blank"&gt;https://home.google.com/home&lt;/A&gt;. to create an automation that uses conditions as&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/494290"&gt;@shogo&lt;/a&gt;&amp;nbsp;showed.&lt;/P&gt;&lt;P&gt;Follow the link above and when you land on the page, select automations on the left. This will take you to the script editor where you can create a script to perform the automation that you're after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script that you are looking to create would look something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Light automation
  description: Turn off XXX light when motion detected and XXX is on

automations:
  starters:
    - type: device.event.MotionDetection
      device: (Your motion sensor goes here) 

  condition:
    type: device.state.OnOff
    state: on
    is: true
    device: (Your device to check if it's on goes here)

  actions:
    - type: device.command.OnOff # Turn the device on or off.
      # Whether to turn the device on or off.
      on: true
      devices: (Your light to turn off goes here)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 28 Oct 2024 15:20:57 GMT</pubDate>
    <dc:creator>GBD</dc:creator>
    <dc:date>2024-10-28T15:20:57Z</dc:date>
    <item>
      <title>Device status for routine conditions?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652092#M49087</link>
      <description>&lt;P&gt;Hello. Would it be possible to add a condition to routine activator that they activate depending on the state of another device?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: WHEN motion is detected IF x device is on THEN turn off lights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having only times as activation conditions is very limited.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 22:49:22 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652092#M49087</guid>
      <dc:creator>Olfader</dc:creator>
      <dc:date>2024-10-27T22:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Device status for routine conditions?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652132#M49090</link>
      <description>&lt;P&gt;I think this is already possible but not for all devices - i.e. the belowmentioned is valid for Chromecast but not for Nest Hub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;&amp;nbsp; type: device.state.OnOff&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; state: on&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is: true&lt;BR /&gt;&amp;nbsp; &amp;nbsp; device: Chromecast - My Bedroom&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 02:12:46 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652132#M49090</guid>
      <dc:creator>shogo</dc:creator>
      <dc:date>2024-10-28T02:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Device status for routine conditions?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652194#M49121</link>
      <description>&lt;P&gt;Is this possible for Google Home? If so how? I don't know about that functionality you're talking about&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 09:16:01 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652194#M49121</guid>
      <dc:creator>Olfader</dc:creator>
      <dc:date>2024-10-28T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Device status for routine conditions?</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652276#M49135</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/610243"&gt;@Olfader&lt;/a&gt;&amp;nbsp;This is not something that you can do in the home app on your phone. You have to use Google's automation script editor at&amp;nbsp;&lt;A href="https://home.google.com/home" target="_blank"&gt;https://home.google.com/home&lt;/A&gt;. to create an automation that uses conditions as&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/494290"&gt;@shogo&lt;/a&gt;&amp;nbsp;showed.&lt;/P&gt;&lt;P&gt;Follow the link above and when you land on the page, select automations on the left. This will take you to the script editor where you can create a script to perform the automation that you're after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script that you are looking to create would look something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Light automation
  description: Turn off XXX light when motion detected and XXX is on

automations:
  starters:
    - type: device.event.MotionDetection
      device: (Your motion sensor goes here) 

  condition:
    type: device.state.OnOff
    state: on
    is: true
    device: (Your device to check if it's on goes here)

  actions:
    - type: device.command.OnOff # Turn the device on or off.
      # Whether to turn the device on or off.
      on: true
      devices: (Your light to turn off goes here)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Oct 2024 15:20:57 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Device-status-for-routine-conditions/m-p/652276#M49135</guid>
      <dc:creator>GBD</dc:creator>
      <dc:date>2024-10-28T15:20:57Z</dc:date>
    </item>
  </channel>
</rss>

