Add changed_by
This commit is contained in:
parent
8d1500e5ba
commit
b4047c18ee
1 changed files with 16 additions and 0 deletions
|
@ -17,3 +17,19 @@ The Verisure alarm control panel platform allows you to control your [Verisure](
|
||||||
|
|
||||||
The requirement is that you have setup your [Verisure hub](/components/verisure/).
|
The requirement is that you have setup your [Verisure hub](/components/verisure/).
|
||||||
|
|
||||||
|
The `changed_by` attribute enables one to be able to take different actions depending on who armed/disarmed the alarm in [automation](/getting-started/automation/).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
automation:
|
||||||
|
- alias: Alarm status changed
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.alarm_1
|
||||||
|
action:
|
||||||
|
- service: notify.notify
|
||||||
|
data_template:
|
||||||
|
message: >
|
||||||
|
{% raw %}Alarm changed from {{ trigger.from_state.state }}
|
||||||
|
to {{ trigger.to_state.state }}
|
||||||
|
by {{ trigger.to_state.attributes.changed_by }}{% endraw %}
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue