mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
[number] Tidy up name/id (#4148)
This commit is contained in:
parent
7d4690f362
commit
2d2971af57
@ -30,7 +30,8 @@ All numbers in ESPHome have a name and an optional icon.
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **name** (**Required**, string): The name for the number.
|
||||
- **id** (*Optional*, string): Manually specify the ID for code generation. At least one of **id** and **name** must be specified.
|
||||
- **name** (*Optional*, string): The name for the number. At least one of **id** and **name** must be specified.
|
||||
|
||||
.. note::
|
||||
|
||||
|
@ -10,8 +10,6 @@ When the Number is updated a modbus write command is created sent to the device.
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- **name** (**Required**, string): The name of the sensor.
|
||||
- **address** (**Required**, int): start address of the first register in a range (can be decimal or hexadecimal).
|
||||
- **value_type** (**Required**): datatype of the modbus register data. The default data type for modbus is a 16 bit integer in big endian format (MSB first):
|
||||
|
||||
|
@ -22,7 +22,6 @@ using :ref:`lambdas <config-lambda>`.
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **name** (**Required**, string): The name of the number.
|
||||
- **min_value** (**Required**, float): The minimum value this number can be.
|
||||
- **max_value** (**Required**, float): The maximum value this number can be.
|
||||
- **step** (**Required**, float): The granularity with which the number can be set.
|
||||
@ -41,7 +40,6 @@ Configuration variables:
|
||||
- **initial_value** (*Optional*, float): The value to set the state to on setup if not
|
||||
restored with ``restore_value``.
|
||||
Cannot be used with ``lambda``. Defaults to ``min_value``.
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- All other options from :ref:`Number <config-number>`.
|
||||
|
||||
``number.set`` Action
|
||||
|
@ -64,8 +64,6 @@ For instance, assume we have a pH sensor that reads from 0.00 to 15.00 with a sc
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- **name** (**Required**, string): The name of the switch.
|
||||
- **number_datapoint** (**Required**, int): The datapoint id number of the number.
|
||||
- **min_value** (**Required**, float): The minimum value this number can be.
|
||||
- **max_value** (**Required**, float): The maximum value this number can be.
|
||||
|
Loading…
Reference in New Issue
Block a user