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:
20takes 400ms19takes 200ms18takes 100ms (default)17takes 50ms16takes 25ms13takes 3.125ms
-
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.