Motion sensor in automation trigger once during a period of time

Another way to achieve what you want is to create a hidden proxy input boolean that you set to true on every motion detection and use an automation to 1) notify you when set to True, 2) wait for 10 minutes and then set it to False.

input_boolean:
  notify_motion:
  name: Notify When Motion Detected
  initial: off

automation:
  - alias: Detect Motion
    trigger:
      - platform: state
        entity_id: binary_sensor.my_motion_sensor
        state: on
    action:
      - service: input_boolean.turn_on
        entity_id: input_boolean.notify_motion
  - alias: Notify Motion
    trigger:
      - platform: state
        entity_id: input_boolean.notify_motion
        state: on
    action:
      - service: notify.notify
        data:
          message: 'Motion detected'
      - delay: 10:00
      - service: input_boolean.turn_off
        entity_id: input_boolean.notify_motion
1 Like