Capitalised name(s) (#1421)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
David Martin 2021-08-25 16:21:15 +01:00 committed by GitHub
parent 1fd0f6bc48
commit f4ca78519c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,10 @@ Template Select
=============== ===============
.. seo:: .. seo::
:description: Instructions for setting up template selects with ESPHome. :description: Instructions for setting up Template Select(s) with ESPHome.
:image: description.png :image: description.png
The ``template`` select platform allows you to create a select with templated values The ``template`` Select platform allows you to create a Select with templated values
using :ref:`lambdas <config-lambda>`. using :ref:`lambdas <config-lambda>`.
.. code-block:: yaml .. code-block:: yaml
@ -25,16 +25,16 @@ using :ref:`lambdas <config-lambda>`.
Configuration variables: Configuration variables:
------------------------ ------------------------
- **name** (**Required**, string): The name of the select. - **name** (**Required**, string): The name of the Select.
- **options** (**Required**, list): The list of options this select has. - **options** (**Required**, list): The list of options this Select has.
- **lambda** (*Optional*, :ref:`lambda <config-lambda>`): - **lambda** (*Optional*, :ref:`lambda <config-lambda>`):
Lambda to be evaluated every update interval to get the new option of the select. Lambda to be evaluated every update interval to get the new option of the Select.
- **set_action** (*Optional*, :ref:`Action <config-action>`): The action that should - **set_action** (*Optional*, :ref:`Action <config-action>`): The action that should
be performed when the remote (like Home Assistant's frontend) requests to set the select option. be performed when the remote (like Home Assistant's frontend) requests to set the Select option.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
select ``lambda``. Defaults to ``60s``. Select ``lambda``. Defaults to ``60s``.
- **optimistic** (*Optional*, boolean): Whether to operate in optimistic mode - when in this mode, - **optimistic** (*Optional*, boolean): Whether to operate in optimistic mode - when in this mode,
any command sent to the template select will immediately update the reported state. any command sent to the Template Select will immediately update the reported state.
Cannot be used with ``lambda``. Defaults to ``false``. Cannot be used with ``lambda``. Defaults to ``false``.
- **restore_value** (*Optional*, boolean): Saves and loads the state to RTC/Flash. - **restore_value** (*Optional*, boolean): Saves and loads the state to RTC/Flash.
Cannot be used with ``lambda``. Defaults to ``false``. Cannot be used with ``lambda``. Defaults to ``false``.
@ -47,7 +47,7 @@ Configuration variables:
``select.set`` Action ``select.set`` Action
---------------------------------- ----------------------------------
You can also set an option to a template select from elsewhere in your YAML file You can also set an option to a Template Select from elsewhere in your YAML file
with the :ref:`select-set_action`. with the :ref:`select-set_action`.
See Also See Also