I have an automation which is triggered by a telegram command. The command basically opens house door lock. But when I want to add other actions to the automation it only triggers the first action. Anyone have any idea ?
alias: Telegram - Komut (202)
description: ''
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /202
condition: []
action:
- service: telegram_bot.send_message
data_template:
target: '{{ trigger.event.data.chat_id }}'
message: Tamam {{ trigger.event.data["from_first"] }}, Hoşgeldin evimize!
- type: turn_on
device_id: 584c23e38e377e02a283a93483e10f32
entity_id: switch.berko
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- type: turn_off
device_id: 584c23e38e377e02a283a93483e10f32
entity_id: switch.berko
domain: switch
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: alarm_control_panel.alarm_disarm
data:
code: '1234'
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- type: turn_on
device_id: 6ad0743b163649ea99d9f3280103355f
entity_id: switch.termosifon_socket
domain: switch
mode: single