esphome: name: 8266-2relay friendly_name: 8266-2relay esp8266: board: esp12e status_led: pin: number: GPIO2 inverted: True # Enable logging logger: # Enable Home Assistant API api: encryption: key: "WHdmy8+3X0Xee3SjWEFDNvdC8I7qDDyv0DqVTPR24yk=" ota: - platform: esphome password: "4376c4cbc5e8e243d2caf4f0237a9639" wifi: id: wifi_component ssid: 'SmartHome' password: '' use_address: 192.168.88.40 manual_ip: static_ip: 192.168.88.40 gateway: 192.168.88.1 subnet: 255.255.255.0 power_save_mode: none # ap: # ssid: "Miroca" # password: "" # Можно оставить пустым для быстрого входа captive_portal: switch: - platform: gpio pin: GPIO5 name: Relay1 id: relay1 - platform: gpio pin: GPIO4 name: Relay2 id: relay2 # Blue LED on Board (not ESP board) as switch in Home Assistant - platform: gpio name: Led16 pin: GPIO16 inverted: true