TSL2561 Ambient Light Sensor¶
tsl2561 sensor platform allows you to use your TSL2561
ambient light sensor with ESPHome. The I²C is required to be set up in
your configuration for this sensor to work.
# Example configuration entry sensor: - platform: tsl2561 name: "TSL2561 Ambient Light" address: 0x39 update_interval: 60s
name (Required, string): The name for the sensor.
address (Optional, int): Manually specify the I²C address of the sensor. Defaults to
integration_time (Optional, Time): The time the sensor will take for each measurement. Longer means more accurate values. One of
402ms. Defaults to
gain (Optional, string): The gain of the sensor. Higher values are better in low-light conditions. One of
16x. Defaults to
is_cs_package (Optional, boolean): The “CS” package of this sensor has a slightly different formula for calculating the illuminance in lx. Set this to
trueif you’re working with a CS package. Defaults to
update_interval (Optional, Time): The interval to check the sensor. Defaults to
id (Optional, ID): Manually specify the ID used for code generation.
All other options from Sensor.