Bedroom Automation using Homey Pro & Aqara FP2


:small_blue_diamond: Triggers

  1. Zone Bedroom became occupied → starts the “room active” sequence.
  2. Zone Bedroom became free → starts countdowns if bed is also occupied.
  3. Countdown timers reach zero (Bedroom, Bedroom², Bedroom³) → control lights.
  4. Zone Bed became occupied → fan control based on time of night.

:small_blue_diamond: When

Bedroom becomes occupied

  • Stop countdown timers (Bedroom, Bedroom², Bedroom³) → Cancels any pending “lights off” or “dim down” actions so the room stays on while occupied.
  • Check nighttime condition
    • If it’s nighttime
      • If Dim level > 0.1 → Lights go to 100%
      • Else (Dim level ≤ 0.1) → Lights go to 10% (night mode)
  • Check temperature condition
    • If Temperature > 74°F → Ceiling fan turns on

:small_blue_diamond: When

Bedroom becomes free

  • If Bed occupied = yes → start two timers:
    • Bedroom (10s) → leads to all lights off
    • Bedroom² (120s) → leads to dim light to 20%

(Looks like a layered approach: quick shutdown if empty, fallback dim if still inactive after 2 minutes.)


:small_blue_diamond: Countdown timer actions

  • Bedroom timer (0) → Turn all lights off
  • Bedroom² timer (0) → Dim lights to 20% , then start a new Bedroom³ timer (20s)
  • Bedroom³ timer (0) → Turn all lights off

:point_right: This creates a “soft fade-out”:

  1. Empty room → after 2 min, dim to 20%
  2. After another 20s, turn off completely

:small_blue_diamond: When

Bed becomes occupied

  • If time is between 21:00–07:00 → Turn all fans on
3 Likes

Thank you for sharing your automation case! I believe this will inspire others.

1 Like

@KevinStarks This is a fantastic share of your bedroom automation setup with Homey Pro and Aqara FP2! The layered triggers, conditional checks (like nighttime and temperature), and the “soft fade-out” timer approach show great thoughtfulness—balancing convenience, energy efficiency, and user experience. It’s especially clever how you’ve integrated zone occupancy (Bedroom vs. Bed) to fine-tune fan and light control, making the system feel intuitive and responsive.

Thanks for breaking down the logic so clearly—this kind of detailed walkthrough is super helpful for the community, whether others are looking to replicate similar setups or get inspired to tweak their own. If you ever have updates or new insights (like how the FP2’s zone detection performs over time, or adjustments you’ve made), we’d love to hear more!

Keep sharing these practical, well-designed automation ideas—they’re a great resource for everyone. :blush:

1 Like