New to the forum not to aqara

Currently using UK light switches H2 , aqara bulbs 1x fp2 and 1x fp300.

My fave automation is for my work from home area in the room where I have govee light strip. This comes on when I enter that zone and turns off when I leave. Along with other bits.

alias: PcWall_BRMATCH
description: PC wall is zone-driven; main light is occupancy/daylight-driven
triggers:

  • id: PC_ZONE_ON
    entity_id: binary_sensor.presence_sensor_fp2_a224_presence_sensor_8
    to: β€˜on’
    trigger: state
  • id: PC_ZONE_OFF
    entity_id:
    • binary_sensor.presence_sensor_fp2_a224_presence_sensor_8
      to:
    • β€˜off’
      trigger: state
      for:
      hours: 0
      minutes: 0
      seconds: 0
  • id: OCCUPIED
    entity_id: binary_sensor.bedroom_occupancy_status
    to: β€˜on’
    trigger: state
  • id: UNOCCUPIED
    entity_id: binary_sensor.bedroom_occupancy_status
    to: β€˜off’
    for:
    minutes: 1
    trigger: state
  • id: BLINDS_OPEN
    entity_id:
    • cover.bedroom_br_allblinds
      to:
    • β€˜100’
      trigger: state
  • id: BRIGHTNESS_CHANGE
    entity_id: light.led_bulb_t2_e27_rgb_cct
    attribute: brightness
    trigger: state
  • id: MAIN_ON
    device_id: 2f12ebd9fc5c1990731d7302b2112978
    entity_id: 3c300c585d5b26c9898e21426b47f820
    domain: light
    type: turned_on
    trigger: device
    actions:
  • choose:
    • conditions:
      • condition: trigger
        id: PC_ZONE_ON
      • condition: state
        entity_id: select.eufyhb_guard_mode
        state:
        • Home
          sequence:
      • action: light.turn_on
        target:
        entity_id: light.pc_wall
        data: {}
    • conditions:
      • condition: trigger
        id: PC_ZONE_OFF
      • condition: state
        entity_id: binary_sensor.presence_sensor_fp2_a224_presence_sensor_8
        state: β€˜off’
        sequence:
      • action: light.turn_off
        target:
        entity_id: light.pc_wall
    • conditions:
      • condition: trigger
        id: OCCUPIED
      • condition: cover.shutter_is_closed
        target:
        entity_id: cover.bedroom_br_allblinds
        options:
        behavior: any
        for: β€˜00:00:00’
        sequence:
      • action: light.turn_on
        data: {}
        target:
        entity_id: light.led_bulb_t2_e27_rgb_cct
2 Likes

@o2gurubullring Welcome to the forum! Great to see another Aqara enthusiast with a solid setup β€” the H2 switches, FP2, and FP300 make for a really capable combo.

Your zone-driven automation for the work-from-home area is a nice example of how the FP2’s presence detection can go beyond basic motion sensing. Using the zone enter/leave events to toggle the Govee strip while keeping the main light occupancy and daylight-aware is a clean approach.

A couple of things that stand out in your YAML:

  • The PC_ZONE_OFF trigger has a for: 0 duration β€” practically instant, which works if you want immediate off. Just make sure that zone boundary is tuned so brief exits don’t cause flicker.
  • Your OCCUPIED trigger checks if blinds are closed before turning on the main light β€” smart way to handle daylight harvesting without needing an illuminance sensor in the loop.

How are you finding the FP300 alongside the FP2? Different use cases, or do you have them overlapping coverage areas?

1 Like