edited formatting
This commit is contained in:
parent
f479d73b7d
commit
cf76c5e1d5
|
@ -15,6 +15,7 @@ The ``apds9306`` sensor component allows you to use APDS9306 ambiant light senso
|
|||
The :ref:`I²C <i2c>` is required to be set up in your configuration for this sensor to work.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
apds9306:
|
||||
address: 0x52
|
||||
|
@ -25,11 +26,11 @@ The :ref:`I²C <i2c>` is required to be set up in your configuration for this se
|
|||
type: light_level
|
||||
name: "APDS9306 Light Level"
|
||||
|
||||
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
Base configuration:
|
||||
|
||||
- **address** (*Optional*, int): The I²C address of the sensor. Defaults to ``0x52``.
|
||||
- **update_interval** (*Optional*, :ref:`config-time`): The interval at which the sensor reading will be updated. Defaults to ``60s``.
|
||||
- **gain** (*Optional*, int): The gain of the ambiant light sensor. One of 1, 3, 6, 9, 18. Defaults to ``1``.
|
||||
|
@ -54,6 +55,7 @@ Sensor
|
|||
The ``apds9306`` sensor allows you to use your :doc:`apds9306` to perform ambiant light measurements.
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **name** (**Required**, string): The name for the sensor.
|
||||
- **type** (**Required**, string): The type of sensor measurement, must be ``light_level``
|
||||
- **id** (**Optional**, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
|
||||
|
|
Loading…
Reference in New Issue