ESP8266 ESP-12E and LDR Light Sensor with Home Assistant (ESPHome)

ESP8266 ESP-12E Connect to LDR Light Sensor

ESP8266 ESP-12E LDR Light Sensor

Configure Home Assistant with ESPHome Add-on

esphome:
  name: esp8266_esp-12e
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "your_ssid"
  password: "your_password"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.31
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

# LDR Light Sensor
sensor:
  - platform: adc
    pin: A0
    name: "ESP8266 ESP-12E Brightness"
    update_interval: 10s
    filters:
      - multiply: 3.3
Tags: