mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +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
|
# Example configuration.yaml entry
|
||||||
alarm_control_panel:
|
alarm_control_panel:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Safe Alarm Panel
|
panels:
|
||||||
|
safe_alarm_panel:
|
||||||
value_template: "{{ states('alarm_control_panel.real_alarm') }}"
|
value_template: "{{ states('alarm_control_panel.real_alarm') }}"
|
||||||
arm_away:
|
arm_away:
|
||||||
service: alarm_control_panel.alarm_arm_away
|
service: alarm_control_panel.alarm_arm_away
|
||||||
@ -56,6 +57,16 @@ alarm_control_panel:
|
|||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
{% configuration %}
|
{% 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:
|
name:
|
||||||
description: Name to use in the frontend.
|
description: Name to use in the frontend.
|
||||||
required: false
|
required: false
|
||||||
@ -83,6 +94,9 @@ alarm_control_panel:
|
|||||||
type: action
|
type: action
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Considerations
|
## 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.
|
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