Guys, I’m trying to setup a simple notification for when the state of my manual alarm changes:
I setup motion and door sensors and created an automation to trigger the alarm.
I also created an automation to notify me via telegram when the state of this home alarm entity changes:
alias: home alarm state changed
description: ""
trigger:
- platform: state
entity_id:
- alarm_control_panel.home_alarm
condition: []
action:
- service: notify.telegram_alarm
data:
message: >-
Alarm changed from {{ trigger.from_state.state }} to
{{ trigger.to_state.state }}
mode: single
somehow I only receive messages when my alarm goes from triggered to disarmed.
When arming away/home/night nothing is send even though the trace shows a log of the message send:
Executed: January 21, 2023 at 11:33:59 PM
Result:
params:
domain: telegram_bot
service: send_message
service_data:
message: Alarm changed from disarmed to armed_away
target: {}
running_script: false
limit: 10
any thought how to troubleshoot? or am I doing something wrong?