currently I have this automation. One sensor in trigger, another in condition. However I notice that if condition wasn't met, the automation wouldn't "retest". How can I modify this so that I have the light turned off after both sensors are cleared for 30s?
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.0x282c02bfffea7da9_occupancy
to: "off"
for:
hours: 0
minutes: 0
seconds: 30
conditions:
- condition: state
entity_id: binary_sensor.0x282c02bfffea7dbf_occupancy
for:
hours: 0
minutes: 0
seconds: 30
state: "off"
actions:
- type: turn_off
device_id: 5cecfbfee1e1b8ec2920907e5c178863
entity_id: 4b0d74cca6df94df9941a88ccf8ded07
domain: light
mode: single