Hi,
I'm having issue configuring automation that waits for multiple entities states for specific duration before actions get executed. I have tried wait_trigger but it needs the state to change to specific one before automation starts, so it didn't seem to work. The wait_template doesn't seem to have an option to configure the duration needed for the state to be in, before evaluating true. When I add the conditions for and if, it seems to just outright fail it if the duration isn't met.
Do you guys have any other suggestions, so it waits until all conditions are met before it runs actions?
alias: Close Garage Door after Car Detected in Garage
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.garage_inside_car_occupancy
to: "on"
condition: []
action:
- if:
- type: is_not_connected
condition: device
device_id: 0e711c4afe1a3bb57eb4bd4da5274ea8
entity_id: 4254f2af9b434c3737fd04d4ce0f9f17
domain: binary_sensor
- condition: zone
entity_id: person.maxver
zone: zone.home
- condition: state
entity_id: cover.ratgdov25i_0b06d3_door
state: open
for:
minutes: 2
- condition: state
entity_id: binary_sensor.ratgdov25i_0b06d3_obstruction
state: "off"
for:
minutes: 1
then:
- service: notify.mobile_app
data:
message: Closing Car Garage Door