mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-11-16 10:55:21 +01:00
Merge pull request #2158 from LukasK13/current
fix naming of configuration variable
This commit is contained in:
commit
0de2a8c3e0
@ -40,6 +40,7 @@ If you want just the scaled value you can use the read_data function
|
||||
# Example configuration entry
|
||||
mcp3008:
|
||||
cs_pin: D8
|
||||
id: my_mcp
|
||||
|
||||
# Example config of sensors.
|
||||
# This is a NTCB3950 10K thermocoupler attached to pin 0
|
||||
@ -49,6 +50,7 @@ If you want just the scaled value you can use the read_data function
|
||||
- platform: mcp3008 # Attached to pin 0 of the MCP3008.
|
||||
reference_voltage: 3.19
|
||||
update_interval: 1s
|
||||
mcp3008_id: my_mcp
|
||||
id: freezer_temp_source
|
||||
number: 0 # MCP3008 pin number
|
||||
- platform: resistance
|
||||
@ -79,7 +81,7 @@ sensor platform to create individual sensors that will report the voltage to Hom
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **id** (**Required**, :ref:`config-id`): The id of the parent MCP3008 component.
|
||||
- **mcp3008_id** (**Required**, :ref:`config-id`): The id of the parent MCP3008 component.
|
||||
- **number** (**Required**, int): The pin number of the MCP3008
|
||||
- **reference_voltage** (*Optional*, float): The reference voltage. Defaults to ``3.3V``.
|
||||
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``1s``.
|
||||
|
Loading…
Reference in New Issue
Block a user