mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-29 12:17:01 +00:00
Use component and platform for link id in configuration blocks (#40123)
This commit is contained in:
parent
ce321411ee
commit
63597f5dd7
@ -166,10 +166,16 @@ module Jekyll
|
||||
|
||||
vars = SafeYAML.load(contents)
|
||||
|
||||
linkId = [component, platform, 'configuration-variables']
|
||||
.compact
|
||||
.reject(&:empty?)
|
||||
.join('-')
|
||||
|
||||
|
||||
<<~MARKUP
|
||||
<div class="config-vars">
|
||||
<h4>
|
||||
Configuration Variables <a class="title-link" name="configuration-variables" href="#configuration-variables"></a>
|
||||
Configuration Variables <a class="title-link" name="#{linkId}" href="##{linkId}"></a>
|
||||
</h4>
|
||||
<div class="configuration-link">
|
||||
<a href="/docs/configuration/" target="_blank">Looking for your configuration file?</a>
|
||||
|
@ -140,7 +140,7 @@ template:
|
||||
|
||||
### Configuration reference
|
||||
|
||||
{% configuration %}
|
||||
{% configuration trigger-based %}
|
||||
actions:
|
||||
description: Define actions to be executed when the trigger fires (for trigger-based entities only). Optional. Variables set by the action script are available when evaluating entity templates. This can be used to interact with anything using actions, in particular actions with [response data](/docs/scripts/perform-actions#use-templates-to-handle-response-data). [See action documentation](/docs/automation/action).
|
||||
required: false
|
||||
@ -193,7 +193,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration device %}
|
||||
availability:
|
||||
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"`, or a non-zero number, the entity will be `available`. If the template returns any other value, the entity will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison is not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||
required: false
|
||||
@ -268,7 +268,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration alarm_control_panel %}
|
||||
alarm_control_panel:
|
||||
description: List of alarm control panels
|
||||
required: true
|
||||
@ -349,7 +349,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration binary-sensor %}
|
||||
binary_sensor:
|
||||
description: List of binary sensors
|
||||
required: true
|
||||
@ -536,7 +536,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration button %}
|
||||
button:
|
||||
description: List of buttons
|
||||
required: true
|
||||
@ -591,7 +591,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration cover %}
|
||||
cover:
|
||||
description: Characteristics of a cover
|
||||
type: map
|
||||
@ -822,7 +822,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration fan %}
|
||||
fan:
|
||||
description: List of fans
|
||||
required: true
|
||||
@ -1028,7 +1028,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration image %}
|
||||
image:
|
||||
description: List of images
|
||||
required: true
|
||||
@ -1161,7 +1161,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration light %}
|
||||
light:
|
||||
description: List of your lights.
|
||||
required: true
|
||||
@ -1421,7 +1421,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration lock %}
|
||||
lock:
|
||||
description: List of locks
|
||||
required: true
|
||||
@ -1609,7 +1609,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration number %}
|
||||
number:
|
||||
description: List of numbers
|
||||
required: true
|
||||
@ -1717,7 +1717,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration select %}
|
||||
select:
|
||||
description: List of selects
|
||||
required: true
|
||||
@ -1808,7 +1808,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration sensor %}
|
||||
sensor:
|
||||
description: List of sensors
|
||||
required: true
|
||||
@ -1971,7 +1971,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration switch %}
|
||||
switch:
|
||||
description: List of switches
|
||||
required: true
|
||||
@ -2117,7 +2117,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration vacuum %}
|
||||
vacuum:
|
||||
description: List of vacuum entities
|
||||
required: true
|
||||
@ -2277,7 +2277,7 @@ template:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration weather %}
|
||||
weather:
|
||||
description: List of weather entities
|
||||
required: true
|
||||
@ -2647,7 +2647,7 @@ alarm_control_panel:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_alarm_control_panel %}
|
||||
panels:
|
||||
description: List of your panels.
|
||||
required: true
|
||||
@ -2731,7 +2731,7 @@ binary_sensor:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_binary_sensor %}
|
||||
sensors:
|
||||
description: List of your sensors.
|
||||
required: true
|
||||
@ -2818,7 +2818,7 @@ cover:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_cover %}
|
||||
covers:
|
||||
description: List of your covers.
|
||||
required: true
|
||||
@ -2942,7 +2942,7 @@ fan:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_fan %}
|
||||
fans:
|
||||
description: List of your fans.
|
||||
required: true
|
||||
@ -3078,7 +3078,7 @@ light:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_light %}
|
||||
lights:
|
||||
description: List of your lights.
|
||||
required: true
|
||||
@ -3225,7 +3225,7 @@ lock:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_lock %}
|
||||
name:
|
||||
description: Name to use in the frontend.
|
||||
required: false
|
||||
@ -3292,7 +3292,7 @@ sensor:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_sensor %}
|
||||
sensors:
|
||||
description: Map of your sensors.
|
||||
required: true
|
||||
@ -3375,7 +3375,7 @@ switch:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_switch %}
|
||||
switches:
|
||||
description: List of your switches.
|
||||
required: true
|
||||
@ -3437,7 +3437,7 @@ vacuum:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_vacuum %}
|
||||
vacuums:
|
||||
description: List of your vacuums.
|
||||
required: true
|
||||
@ -3533,7 +3533,7 @@ weather:
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{% configuration %}
|
||||
{% configuration legacy_weather %}
|
||||
name:
|
||||
description: Name to use in the frontend.
|
||||
required: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user