<?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 Help wanted: Script ignoring `for:` in starter in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Help-wanted-Script-ignoring-for-in-starter/m-p/578325#M42095</link>
    <description>&lt;P&gt;Hey would someone be able to help, I have this automation to turn off the kitchen light if there is no activity for 2 minutes but it often turns off the light when there is definitely motion. If it helps the its an eve motion sensor over matter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Turn the light off
  - starters:
      - type: device.state.OccupancySensing
        state: occupancy
        is: UNOCCUPIED
        device: Motion Sensor - Kitchen
        for: 2min
    condition:
      type: and
      conditions:
        - type: time.between
          before: sunrise
          after: sunset
          weekdays:
            - MON
            - TUE
            - WED
            - THU
            - FRI
            - SAT
            - SUN
        - type: home.state.HomePresence
          state: homePresenceMode
          is: HOME
        - type: device.state.OnOff
          state: on
          is: false
          device: Night Switch - Bedroom
    actions:
      - type: device.command.OnOff
        on: false
        devices: Kitchen Light - Kitchen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Jan 2024 19:30:33 GMT</pubDate>
    <dc:creator>domwhewell</dc:creator>
    <dc:date>2024-01-20T19:30:33Z</dc:date>
    <item>
      <title>Help wanted: Script ignoring `for:` in starter</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Help-wanted-Script-ignoring-for-in-starter/m-p/578325#M42095</link>
      <description>&lt;P&gt;Hey would someone be able to help, I have this automation to turn off the kitchen light if there is no activity for 2 minutes but it often turns off the light when there is definitely motion. If it helps the its an eve motion sensor over matter.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Turn the light off
  - starters:
      - type: device.state.OccupancySensing
        state: occupancy
        is: UNOCCUPIED
        device: Motion Sensor - Kitchen
        for: 2min
    condition:
      type: and
      conditions:
        - type: time.between
          before: sunrise
          after: sunset
          weekdays:
            - MON
            - TUE
            - WED
            - THU
            - FRI
            - SAT
            - SUN
        - type: home.state.HomePresence
          state: homePresenceMode
          is: HOME
        - type: device.state.OnOff
          state: on
          is: false
          device: Night Switch - Bedroom
    actions:
      - type: device.command.OnOff
        on: false
        devices: Kitchen Light - Kitchen&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2024 19:30:33 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Help-wanted-Script-ignoring-for-in-starter/m-p/578325#M42095</guid>
      <dc:creator>domwhewell</dc:creator>
      <dc:date>2024-01-20T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help wanted: Script ignoring `for:` in starter</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Help-wanted-Script-ignoring-for-in-starter/m-p/579417#M42175</link>
      <description>&lt;P&gt;I'm just investigating this a bit more and looking at the logs, it looks like the automation is starting as the kitchen is occupied. But that definitely isn't in the script...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;23/01/2024 22:00:00
[INFO] Starter check: conditions not met.
23/01/2024 22:00:00
[INFO] Starter check: conditions met.
23/01/2024 22:00:00
[INFO] Automation started by: [Motion Sensor] because [home.graph.traits.OccupancySensing/occupancy] [string_value: "UNOCCUPIED"].
23/01/2024 22:00:00
[INFO] Automation started by: [Motion Sensor] because [home.graph.traits.OccupancySensing/occupancy] [string_value: "UNOCCUPIED"].
23/01/2024 21:59:36
[INFO] Automation check: conditions met.
23/01/2024 21:59:36
[INFO] Starter check: conditions met.
23/01/2024 21:59:36
[INFO] Starter check: conditions not met.
23/01/2024 21:59:35
[INFO] Automation started by: [Motion Sensor] because [home.graph.traits.OccupancySensing/occupancy] [string_value: "OCCUPIED"].
23/01/2024 21:59:35
[INFO] Automation started by: [Motion Sensor] because [home.graph.traits.OccupancySensing/occupancy] [string_value: "OCCUPIED"].&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jan 2024 22:03:39 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Help-wanted-Script-ignoring-for-in-starter/m-p/579417#M42175</guid>
      <dc:creator>domwhewell</dc:creator>
      <dc:date>2024-01-23T22:03:39Z</dc:date>
    </item>
  </channel>
</rss>

