I did an OTA update with the latest esphome version to one of my nodemcu board which was working just fine before and now it fails to connect with these errors:
[10:23:22][W][wifi_esp8266:482]: Event: Disconnected ssid='NETGEAR' bssid=3C:7C:3F:xx:xx:xx reason='Auth Expired'
[10:23:22][W][wifi:536]: Error while connecting to network.
[10:23:22][W][wifi:571]: Restarting WiFi adapter...
[10:23:27][D][wifi:373]: Starting scan...
Code
esphome:
name: solar-monitor
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pw
output_power: 10
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Solar-Monitor Fallback Hotspot"
# password: "4MxW4Qbuzwxm"
captive_portal:
# Enable logging
logger:
ota:
# Enable Home Assistant API
api:
i2c:
sda: D1
scl: D2
scan: true
display:
- platform: ssd1306_i2c
model: "SH1106 128x64"
#reset_pin: D0
#address: 0x3C
lambda: |-
auto now = id(esptime).now(); // local time
if (now.hour < 8) {
it.fill(COLOR_OFF);
}
else {
if (id(solar_display).state) {
it.printf(0, 0, id(calibri), "Solar Generation: %s", id(current_solar_generation).state.c_str());
it.printf(0, 13, id(calibri), "Battery SOC: %s", id(solar_battery_soc).state.c_str());
it.printf(0, 26, id(calibri), "Battery Power: %s", id(solar_battery_power).state.c_str());
it.printf(0, 39, id(calibri), "House Load: %s", id(current_house_consumption).state.c_str());
if (id(grid_status).state == "Exporting") {
it.printf(0, 52, id(calibri), id(light_green), "Exporting: %s", id(current_grid_power).state.c_str());
}
else {
it.printf(0, 52, id(calibri), id(light_red), "Importing: %s", id(current_grid_power).state.c_str());
}
}
else {
it.fill(COLOR_OFF);
}
}
font:
- file: 'calibri.ttf'
id: calibri
size: 12
color:
- id: light_red
red: 100%
green: 20%
blue: 25%
white: 0%
- id: light_green
red: 0%
green: 100%
blue: 25%
white: 0%
time:
- platform: homeassistant
id: esptime
# sensor:
# - platform: homeassistant
# id: solar
# entity_id: sensor.current_solar_generation
# internal: true
text_sensor:
- platform: homeassistant
entity_id: sensor.current_solar_generation
id: current_solar_generation
internal: true
- platform: homeassistant
entity_id: sensor.solar_battery_soc
id: solar_battery_soc
internal: true
- platform: homeassistant
entity_id: sensor.current_house_consumption
id: current_house_consumption
internal: true
- platform: homeassistant
entity_id: sensor.current_grid_power
id: current_grid_power
internal: true
- platform: homeassistant
entity_id: sensor.grid_status
id: grid_status
internal: true
- platform: homeassistant
entity_id: sensor.solar_battery_power
id: solar_battery_power
internal: true
binary_sensor:
- platform: homeassistant
entity_id: input_boolean.solar_display
id: solar_display
internal: true
Not sure how to fix it and bring the device online.
I had already updated 3 other devices without issues.
Any suggestions? I have already recompiled and uploaded FW via USB but no difference.