ESPHOME ESP-01 Relay board

esphome:
  name: esp-01-relay-3

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: “97e03zzzzzzzzzzzzzzzzzzzz”

wifi:
  ssid: Your SSID
  password: Your PAssword

  manual_ip:
    static_ip: 192.168.1.100
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1
    dns2: 8.8.8.8
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: “Esp-01-Relay-3 Fallback Hotspot”
    password: “0fjsyyyyyy”

captive_portal:
switch:
  – platform: gpio
    pin: GPIO0
    name: “Relay Switch 10A”