Binary template sensor help

Hi,

Could anybody tell me how to create a binary template sensor that is on when a certain motion sensor has been off for 10 minutes?

Thx

binary_sensor:
  - platform: template
    sensors:
      motion_off_10_min:
        friendly_name: "No Motion 10 min"
        delay_on:
          minutes: 10
        value_template: >
          {{ is_state('binary_sensor.your_motion_sensor', 'off') }}
1 Like

Thanks a lot!

Shouldn’t that be 'off' instead of 'on'?

binary template sensor that is on when a certain motion sensor has been off for 10 minutes?

Or have I misunderstood it?

1 Like

Of course, fixed.

1 Like

Was just about to write the same. Thanks