Issue w/ Presence Detection of Multiple People with Aqara FP2

Need some help resolving an issue I had with my FP2 for a while now; this is the scenario:

  1. I set up a desk zone in my office that turns my screens on when I enter and turns them off 25s after I leave it.
  2. The overall presence detection for the whole room turns the lights on as soon as I enter (and it’s dark enough) and turns them off 25s after I leave.

This all works fine! :smiley:

  1. When I sit at my desk - lights & screens on - my wife comes into the office and talks to me for a few minutes while I keep sitting at my desk.
  2. 25s after she leaves the office the lights as well as the screens turn off - although I’m still in there - and I sit in the dark.

I’ve experimented with different delays and conditions, but I can’t seem to get the lights and screens to stay on :frowning:

Any hints?

alias: Desk Presence Monitor & Lights on/off
description: ""
triggers:
  - entity_id:
      - binary_sensor.fp2_01_desk
    to: "on"
    from: "off"
    id: Detected
    trigger: state
  - entity_id:
      - binary_sensor.fp2_01_desk
    from: "on"
    to: "off"
    for:
      hours: 0
      minutes: 0
      seconds: 25
    id: Clear
    trigger: state
  - entity_id:
      - binary_sensor.fp2_01_room
    from: "on"
    to: "off"
    for:
      hours: 0
      minutes: 0
      seconds: 25
    id: Clear
    trigger: state
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Detected
        sequence:
          - target:
              entity_id: switch.monitors
            data: {}
            action: switch.turn_on
      - conditions:
          - condition: trigger
            id:
              - Clear
          - condition: state
            entity_id: binary_sensor.fp2_01_room
            state: "off"
            for:
              hours: 0
              minutes: 0
              seconds: 15
          - condition: state
            entity_id: binary_sensor.fp2_01_desk
            state: "off"
            for:
              hours: 0
              minutes: 0
              seconds: 15
        sequence:
          - target:
              entity_id: switch.monitors
            data: {}
            action: switch.turn_off
          - target:
              entity_id: light.light
            data: {}
            action: light.turn_off
mode: single