mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
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
This commit is contained in:
parent
59b92ef9a2
commit
1df189b778
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user