<?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: Bathroom - Automation in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Bathroom-Automation/m-p/618774#M46548</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am not getting any results with my "and" condition. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/543023"&gt;@Drjay18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am searching for more concepts, ideas, or even scenarios where my current automation could cause some issues in order to enhance my bathroom light automation.&lt;/P&gt;&lt;P&gt;This will be fantastic if I can get some helpful criticism and suggestions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Smart Devices&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kasa Lights&lt;/P&gt;&lt;P&gt;AQARA FP2 Sensor&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my bathroom automation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;metadata:
  name: Bathroom Light test
  description: As soon as you enter the restroom, the light will go on and stay on till you leave.
automations:
  #
  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: true
        device: Bathroom - Sensor - Bathroom
      - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing. # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
        state: occupancy
        # Whether the device senses occupancy. [available operators: is, isNot]
        isNot: OCCUPIED
        device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: true
        devices: Bathroom Light - Bathroom

  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: false
        device: Bathroom - Sensor - Bathroom
        for: 10min
    condition:
      type: and
      # "OR" together two or more conditionals
      conditions:
        - type: device.state.MotionDetection # For devices that can detect motion.
          state:
            motionDetectionEventInProgress
            # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
          is: false
          device: Bathroom - Sensor - Bathroom
        - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
          state: occupancy
          # Whether the device senses occupancy. [available operators: is, isNot]
          isNot: UNOCCUPIED
          device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: false
        devices: Bathroom Light - Bathroom&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 12:39:21 GMT</pubDate>
    <dc:creator>Drjay18</dc:creator>
    <dc:date>2024-05-10T12:39:21Z</dc:date>
    <item>
      <title>Bathroom - Automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Bathroom-Automation/m-p/618371#M46530</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am searching for more concepts, ideas, or even scenarios where my current automation could cause some issues in order to enhance my bathroom light automation.&lt;/P&gt;&lt;P&gt;This will be fantastic if I can get some helpful criticism and suggestions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Smart Devices&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kasa Lights&lt;/P&gt;&lt;P&gt;AQARA FP2 Sensor&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my bathroom automation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;metadata:
  name: Bathroom Light test
  description: As soon as you enter the restroom, the light will go on and stay on till you leave.
automations:
  #
  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: true
        device: Bathroom - Sensor - Bathroom
      - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing. # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
        state: occupancy
        # Whether the device senses occupancy. [available operators: is, isNot]
        isNot: OCCUPIED
        device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: true
        devices: Bathroom Light - Bathroom

  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: false
        device: Bathroom - Sensor - Bathroom
        for: 10min
    condition:
      type: and
      # "OR" together two or more conditionals
      conditions:
        - type: device.state.MotionDetection # For devices that can detect motion.
          state:
            motionDetectionEventInProgress
            # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
          is: false
          device: Bathroom - Sensor - Bathroom
        - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
          state: occupancy
          # Whether the device senses occupancy. [available operators: is, isNot]
          isNot: UNOCCUPIED
          device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: false
        devices: Bathroom Light - Bathroom&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:43:18 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Bathroom-Automation/m-p/618371#M46530</guid>
      <dc:creator>Drjay18</dc:creator>
      <dc:date>2024-05-08T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bathroom - Automation</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Bathroom-Automation/m-p/618774#M46548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am not getting any results with my "and" condition. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.googlenestcommunity.com/t5/user/viewprofilepage/user-id/543023"&gt;@Drjay18&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I am searching for more concepts, ideas, or even scenarios where my current automation could cause some issues in order to enhance my bathroom light automation.&lt;/P&gt;&lt;P&gt;This will be fantastic if I can get some helpful criticism and suggestions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Smart Devices&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kasa Lights&lt;/P&gt;&lt;P&gt;AQARA FP2 Sensor&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my bathroom automation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;metadata:
  name: Bathroom Light test
  description: As soon as you enter the restroom, the light will go on and stay on till you leave.
automations:
  #
  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: true
        device: Bathroom - Sensor - Bathroom
      - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing. # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
        state: occupancy
        # Whether the device senses occupancy. [available operators: is, isNot]
        isNot: OCCUPIED
        device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: true
        devices: Bathroom Light - Bathroom

  - starters:
      - type: device.state.MotionDetection # For devices that can detect motion.
        state: motionDetectionEventInProgress
        # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
        is: false
        device: Bathroom - Sensor - Bathroom
        for: 10min
    condition:
      type: and
      # "OR" together two or more conditionals
      conditions:
        - type: device.state.MotionDetection # For devices that can detect motion.
          state:
            motionDetectionEventInProgress
            # &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a motion detection event is occurring. [available operators: is, isNot]
          is: false
          device: Bathroom - Sensor - Bathroom
        - type: device.state.OccupancySensing # For devices that can detect occupancy, whether through PIR, ultrasonic, or physical contact sensing.
          state: occupancy
          # Whether the device senses occupancy. [available operators: is, isNot]
          isNot: UNOCCUPIED
          device: Bathroom Door - Bathroom
    actions:
      - type: device.command.OnOff # Turn the device on or off.
        # Whether to turn the device on or off.
        on: false
        devices: Bathroom Light - Bathroom&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 12:39:21 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Bathroom-Automation/m-p/618774#M46548</guid>
      <dc:creator>Drjay18</dc:creator>
      <dc:date>2024-05-10T12:39:21Z</dc:date>
    </item>
  </channel>
</rss>

