In the HA user interface, the third button lets one fire events. How can I listen to these events in Node-RED? More specifically, I am trying to listen to telegram_callback
like in the following automation:
- alias: "Telegram Callback"
trigger:
- platform: event
event_type: telegram_callback
event_data:
command: '/snooze'
action:
... (some action)
Thanks for your help!
Kermit
April 16, 2019, 4:53am
2
An Events: all
node with Event Type: “telegram_callback”
1 Like
Worked like a charm, thank you @Kermit
rellik
January 12, 2021, 11:45am
4
@davosian , I am struggling with the exact same thing. I can actually get the event triggered, how do I do the telegram_callback /snooze command ?
I have switched to the HA iOS app for notifications in the meantime, but I think you should get the /snooze
command in the callback details under event_data
. See here for details: https://www.home-assistant.io/integrations/telegram_bot/#event-triggering