Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.62 KB

BH1750.md

File metadata and controls

43 lines (29 loc) · 1.62 KB

BH1750 ambient light sensor

!!! info "This feature is included only in tasmota-sensors.bin"

The BH1750 is a digital ambient light sensor module which uses I2C to communicate. The BH1750 provides you with a digital value in lux (Lx) over a range of 1 - 65535 lx. See datasheet for more information.

Configuration

Wiring

BH1750 ESP8266
GND GND
VCC 3.3V
SDA GPIOx
SCL GPIOy

Tasmota Settings

In the Configuration -> Configure Module page assign:

  1. GPIOx to I2C SDA (6)
  2. GPIOy to I2C SCL (5)

After a reboot the driver will detect BH1750 automatically and display Illuminance.

image

Sensor sends a tele/%topic%/SENSOR JSON reponse:

{"Time":"2019-11-03T20:45:37","BH1750":{"Illuminance":79}}

Commands

Command Parameters
Bh1750Resolution resolution mode. x = sensor number (1..2)
0..2 = choose sensor resolution (0 = high (default), 1 = high2, 2 = low)
Bh1750MTime Measurement Time value. x = sensor number (1..2)
31..254 = set measurement time (default = 69)

Breakout Boards