mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Fix configuration and example in template alarm_control_panel (#11931)
The configuration for template_alarm_control_panel currently doesn't work. It is similar to the template sensor, and the proposed configuration works.
This commit is contained in:
parent
9354932db2
commit
38176aef92
@ -31,7 +31,8 @@ To enable a Template Alarm Control Panel in your installation, add the following
|
||||
# Example configuration.yaml entry
|
||||
alarm_control_panel:
|
||||
- platform: template
|
||||
name: Safe Alarm Panel
|
||||
panels:
|
||||
safe_alarm_panel:
|
||||
value_template: "{{ states('alarm_control_panel.real_alarm') }}"
|
||||
arm_away:
|
||||
service: alarm_control_panel.alarm_arm_away
|
||||
@ -56,6 +57,16 @@ alarm_control_panel:
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
panels:
|
||||
description: List of your panels.
|
||||
required: true
|
||||
type: map
|
||||
keys:
|
||||
alarm_control_panel_name:
|
||||
description: The slug of the panel.
|
||||
required: true
|
||||
type: map
|
||||
keys:
|
||||
name:
|
||||
description: Name to use in the frontend.
|
||||
required: false
|
||||
@ -83,6 +94,9 @@ alarm_control_panel:
|
||||
type: action
|
||||
{% endconfiguration %}
|
||||
|
||||
|
||||
|
||||
|
||||
## Considerations
|
||||
|
||||
If you are using the state of a integration that takes extra time to load, the Template Alarm Control Panel may get an `unknown` state during startup. This results in error messages in your log file until that integration has completed loading. If you use `is_state()` function in your template, you can avoid this situation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user