Hi there,
i would like to turn off “input_boolean.my_presence” when two sensors are not seeing anyone for more than 1min. Basically, i need two trigger to be “AND” which i can’t do.
The trick i’m using now goes as follows: I’m triggering the automation every 20s and i’ve put both sensors into the condition field (condition: they are not seeing anybody for more than 1min). Is there any better way?
alias: Presence OFF
trigger:
- platform: time_pattern
seconds: /20
condition:
- type: is_no_motion
condition: device
device_id: c210f5c48797ba99xxx
entity_id: binary_sensor.room_hue_motion_motion
domain: binary_sensor
for:
hours: 0
minutes: 1
seconds: 0
- type: is_not_occupied
condition: device
device_id: 3bb32e75f622d07xxx
entity_id: binary_sensor.room_aqara_fp1_2_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 1
seconds: 0
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.my_presence
mode: single