This section describes the configuration method and practical steps for integrating the Unit DLight digital ambient light sensor into Home Assistant.
Since Unit DLight is an independent sensor platform, it requires an additional controller device (such as the Atom series, Stamp series, Stick series, Core/Basic series, etc.) to integrate into Home Assistant.
ESPHome BH1750 Configuration 3. Prepare a compatible controller device (such as the Atom series, Stamp series, Stick series, Core/Basic series, etc.) 4. Confirm the I2C pin definitions of the controller device (pins vary by controller).
# 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:
