pdf-icon

Unit DLight Sensor Home Assistant Integration

This section describes the configuration method and practical steps for integrating the Unit DLight digital ambient light sensor into Home Assistant.

Note

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.

Preparation

  1. Refer to the BH1750FVI sensor datasheet: BH1750FVI Datasheet
  2. Refer to the latest official ESPHome configuration instructions:

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).

Configure Sensor

  1. Enable the I²C component in the ESPHome configuration:
# 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:

yaml
1 2 3 4 5
sensor:
  - platform: bh1750
    name: "Unit DLight Illuminance"
    address: 0x23
    update_interval: 60s

Dashboard Example

Once successfully added to Home Assistant:

Video

On This Page