diff --git a/source/_components/manual.markdown b/source/_components/manual.markdown index f8d3340621f..fc33d00a268 100644 --- a/source/_components/manual.markdown +++ b/source/_components/manual.markdown @@ -214,59 +214,57 @@ Sending a Notification when the Alarm is Armed (Away/Home), Disarmed and in Pend {% raw %} ```yaml - alias: 'Send notification when alarm is Disarmed' - initial_state: 'on' trigger: - platform: state entity_id: alarm_control_panel.home_alarm to: 'disarmed' action: - service: notify.notify - data: - message: "ALARM! The alarm is Disarmed at {{ states('sensor.date__time') }}" + data_template: + message: "ALARM! The alarm is Disarmed at {{ states('sensor.date_time') }}" ``` {% endraw %} {% raw %} ```yaml - alias: 'Send notification when alarm is in pending status' - initial_state: 'on' trigger: - platform: state entity_id: alarm_control_panel.home_alarm to: 'pending' action: - service: notify.notify - data: - message: "ALARM! The alarm is in pending status at {{ states('sensor.date__time') }}" + data_template: + message: "ALARM! The alarm is in pending status at {{ states('sensor.date_time') }}" ``` {% endraw %} {% raw %} ```yaml - alias: 'Send notification when alarm is Armed in Away mode' - initial_state: 'on' trigger: - platform: state entity_id: alarm_control_panel.home_alarm to: 'armed_away' action: - service: notify.notify - data: - message: "ALARM! The alarm is armed in Away mode {{ states('sensor.date__time') }}" + data_template: + message: "ALARM! The alarm is armed in Away mode {{ states('sensor.date_time') }}" ``` {% endraw %} {% raw %} ```yaml - alias: 'Send notification when alarm is Armed in Home mode' - initial_state: 'on' trigger: - platform: state entity_id: alarm_control_panel.home_alarm to: 'armed_home' action: - service: notify.notify - data: - message: "ALARM! The alarm is armed in Home mode {{ states('sensor.date__time') }}" + data_template: + # Using multi-line notation allows for easier quoting + message: > + ALARM! The alarm is armed in Home mode {{ states('sensor.date_time') }} ``` {% endraw %}