<?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 &amp;quot;for&amp;quot; initializer for device state duration in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/461856#M20543</link>
    <description>&lt;P&gt;I have a problem with an automation script. I need my Google Mini to tell me the gate has been open too long in case I forget it. However, I need it to announce only when it remains open for more than 5 minutes. The "device.state.OpenClose" option has the "for" key, but when I use it in automation, as soon as I open the gate it already makes the announcement and after 5 minutes it announces again. Can anyone tell me if I'm using this wrong? following automation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- starters:&lt;/P&gt;&lt;P&gt;- type: device.state.OpenClose&lt;/P&gt;&lt;P&gt;status: openPercent&lt;/P&gt;&lt;P&gt;is: 100&lt;/P&gt;&lt;P&gt;device: Gate - Garage&lt;/P&gt;&lt;P&gt;For: 5min&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actions:&lt;/P&gt;&lt;P&gt;- type: device.command.&lt;/P&gt;&lt;P&gt;volume level: 80&lt;/P&gt;&lt;P&gt;Devices: Gmini - Living Room&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- type: Assistant.command.Broadcast&lt;/P&gt;&lt;P&gt;message: The garage door has been open too long. Check if you have any problems.&lt;/P&gt;&lt;P&gt;Devices: Gmini - Living Room&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 15:13:21 GMT</pubDate>
    <dc:creator>kessleynogueira</dc:creator>
    <dc:date>2023-07-31T15:13:21Z</dc:date>
    <item>
      <title>"for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/461856#M20543</link>
      <description>&lt;P&gt;I have a problem with an automation script. I need my Google Mini to tell me the gate has been open too long in case I forget it. However, I need it to announce only when it remains open for more than 5 minutes. The "device.state.OpenClose" option has the "for" key, but when I use it in automation, as soon as I open the gate it already makes the announcement and after 5 minutes it announces again. Can anyone tell me if I'm using this wrong? following automation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- starters:&lt;/P&gt;&lt;P&gt;- type: device.state.OpenClose&lt;/P&gt;&lt;P&gt;status: openPercent&lt;/P&gt;&lt;P&gt;is: 100&lt;/P&gt;&lt;P&gt;device: Gate - Garage&lt;/P&gt;&lt;P&gt;For: 5min&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actions:&lt;/P&gt;&lt;P&gt;- type: device.command.&lt;/P&gt;&lt;P&gt;volume level: 80&lt;/P&gt;&lt;P&gt;Devices: Gmini - Living Room&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- type: Assistant.command.Broadcast&lt;/P&gt;&lt;P&gt;message: The garage door has been open too long. Check if you have any problems.&lt;/P&gt;&lt;P&gt;Devices: Gmini - Living Room&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 15:13:21 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/461856#M20543</guid>
      <dc:creator>kessleynogueira</dc:creator>
      <dc:date>2023-07-31T15:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: "for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/461868#M20544</link>
      <description>&lt;P&gt;Instead of For, maybe you can try one of these:&lt;/P&gt;&lt;P&gt;greaterThanOrEqualTo: 5min&lt;/P&gt;&lt;P&gt;greaterThan: 5min&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 15:21:57 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/461868#M20544</guid>
      <dc:creator>DWB1973</dc:creator>
      <dc:date>2023-07-31T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: "for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462144#M20569</link>
      <description>&lt;P&gt;But this key will only analyze the opening percentage, not the duration of the device state.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 21:55:49 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462144#M20569</guid>
      <dc:creator>kessleynogueira</dc:creator>
      <dc:date>2023-07-31T21:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: "for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462145#M20570</link>
      <description>&lt;P&gt;Ah yeah, you're right.&amp;nbsp; The only keys for duration is For and suppressFor.&amp;nbsp; If For isn't working as it is described in the developer documentation, then you should send feedback or open a support ticket to let them know.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 22:01:56 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462145#M20570</guid>
      <dc:creator>DWB1973</dc:creator>
      <dc:date>2023-07-31T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: "for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462195#M20572</link>
      <description>&lt;P&gt;Right. I thought I was doing it wrong, not that it was a bug.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 23:16:52 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/462195#M20572</guid>
      <dc:creator>kessleynogueira</dc:creator>
      <dc:date>2023-07-31T23:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: "for" initializer for device state duration</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/612967#M46041</link>
      <description>&lt;P&gt;I have similar but different problem. I simply wanted to know if I left my door open. Like you, I used the device.state.OpenClose and "for: 5 min" (note space after value and separating units 'min', not sure if that's important). On the history log, I can see that the automation rule was started because the door was open (OpenClose=100). But then I close the door (&amp;lt;30 seconds) and there are no further events (might be missing the closing event?) and exactly 5 minutes later the routine would fire. So, I know it understood the 5 min duration part, but is either missing the closing event or something else is wrong. For what it's worth, I've also seen if I leave door open longer the door closed event fires (within 5 minutes) but 5 minutes later _still_ the announcement (Action) will fire despite clearly the status not having been 100 for 5 minutes. Any clues or suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 21:48:50 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/quot-for-quot-initializer-for-device-state-duration/m-p/612967#M46041</guid>
      <dc:creator>HaroldBien</dc:creator>
      <dc:date>2024-04-12T21:48:50Z</dc:date>
    </item>
  </channel>
</rss>

