pdf-icon

Unit DLight Home Assistant Integration

Unit DLight is a digital ambient light (illuminance) sensor module based on the BH1750FVI illuminance sensor IC (I2C interface). It features a built-in 16-bit ADC supporting illuminance measurements in the range of 1 ~ 65535 lx. The module is compact and energy-efficient, suitable for a variety of light-sensing and light-control scenarios.

Note
Because Unit DLight is a standalone sensor module, an external host device (such as Atom Lite, Core2, CoreS3, etc.) is required to integrate it into Home Assistant.

Configure the sensor

You need to enable the I²C component in your ESPHome configuration:

yaml
1 2 3 4 5
# Example configuration entry for ESP32
i2c:
  sda: GPIOXX
  scl: GPIOXX
  scan: true

The GPIO pins used depend on your host device. For example, if you use Atom Lite as the host:

yaml
1 2 3 4
# I2C Bus on Grove Port (HY2.0-4P)
i2c:
  sda: GPIO26
  scl: GPIO32

Below is an example sensor configuration:

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

Dashboard example

After the device is added to Home Assistant, you can view the sensor on the dashboard:

On This Page