Help with Aqara FP2 automation with lights!

So I am making automations using the Aqara Fp2 and my wife doesn’t like how it turns off right away. Now I can add a delay or whatever but how do I make the light stay on if for example we used a voice command or pressed the switch? That way it won’t turn off when the presence is clear?

alias: Dining Room Lights Occupied Toggle
description: “”
trigger:

  • type: occupied
    platform: device
    device_id: 5d8daa154878c6283428eb2be6958d07
    entity_id: 535d904efc97a35068ae8901ccd0f172
    domain: binary_sensor
    id: Dining-on
  • type: not_occupied
    platform: device
    device_id: 5d8daa154878c6283428eb2be6958d07
    entity_id: 535d904efc97a35068ae8901ccd0f172
    domain: binary_sensor
    id: Dining-off
    condition:
    action:
  • choose:
    • conditions:
      • condition: trigger
        id:
        • Dining-on
          sequence:
      • service: light.turn_on
        data: {}
        target:
        device_id: 10ec3257618e0375f1dec652adc34ca9
    • conditions:
      • condition: trigger
        id:
        • Dining-on
        • Dining-off
          sequence:
      • service: light.turn_off
        data: {}
        target:
        device_id: 10ec3257618e0375f1dec652adc34ca9
        mode: single

I don’t use YAML by the way but the experts can probably help me if I post yaml code.

Not sure if you know about Blueprints, but there is no point in re-creating the wheel, created this awesome blueprint and it’ll give you everything you need to turn lights on/off

:bulb: Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights - Blueprints Exchange - Home Assistant Community (home-assistant.io)