mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-10-31 08:31:29 +01:00
Document sensor id and how it relates to the name (#1769)
This commit is contained in:
parent
dd630b3cfb
commit
c0c3a4c6c9
@ -38,7 +38,8 @@ override them if you want to.
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **name** (**Required**, string): The name for the sensor.
|
||||
- **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 sensor. At least one of **id** and **name** must be specified.
|
||||
- **unit_of_measurement** (*Optional*, string): Manually set the unit
|
||||
of measurement the sensor should advertise its values with. This does
|
||||
not actually do any maths (conversion between units).
|
||||
|
Loading…
Reference in New Issue
Block a user