Hi there,
I have two automations. First one to warn me if lights are on and I am not at home:
- id: allewegaberlichteran
alias: "Lichter vergessen"
trigger:
platform: state
entity_id: group.familie
state: 'not_home'
for:
hours: 0
minutes: 15
seconds: 0
condition:
condition: or
conditions:
- condition: state
entity_id: light.one
state: 'on'
- condition: state
entity_id: light.two
state: 'on'
- condition: state
entity_id: light.three
state: 'on'
- condition: state
entity_id: light.four
state: 'on'
action:
- service: notify.telegram
data:
message: 'Lichter an!'
data:
keyboard:
- '/ausmachen'
This works great. I get a telegram-notification with the button “/ausmachen”. Pressing that button should trigger the second automation. But it seems that HA does not receive the input from telegram (there’s nothing in the log while pressing…). The second automation looks like the following:
- id: lichterbeiabwesenheitaus
alias: "Lichter bei Abwesenheit aus"
trigger:
- platform: event
event_type: telegram_command
event_data:
command: '/ausmachen'
action:
- service: light.turn_off
entity_id: light.one, light.two, light.three, light.four
Nonetheless I can trigger it manually and it does what it’s supposed to do - switch of all the lights. What am I doing wrong?