Dear Cognoscenti,
I set up ESPHome and an ESP32 processor measuring air quality successfully a month ago. The version of ESPHome was 2023.2.4. Everything was working fine until I upgraded to 2023.3.0. Since then my ESP32 processors have not been connecting to the wifi.
I have tried upgrading to 2023.3.2, reverting back to 2023.2.4, removing the ESP32 processors and reinstalling them, and removing ESPHome and reinstalling it. I have tried the ESP32 processor with the default wifi setting, my customised wifi settings, with the network names and passwords in plain text and using !SECRET. I bought a brand new ESP32 processor and installed it, and it is showing the same error.
All to no effect.
Here is the configuration:
esphome:
name: esp32-2
friendly_name: ESP32-2
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: verbose
# Enable Home Assistant API
api:
encryption:
key: "enMw+Gl60Zr0aPPZJdyawDTrt9dF62h62Z/fZ56cMMk="
ota:
password: "eb94e6a7137c8ed5177873e638ac304f"
wifi:
networks:
- ssid: bwifi
password: *******
bssid: 20:B0:01:C0:70:8F
priority: 1
- ssid: bhwifi_EXT
bssid: 20:E5:2A:1A:22:A0
password: *******
priority: 0
# Define local domain name
domain: .bh.local
# Add static ip address
manual_ip:
static_ip: 192.168.1.51
gateway: 192.168.1.254
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-2 Fallback Hotspot"
password: "cuSS5KnJDOW4"
captive_portal:
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
sensor:
- platform: pmsx003
type: PMSX003
pm_1_0:
name: "PM1.0"
pm_2_5:
name: "PM2.5"
pm_10_0:
name: "PM10"
update_interval: 30s
And here is the log - is the relevant error the following?
“[V][esp32.preferences:058]: nvs_get_blob(‘3785824164’): ESP_ERR_NVS_NOT_FOUND - the key might not be set yet”
Thank you very much for your advice.
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
[ 6][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[I][logger:258]: Log initialized
[C][ota:469]: There have been 5 suspected unsuccessful boot attempts.
[D][esp32.preferences:113]: Saving 1 preferences to flash...
[V][esp32.preferences:125]: sync: key: 233825507, len: 4
[D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[V][app:030]: Sorting components by setup priority...
[C][uart.arduino_esp32:077]: Setting up UART...
[ 67][E][HardwareSerial.cpp:525] setRxBufferSize(): RX Buffer can't be resized when Serial is already running.
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]: Local MAC: 70:B8:F6:5B:3F:48
[V][esp32.preferences:058]: nvs_get_blob('3785824164'): ESP_ERR_NVS_NOT_FOUND - the key might not be set yet
[V][wifi_esp32:039]: Enabling STA.
[ 113][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
[V][wifi_esp32:444]: Event: WiFi ready
[ 209][V][WiFiGeneric.cpp:338] _arduino_event_cb(): STA Started
[ 210][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
[V][wifi_esp32:459]: Event: WiFi STA start
[ 6031][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 128, Status: 0, Results: 4
[ 6031][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=128
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][wifi:386]: Starting scan...
[ 13193][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 129, Status: 0, Results: 4
[ 13194][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=129
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][wifi:386]: Starting scan...
[ 20354][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 130, Status: 0, Results: 4
[ 20355][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=130
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][wifi:386]: Starting scan...
[ 27516][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 131, Status: 0, Results: 4
[ 27516][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=131
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 1 µg/m^3, PM10.0 Concentration: 1 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 1.000000
[D][sensor:127]: 'PM2.5': Sending state 1.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 1.000000
[D][sensor:127]: 'PM10': Sending state 1.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 1 µg/m^3, PM10.0 Concentration: 1 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 1.000000
[D][sensor:127]: 'PM2.5': Sending state 1.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 1.000000
[D][sensor:127]: 'PM10': Sending state 1.00000 µg/m³ with 0 decimals of accuracy
[D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[V][sensor:076]: 'PM1.0': Received new state 0.000000
[D][sensor:127]: 'PM1.0': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM2.5': Received new state 0.000000
[D][sensor:127]: 'PM2.5': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[V][sensor:076]: 'PM10': Received new state 0.000000
[D][sensor:127]: 'PM10': Sending state 0.00000 µg/m³ with 0 decimals of accuracy
[D][wifi:386]: Starting scan...
[ 34677][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 132, Status: 0, Results: 4
[ 34677][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=132
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][wifi:386]: Starting scan...
[ 41838][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 133, Status: 0, Results: 4
[ 41838][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=133
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[D][wifi:386]: Starting scan...
[ 48998][V][WiFiGeneric.cpp:381] _arduino_event_cb(): SCAN Done: ID: 134, Status: 0, Results: 4
[ 48999][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
[V][wifi_esp32:453]: Event: WiFi Scan Done status=0 number=4 scan_id=134
[D][wifi:401]: Found networks:
[D][wifi:450]: - 'bhwifi_EXT'[redacted] (20:E5:2A:1A:22:A0) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (20:B0:01:C0:70:8F) [redacted]▂▄▆█
[D][wifi:450]: - 'bhwifi'[redacted] (0C:80:63:74:32:8E) [redacted]▂▄▆█
[D][wifi:450]: - 'DIRECT-4L17-TR7500series'[redacted] (02:BB:C1:C2:47:17) [redacted]▂▄▆█
[W][wifi:455]: No matching network found!
[W][wifi:585]: Restarting WiFi adapter...
[V][wifi_esp32:041]: Disabling STA.
[ 49078][V][WiFiGeneric.cpp:341] _arduino_event_cb(): STA Stopped
[ 49080][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 3 - STA_STOP
[V][wifi_esp32:464]: Event: WiFi STA stop