
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.
You need to enable the I²C component in your ESPHome configuration:
# Example configuration entry for ESP32
i2c:
sda: GPIOXX
scl: GPIOXX
scan: trueThe GPIO pins used depend on your host device. For example, if you use Atom Lite as the host:
# I2C Bus on Grove Port (HY2.0-4P)
i2c:
sda: GPIO26
scl: GPIO32Below is an example sensor configuration:
sensor:
- platform: bh1750
name: "Unit DLight Illuminance"
address: 0x23
update_interval: 60sAfter the device is added to Home Assistant, you can view the sensor on the dashboard:
