This section describes the configuration method and practical steps for integrating the Unit DLight digital ambient light sensor into Home Assistant.
# Example configuration entry for ESP32
i2c:
sda: GPIOXX
scl: GPIOXX
scan: true The GPIO pins will vary depending on the controller device used. For example, using Atom Lite as the controller:
# I2C Bus on Grove Port (HY2.0-4P)
i2c:
sda: GPIO26
scl: GPIO32 Below is an example of the sensor configuration:
sensor:
- platform: bh1750
name: "Unit DLight Illuminance"
address: 0x23
update_interval: 60sOnce successfully added to Home Assistant: