I keep getting the noted error.
- I can ping the device
- Using Device Builder, I can visit the device and turn it on/off (switch)
- yaml file has an api line with encryption
- I can type the ip address in a browser and I get the device website
- I am on the latest version of HA and ESPHome
I’m not sure what else to do to get Homeassistant to see the device.
yaml:
esphome:
name: gatecontrol
friendly_name: GateControl
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
ota:
- platform: esphome
password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
use_address: 10.0.0.11
manual_ip:
static_ip: 10.0.0.11
gateway: 10.0.0.1
subnet: 255.255.255.0
dns1: 10.0.0.1
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Gatecontrol Fallback Hotspot"
password: "xxxxxxxxxxx"
captive_portal:
switch:
- platform: gpio
pin: GPIO0
id: relay
name: "Gate Cycle"
icon: "mdi:gate"
on_turn_on:
- switch.turn_on: relay
on_turn_off:
- switch.turn_off: relay
web_server:
port: 80