Instead of…
- alias: 'Telebot Start'
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/start'
- platform: event
event_type: telegram_command
event_data:
command: '/begin'
- platform: event
event_type: telegram_command
event_data:
command: '/hello'
Can I simplify it further? I have tried…
- alias: 'Telebot Start'
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/start', '/begin', '/hello'
- alias: 'Telebot Start'
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/start, /begin, /hello'
- alias: 'Telebot Start'
trigger:
- platform: event
event_type: telegram_command
event_data:
command:
- '/start'
- '/begin'
- '/hello'
- alias: 'Telebot Start'
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/start'
command: '/begin'
command: '/hello'
All failed.
simpat1zq
(Simpat1zq)
June 19, 2017, 11:40am
2
The last section should help you simplify it a little more.
GMFalka
(Gm Falka)
June 19, 2017, 11:45am
3
His first example was basicly whats in the docs you linked.
I dont think there are simpler way to do it
simpat1zq
(Simpat1zq)
June 19, 2017, 11:59am
4
You’re right. I didn’t notice. But I think that’s as simple as it gets.
apop
April 24, 2019, 8:19pm
6
YAML automations unfortunately aren’t going to support that. I’d suggest taking a look at AppDaemon or Node-Red if you want to get more advanced with a Telegram bot. There’s even examples for both here on the forum:
On my screenshot above you can see that i had the same issue. Only 8 buttons are shown for 9 covers. Didn’t noticed that till now. I have fixed the issue and have just updated the repositoy on github. Just checkout the updated version. I am now adding multiple rows for the inline keyboard. After 8 buttons a new row is started.
Hi to you all!
Just want to share a simple HowTo to setup a Telegram bot for all your messages from, and to your home automation services.
For example, I use three separate Telegram-bots:
Logging-bot for, ehh, logging. No sounds or pop-ups when messages arrive on my phone/tablet/desktop.
Status-bot for state-changes like Home, Away, Armed and so on. Just a ‘beep’ when messages are received.
Alarm-bot for alarm and emergency messages, including pictures from cameras in breached zones. With…