diff --git a/components/sensor/mcp3008.rst b/components/sensor/mcp3008.rst index fc2ba6897..76de1e4f7 100644 --- a/components/sensor/mcp3008.rst +++ b/components/sensor/mcp3008.rst @@ -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``.