APDS9306 Sensor
Component
Section titled “Component”The apds9306 sensor component allows you to use APDS9306 ambient light sensors (datasheet, Broadcom) with ESPHome.
The I²C is required to be set up in your configuration for this sensor to work.

# Example configuration entrysensor: - platform: apds9306 name: "APDS9306 Light Level" # below are optional gain: 1 bit_width: 18 measurement_rate: 100ms update_interval: 60sConfiguration variables
Section titled “Configuration variables”The apds9306 sensor allows you to use your Apds9306 to perform ambient light measurements.
-
address (Optional, int): The I²C address of the sensor. Should be
0x52according to datasheet (“Contact factory for other addressing options”). -
gain (Optional, int): The gain of the ambient light sensor. One of 1, 3, 6, 9, 18. Defaults to
1. -
bit_width (Optional, int): The bit width/resolution of the ambient light sensor. One of:
20: Takes 400 ms19: Takes 200 ms18(default): Takes 100 ms17: Takes 50 ms16: Takes 25 ms13: Takes 3.125 ms
-
measurement_rate (Optional, int): The measurement rate of the ambient light sensor in milliseconds. One of:
2550100(default);2005001000
-
update_interval (Optional, Time): The interval at which the sensor reading will be updated. Defaults to
60s. -
All opther options from Sensor.