Automation, Help

Hello everyone. I need an automation that can only work if the state of trigger doesn’t change for 5 minutes

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - binary_sensor.telefonas_5
    to: "on"
condition: []
action:
  - device_id: bcb6ef872549c47c98573ffd5cbd3d1c
    domain: lock
    entity_id: lock.duru_spyna
    type: unlock
description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - binary_sensor.telefonas_5
    to: "on"
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition: []
action:
  - device_id: bcb6ef872549c47c98573ffd5cbd3d1c
    domain: lock
    entity_id: lock.duru_spyna
    type: unlock
1 Like