mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 09:46:59 +00:00
Update alarm_control_panel.totalconnect.markdown (#5718)
Add an automation example.
This commit is contained in:
parent
497cc9d531
commit
b2e4275377
@ -34,3 +34,27 @@ Configuration variables:
|
||||
- **username** (*Required*): Username used to sign into the TotalConnect app/web client.
|
||||
- **password** (*Required*): Password used to sign into the TotalConnect app/web client.
|
||||
|
||||
Automation example:
|
||||
|
||||
```yaml
|
||||
automation:
|
||||
- alias: "Alarm: Disarmed Daytime"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: alarm_control_panel.total_connect
|
||||
to: 'disarmed'
|
||||
condition:
|
||||
condition: sun
|
||||
before: sunset
|
||||
action:
|
||||
service: scene.turn_on
|
||||
entity_id: scene.OnDisarmedDaytime
|
||||
- alias: "Alarm: Armed Away"
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: alarm_control_panel.total_connect
|
||||
to: 'armed_away'
|
||||
action:
|
||||
service: scene.turn_on
|
||||
entity_id: scene.OnArmedAway
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user