<?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: Use person detection to trigger light, then turn off in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/477513#M21810</link>
    <description>&lt;P&gt;I use this script to do what you want to do. You can add more conditions if you'd like.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Doorbell Camera Person Detected Light On
  description: Turn on the lights when camera sees someone.

automations:
  - starters:
      - type: device.event.PersonDetection
        device: Doorbell - Front door
    actions:
      - type: device.command.OnOff
        devices: Porch Light - Front door
        on: true
      - type: time.delay
        for: 20min
      - type: device.command.OnOff
        devices: Porch Light - Front door
        on: false
    condition:
      type: and

      conditions:
        - type: time.between
          after: sunset+1hour
          before: sunrise
        - type: device.state.OnOff
          state: on
          is: false
          device: Porch Light - Front door&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Sep 2023 00:46:54 GMT</pubDate>
    <dc:creator>Cosacalo</dc:creator>
    <dc:date>2023-09-06T00:46:54Z</dc:date>
    <item>
      <title>Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/476953#M21763</link>
      <description>&lt;P&gt;I’m trying to have my backyard nest cam use person detection to turn on a lamp and then if there is no motion detected for 10 minutes, turn the lamp off. I also have a condition to do this only at night. I cannot get the section that turns off the light to work without errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Backyard Motion Detected&lt;BR /&gt;description: When backyard camera detects person, activate living room lamp&lt;/P&gt;&lt;P&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.event.PersonDetection&lt;BR /&gt;device: Backyard camera - Backyard&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: 22:00&lt;BR /&gt;before: sunrise&lt;/P&gt;&lt;P&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices: Living Room Lamp - Living Room&lt;BR /&gt;on: true&lt;/P&gt;&lt;P&gt;- starters:&lt;BR /&gt;- type: device.event.MotionDetection&lt;BR /&gt;device: Backyard camera - Backyard&lt;BR /&gt;state: motionDetectionEventInProgress&lt;BR /&gt;is: false&lt;BR /&gt;for: 10 min&lt;/P&gt;&lt;P&gt;condition:&lt;BR /&gt;type: time.between&lt;BR /&gt;after: 22:00&lt;BR /&gt;before: sunrise&lt;/P&gt;&lt;P&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices: Living Room Lamp - Living Room&lt;BR /&gt;on: false&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 17:03:05 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/476953#M21763</guid>
      <dc:creator>kevwags</dc:creator>
      <dc:date>2023-09-04T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/477513#M21810</link>
      <description>&lt;P&gt;I use this script to do what you want to do. You can add more conditions if you'd like.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Doorbell Camera Person Detected Light On
  description: Turn on the lights when camera sees someone.

automations:
  - starters:
      - type: device.event.PersonDetection
        device: Doorbell - Front door
    actions:
      - type: device.command.OnOff
        devices: Porch Light - Front door
        on: true
      - type: time.delay
        for: 20min
      - type: device.command.OnOff
        devices: Porch Light - Front door
        on: false
    condition:
      type: and

      conditions:
        - type: time.between
          after: sunset+1hour
          before: sunrise
        - type: device.state.OnOff
          state: on
          is: false
          device: Porch Light - Front door&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Sep 2023 00:46:54 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/477513#M21810</guid>
      <dc:creator>Cosacalo</dc:creator>
      <dc:date>2023-09-06T00:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478117#M21876</link>
      <description>&lt;P&gt;This worked! There is very little latency also which is fantastic. Final code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metadata:
  name: Backyard Motion Detected
  description: When backyard camera detects person, activate living room lamp for 10 minutes.

automations:
  - starters:
      - type: device.event.PersonDetection
        device: Backyard Camera - Backyard

    condition:
      type: time.between
      after: 22:00
      before: sunrise

    actions:
      - type: device.command.OnOff
        devices: Living Room Lamp - Living Room
        on: true
      - type: time.delay
        for: 10min
      - type: device.command.OnOff
        devices: Living Room Lamp - Living Room
        on: false&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Sep 2023 15:41:10 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478117#M21876</guid>
      <dc:creator>kevwags</dc:creator>
      <dc:date>2023-09-07T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478349#M21895</link>
      <description>&lt;P&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/414074"&gt;@kevwags&lt;/a&gt;&amp;nbsp;which lights are supported with the script editor? I have kasa switches that are added to my google home, but I guess those are not supported.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 00:18:35 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478349#M21895</guid>
      <dc:creator>blackmagic</dc:creator>
      <dc:date>2023-09-08T00:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478351#M21896</link>
      <description>&lt;P&gt;well.. it appears the HS220 switch is indeed supported as an action for on/off, but for some reason the script editor is not recognizing it as a device.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 00:21:27 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478351#M21896</guid>
      <dc:creator>blackmagic</dc:creator>
      <dc:date>2023-09-08T00:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478353#M21898</link>
      <description>&lt;P&gt;Not sure. I am using a Govee Wi-Fi bulb.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 00:29:22 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478353#M21898</guid>
      <dc:creator>kevwags</dc:creator>
      <dc:date>2023-09-08T00:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478356#M21899</link>
      <description>&lt;P&gt;I had to unlink kasa, close the app, and then re-add it!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 00:46:32 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/478356#M21899</guid>
      <dc:creator>blackmagic</dc:creator>
      <dc:date>2023-09-08T00:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use person detection to trigger light, then turn off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/636567#M47537</link>
      <description>&lt;P&gt;This is excellent, &amp;nbsp;thanks for posting! &amp;nbsp;It works great for me.&lt;/P&gt;
&lt;P&gt;One additional question. &amp;nbsp;Since the doorbells have facial recognition is there a way to make an automation that play a short recording of my voice over the door bell the says "HELLO PAUL" when the doorbell see PAUL?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 23:19:41 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Use-person-detection-to-trigger-light-then-turn-off/m-p/636567#M47537</guid>
      <dc:creator>EmptyNester</dc:creator>
      <dc:date>2024-08-10T23:19:41Z</dc:date>
    </item>
  </channel>
</rss>

