mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Add initial_value to template number (#1314)
This commit is contained in:
parent
9887bc52ec
commit
195cb77e83
@ -34,7 +34,9 @@ Configuration variables:
|
|||||||
number. Defaults to ``60s``.
|
number. 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 number will immediately update the reported state.
|
any command sent to the template number will immediately update the reported state.
|
||||||
Defaults to ``false``.
|
Defaults to ``false``. Cannot be used with ``lambda``.
|
||||||
|
- **initial_value** (*Optional*, float): The value to use if no ``lambda`` is used or no value
|
||||||
|
stored in RTC/flash at setup time.
|
||||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||||
- All other options from :ref:`Sensor <config-number>`.
|
- All other options from :ref:`Sensor <config-number>`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user