<?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: Google Home Script Editor - Condition &amp;quot;time duration&amp;quot; in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/575713#M41804</link>
    <description>&lt;P&gt;Thanks! It works like a charm&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jan 2024 13:22:50 GMT</pubDate>
    <dc:creator>s_dimaio</dc:creator>
    <dc:date>2024-01-13T13:22:50Z</dc:date>
    <item>
      <title>Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/570769#M40801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to receive a notification on my mobile phone if a light stays on for more than 10 minutes. However, I can't find any suitable "conditions" on Google Home - Script Editor.&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 14:05:37 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/570769#M40801</guid>
      <dc:creator>s_dimaio</dc:creator>
      <dc:date>2024-01-01T14:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/571734#M40945</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/489767"&gt;@s_dimaio&lt;/a&gt;&amp;nbsp; - Conditions are things that are checked each time your automation starts so they won't quite fit this use case. You can try using the &lt;FONT face="courier new,courier" color="#008000"&gt;for:&lt;/FONT&gt;&amp;nbsp;parameter in combination with the &lt;FONT face="courier new,courier" color="#008000"&gt;OnOff&lt;/FONT&gt; device state starter so that they light being on for 11 minutes for example will start the automation and send you a notification. This simple example will only send one notification each time the automation runs so you may need to add more starters to send follow up notifications (e.g. every 10 minutes). Check out the example script below for this basic example:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;metadata:
  name: Test 11 minute light
  description: Send me a notification if a light is left on for more than 10 minutes

automations:
  # Start automation if office light has been on for 11 minutes
  starters:
    - type: device.state.OnOff
      state: on
      is: true
      device: Office light - Office
      for: 11 min

  # Send me a notification to remind me that the office light is on
  actions:
    - type: home.command.Notification
      title: Office light left on
      body: Looks like you left something on
      members: [home member email]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:57:24 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/571734#M40945</guid>
      <dc:creator>nickfromgoogle</dc:creator>
      <dc:date>2024-01-03T17:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/572035#M40979</link>
      <description>&lt;P&gt;I want to confirm this but I want to say leveraging FOR in your starter would do it. Something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Light Notification After A period odf Time.
  description: TEST
automations:
  starters:
    - type: device.state.OnOff
      state: on
      is: true
      device: Glide Hexa - Living Room
      for: 15sec
  # condition:
  # type:
  actions:
    - type: home.command.Notification # Send a notification to the specified home members.
      title: Lighting Uptime
      body: Govee Glide Hex has been on for 15 seconds
      # members:  Your Home members go here&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Jan 2024 08:24:47 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/572035#M40979</guid>
      <dc:creator>OpethNJ</dc:creator>
      <dc:date>2024-01-04T08:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/572037#M40980</link>
      <description>&lt;P&gt;I need to check that code when i get home&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 08:26:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/572037#M40980</guid>
      <dc:creator>OpethNJ</dc:creator>
      <dc:date>2024-01-04T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/575713#M41804</link>
      <description>&lt;P&gt;Thanks! It works like a charm&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 13:22:50 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/575713#M41804</guid>
      <dc:creator>s_dimaio</dc:creator>
      <dc:date>2024-01-13T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Google Home Script Editor - Condition "time duration"</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/575714#M41805</link>
      <description>&lt;P&gt;Thanks! It works!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 13:23:47 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-Home-Script-Editor-Condition-quot-time-duration-quot/m-p/575714#M41805</guid>
      <dc:creator>s_dimaio</dc:creator>
      <dc:date>2024-01-13T13:23:47Z</dc:date>
    </item>
  </channel>
</rss>

