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:
- Dining-on
- service: light.turn_on
data: {}
target:
device_id: 10ec3257618e0375f1dec652adc34ca9
- condition: trigger
- conditions:
- condition: trigger
id:- Dining-on
- Dining-off
sequence:
- service: light.turn_off
data: {}
target:
device_id: 10ec3257618e0375f1dec652adc34ca9
mode: single
- condition: trigger
- conditions:
I don’t use YAML by the way but the experts can probably help me if I post yaml code.