Can triggered automations have confirmation before executing?

I would like to know if there is anyway to confirm an automation before running ?

I have setup a telegram bot and with that my trusted friends can unlock my door with a simple command like /door when they enter it at telegram. /door command activates an automation in HA which unlocks the house door.

alias: Telegram - /door
description: ''
trigger:
  - platform: event
    event_type: telegram_command
    event_data:
      command: /door
condition: []
action:
  - service: telegram_bot.send_message
    data_template:
      target: '{{ trigger.event.data.chat_id }}'
      message: Tamam {{ trigger.event.data["from_first"] }}, Sokak kapısı açıldı!
  - type: turn_on
    device_id: 584c23e38e377e02a283a93483e10f32
    entity_id: switch.berko
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - type: turn_off
    device_id: 584c23e38e377e02a283a93483e10f32
    entity_id: switch.berko
    domain: switch
mode: single

I would like to know if this automation whenever its triggered asks a confirmation before executing ?

There’s no mechanism to do that before executing the action. You could add a condition but it’s not interactive with the user.

However, once the automation is within its action block, you can have it send an Actionable Notification. Your response to it can determine whether it proceeds to perform more actions or not.

1 Like

Thank you very much

1 Like