From 1df189b778b1241c8f18b6e4e3d56341076555d0 Mon Sep 17 00:00:00 2001 From: Marius <33354141+Mariusthvdb@users.noreply.github.com> Date: Fri, 26 Jul 2019 16:06:23 +0200 Subject: [PATCH] several changes to Manual Alarm panel doc (#9969) * several changes to Manual Alarm panel doc took out the double underscores in the sensor.date_time templates changed the data field to data_template field where applicable (since the messages use the template) commented out the initial_state: 'on', since that is no longer required provided 1 example using multi-line notation * Update manual.markdown all agreed and changed --- source/_components/manual.markdown | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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 %}