I have an ESP8266 which has been integrated with my ESPhome instance but then, for an unknown reason, dropped off and will not reintegrate. ESPhome connects to it fine and the code and ESPhome firmware update OK, it just will not integrate into the HA ESPhome integration.
I noticed that the logs show as:
[10:00:12][C][ota:093]: Over-The-Air Updates:
[10:00:12][C][ota:094]: Address: 192.168.18.23:8266
[10:00:12][C][ota:097]: Using Password.
yet the code in the YAML is:
api:
encryption:
key: !secret apikey
port: 6053
reboot_timeout: 15min
All the other devices use the apikey flawlessly. What could be causing the device to try to use an API password when the apikey is present and specified and, more importantly, how can I solve this? I tried deleting all the yaml files under /config/esphome for this device but no progress.
Here is the full yaml:
esphome:
name: esp8266-freezer-os1
comment: PVIoT | 18.23
esp8266:
board: d1_mini
framework:
version: recommended
logger:
level: DEBUG
wifi:
manual_ip:
static_ip: 192.168.18.23
gateway: 192.168.15.1
subnet: 255.255.0.0
dns1: 192.168.15.1
dns2: 0.0.0.0
ap:
ssid: "Fallback-OutsideFreezer"
password: ""
ap_timeout: 1min
domain: local
reboot_timeout: 15min
power_save_mode: NONE
fast_connect: false
output_power: 20.0
networks:
- ssid: !secret wifi_iot_ssid
password: !secret wifi_iot_password
priority: 0.0
api:
encryption:
key: !secret apikey
port: 6053
reboot_timeout: 15min
ota:
password: !secret ota_password
safe_mode: true
port: 8266
switch:
- platform: restart
name: Freezer Outside1 Restart
dallas:
- pin: D2 #GPIO4
sensor:
- platform: dallas
address: 0xAF3C01B556D00228
name: Freezer Outside1 Temperature
filters:
- filter_out: nan
- heartbeat: 15s
- sliding_window_moving_average:
window_size: 5
send_every: 5
send_first_at: 1
unit_of_measurement: "°C"