Hi all, I’m doing some practice on Telegram bot integration.
I have created an automation which reacts to a command sent to my bot, but I’d like to accept it only from a specific user. I’ve flagged “Limit to events triggered by” and selected my user, and here’s the yaml produced:
alias: Telegram enable alarm
description: ""
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /activate
context:
user_id:
- 54dc54d6f8024d12352ac2dba83266d7
condition: []
action:
- service: alarm_control_panel.alarm_arm_away
data: {}
target:
entity_id: alarm_control_panel.allarme
mode: single
This configuration didn’t work and action has not been taken. It seems that triggered event reports a different user_id
, which is the Telegram ID I have also used to configure Telegram bot and is different from the user_id
suggested by HA.
What can I do?