<?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: Script editor - run action only after device state is on for x seconds in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/614252#M46145</link>
    <description>&lt;P&gt;Probably something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn on lights when media is paused&lt;BR /&gt;description: Turn on lights when media is paused&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.MediaState&lt;BR /&gt;device: name-media-device&lt;BR /&gt;state: isPaused&lt;BR /&gt;is: true&lt;BR /&gt;for: 5sec&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- some lights&lt;BR /&gt;on: true&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 10:46:59 GMT</pubDate>
    <dc:creator>Nes58</dc:creator>
    <dc:date>2024-04-18T10:46:59Z</dc:date>
    <item>
      <title>Script editor - run action only after device state is on for x seconds</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/614210#M46139</link>
      <description>&lt;P&gt;I am trying to set up an automation where lights turn on only after media has been paused for 5 seconds. Is that possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 02:46:11 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/614210#M46139</guid>
      <dc:creator>Spaceman_B</dc:creator>
      <dc:date>2024-04-18T02:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor - run action only after device state is on for x seconds</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/614252#M46145</link>
      <description>&lt;P&gt;Probably something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn on lights when media is paused&lt;BR /&gt;description: Turn on lights when media is paused&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.MediaState&lt;BR /&gt;device: name-media-device&lt;BR /&gt;state: isPaused&lt;BR /&gt;is: true&lt;BR /&gt;for: 5sec&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- some lights&lt;BR /&gt;on: true&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 10:46:59 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/614252#M46145</guid>
      <dc:creator>Nes58</dc:creator>
      <dc:date>2024-04-18T10:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor - run action only after device state is on for x seconds</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/615233#M46267</link>
      <description>&lt;P&gt;Hey thanks for the help! I had to tweak it a little to make it work:&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Media play&lt;BR /&gt;description: Media play for 5 secs&lt;/P&gt;&lt;P&gt;automations:&lt;BR /&gt;starters:&lt;BR /&gt;- type: device.state.MediaState&lt;BR /&gt;state: playbackState&lt;BR /&gt;is: PLAYING&lt;BR /&gt;device: Chromecast device&lt;BR /&gt;for: 5sec&lt;/P&gt;&lt;P&gt;actions:&lt;/P&gt;&lt;P&gt;- type: device.command.OnOff&lt;BR /&gt;on: false&lt;BR /&gt;devices: Lights&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 07:45:19 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-editor-run-action-only-after-device-state-is-on-for-x-seconds/m-p/615233#M46267</guid>
      <dc:creator>Spaceman_B</dc:creator>
      <dc:date>2024-04-22T07:45:19Z</dc:date>
    </item>
  </channel>
</rss>

