This is a custom ESPHome component to read light intensity from a WIT BH1750 sensor connected via UART.
Add the following to your ESPHome YAML:
external_components:
- source: github://djylb/esphome-wit-bh1750-uart
#refresh: 0s
uart:
id: uart_bus
rx_pin: GPIO13
baud_rate: 9600
sensor:
- platform: wit_bh1750_uart
name: "Light Intensity"