Doc improvements to alarm control panel, zwave (#3601)
* Adding examples for notifications, disarming * Remove old reference to options.xml Options.xml isn't needed for network key anymore, it should be set in configuration.yaml. Linked that section back to the main Z-Wave page that explains it. * Add blank lines
This commit is contained in:
parent
49d8cd0819
commit
6b9956a2d8
2 changed files with 31 additions and 1 deletions
|
@ -79,3 +79,33 @@ automation:
|
|||
service: alarm_control_panel.alarm_trigger
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
```
|
||||
|
||||
Sending a notification when the alarm is triggered.
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
- alias: 'Send notification when alarm triggered'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
to: 'triggered'
|
||||
action:
|
||||
- service: notify.notify
|
||||
data:
|
||||
message: "ALARM! The alarm has been triggered"
|
||||
```
|
||||
|
||||
Disarming the alarm when the door is properly unlocked.
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
- alias: 'Disarm alarm when door unlocked by keypad'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.front_door_lock_alarm_type
|
||||
to: '19'
|
||||
# many z-wave locks use Alarm Type 19 for 'Unlocked by Keypad'
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_disarm
|
||||
entity_id: alarm_control_panel.house_alarm
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue