Simple "AND" statement

good idea.

Back to the drawing board.

The example I posted above does exactly the same thing without the need for a Template Binary Sensor. Not sure why you’re looking to make the automation reliant on more entities when it already has what it needs to get the job done.

In the interim, after executing Check Configuration, look for the persistent notification it may generate. Otherwise you may be misled to believe everything is AOK.

I though if I combine into one sensor then the two minute timer will start after the last motion sensor is activated.

Yes I see now the notification.

I somehow mixing everything up got here.


hassio help

I’ll try again tomorrow

The Template Binary Sensor is optional; a Template Trigger can do the same thing.

This will trigger when both binary_sensors have changed to off and have maintained that state for at least 2 minutes.

- alias: 'Motion Lighting Garage turn light off'
  trigger:
  - platform: template
    value_template: "{{ is_state('binary_sensor.inside_motion_1','off') and is_state('binary_sensor.inside_motion_2','off') }}"
    for: '00:02:00'
  action:
  - service: switch.turn_off
    entity_id: switch.g_inlight