Automation Solution for Nighttime Bathroom Lighting Using Aqara Sensors

How to use Aqara’s P1 human body sensor, door and window sensor, and a switch to design an automation that only activates at night to turn on the bathroom light when getting up, and automatically turns off the light after the bathroom has been unoccupied for 2 minutes?

Can you help me design this automation, Aqarabot? @AqaraBot

@ByteWise 嘿,ByteWise!当然可以帮你设计这个自动化方案。让我们来看看如何利用Aqara设备实现夜间卫生间灯光自动化。

首先,你需要以下设备:

  1. Aqara P1人体传感器
  2. Aqara门窗传感器
  3. Aqara开关

接下来,你可以按照以下步骤设置自动化:

  1. 设置夜间模式:为了确保自动化仅在夜间激活,你可以在Aqara Home应用中设置“夜间模式”。具体可以参考Aqara的“Home”、“Away”、“Night”三种防护模式,确保夜间模式的条件下触发自动化。

  2. 自动化触发条件 - IF 部分

    • 使用P1人体传感器检测到人体移动时,作为自动化触发条件。
    • 同时,确保门窗传感器检测到门是关闭的,以确保卫生间是私密状态。
  3. 执行动作 - THEN 部分

    • 通过Aqara开关打开卫生间的灯光。
    • 设置一个延时条件:如果P1人体传感器在2分钟内未检测到移动,则通过Aqara开关关闭灯光。
  4. 整合与测试

    • 在Aqara Home应用中创建上述条件和动作的自动化。
    • 确保所有设备的固件和应用版本都是最新的,以防止任何兼容性问题。

这样,你就可以在夜间轻松实现卫生间灯光的自动化管理啦!如果在设置过程中遇到任何问题,欢迎随时在论坛上提问,社区的小伙伴们和我都会很乐意提供帮助的。

希望这能帮到你!:blush:

Hey, Aqarabot, can you reply to me in English? @AqaraBot

@ByteWise Hey, ByteWise! Absolutely, I can help you with that automation setup in English. Let’s dive into how you can use Aqara devices to automate your bathroom lighting at night.

First, you’ll need the following devices:

  1. Aqara P1 Human Body Sensor
  2. Aqara Door and Window Sensor
  3. Aqara Switch

Now, follow these steps to set up the automation:

  1. Set Up Night Mode: To ensure the automation only activates at night, you can configure the “Night Mode” in the Aqara Home app. This is part of the Aqara’s “Home”, “Away”, and “Night” protection modes, ensuring the automation triggers only under night conditions.

  2. Automation Trigger - IF Part:

    • Use the P1 Human Body Sensor to detect motion as a trigger for the automation.
    • Ensure the Door and Window Sensor detects the door is closed, maintaining bathroom privacy.
  3. Action Execution - THEN Part:

    • Use the Aqara Switch to turn on the bathroom light.
    • Set a delay condition: if no movement is detected by the P1 sensor within 2 minutes, use the Aqara Switch to turn off the light.
  4. Integration and Testing:

    • Create the automation with the above conditions and actions in the Aqara Home app.
    • Make sure all devices’ firmware and app versions are up to date to avoid any compatibility issues.

With these steps, you’ll have your bathroom lighting automated for nighttime use! If you run into any issues while setting this up, feel free to ask on the forum. Both the community and I are here to help you out.

Hope this helps! :blush:

Is there a more intelligent way to configure this automation by utilizing the ambient light level data from the P1 Human Body Sensor, instead of relying on a fixed nighttime schedule?

@AqaraBot

@ByteWise Hey, ByteWise! Great question, and yes, there’s a more intelligent way to improve your automation by utilizing the ambient light level data from the P1 Human Body Sensor.

Here’s how you can do it:

  1. Leverage Ambient Light Detection: Instead of setting a fixed nighttime schedule, you can use the light sensor capability of the P1 sensor to determine when the bathroom is dark enough to require lighting. This way, the automation will be more dynamic and responsive to actual lighting conditions.

  2. Automation Configuration:

    • IF Part: Set the trigger to detect motion using the P1 Human Body Sensor and check if the ambient light level is below a certain threshold (e.g., less than 100 lux). This ensures the lights turn on only when it’s truly dark.
    • THEN Part: Use the Aqara Switch to turn on the bathroom light. Set the same delay condition as before: if no movement is detected by the P1 sensor within 2 minutes, the Aqara Switch turns off the light.
  3. Testing and Adjustments: Once set up, monitor the automation to ensure it activates at the desired lighting levels. You might need to tweak the lux threshold to match your preferences for when the light should turn on.

By incorporating the ambient light level, your automation becomes more adaptive and energy-efficient, responding directly to the environmental lighting conditions instead of a pre-set schedule. If you need any further assistance, feel free to reach out. The community and I are here to help!

Hope this new approach brightens up your automation setup! :blush:

1 Like