You don’t need a wait for trigger for this. It can be done like this:
Turn on automation
trigger:
- platform: state
entity_id: binary_sensor.motion_1
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.motion_2
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: light.your_light
state: 'off'
action:
- service: light.turn_on
target:
entity_id: light.your_light
Turn off automation
trigger:
- platform: template
value_template: "{{ is_state('binary_sensor.motion_1', 'off') and is_state('binary_sensor.motion_2', 'off') }}"
for:
minutes: 15
condition:
- condition: state
entity_id: light.your_light
state: 'on'
action:
- service: light.turn_off
target:
entity_id: light.your_light