|
esphome版本为2024.12.2
电脑系统为统信UOS
ESP芯片为WROOM-32
一直提示OFFLINE,请大神指导一下。
INFO ESPHome 2024.12.2INFO Reading configuration /config/esphome/x1.yaml...INFO Generating C++ source...INFO Compiling app...Processing x1 (board: esp-wrover-kit; framework: arduino; platform: platformio/[email protected])--------------------------------------------------------------------------------HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5Dependency Graph|-- AsyncTCP-esphome @ 2.1.4|-- WiFi @ 2.0.0|-- FS @ 2.0.0|-- Update @ 2.0.0|-- ESPAsyncWebServer-esphome @ 3.2.2|-- DNSServer @ 2.0.0|-- ESPmDNS @ 2.0.0|-- noise-c @ 0.1.6RAM: [= ] 12.4% (used 40664 bytes from 327680 bytes)Flash: [===== ] 49.3% (used 904881 bytes from 1835008 bytes)========================= [SUCCESS] Took 4.31 seconds =========================INFO Successfully compiled program.esptool.py v4.7.0Serial port /dev/ttyUSB0Connecting....Chip is ESP32-D0WDQ6 (revision v1.0)Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme NoneCrystal is 40MHzMAC: 80:7d:3a:df:36:30Uploading stub...Running stub...Stub running...Changing baud rate to 460800Changed.Configuring flash size...Auto-detected Flash size: 4MBFlash will be erased from 0x00010000 to 0x000eefff...Flash will be erased from 0x00001000 to 0x00005fff...Flash will be erased from 0x00008000 to 0x00008fff...Flash will be erased from 0x0000e000 to 0x0000ffff...Compressed 910656 bytes to 604618...Wrote 910656 bytes (604618 compressed) at 0x00010000 in 14.4 seconds (effective 505.6 kbit/s)...Hash of data verified.Compressed 17440 bytes to 12128...Wrote 17440 bytes (12128 compressed) at 0x00001000 in 0.5 seconds (effective 266.1 kbit/s)...Hash of data verified.Compressed 3072 bytes to 144...Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 502.8 kbit/s)...Hash of data verified.Compressed 8192 bytes to 47...Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 700.5 kbit/s)...Hash of data verified.Leaving...Hard resetting via RTS pin...INFO Successfully uploaded program.INFO Starting log output from /dev/ttyUSB0 with baud rate 115200[08:45:15][I][logger:171]: Log initialized[08:45:15][C][safe_mode:079]: There have been 0 suspected unsuccessful boot attempts[08:45:15][D][esp32.preferences:114]: Saving 1 preferences to flash...[08:45:15][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed[08:45:16][I][app:029]: Running through setup()...[08:45:16][C][wifi:048]: Setting up WiFi...[08:45:16][C][wifi:061]: Starting WiFi...[08:45:16][C][wifi:062]: Local MAC: 80:7D:3AF:36:30[08:45:16][D][wifi:482]: Starting scan...[08:45:16][W][component:157]: Component wifi set Warning flag: scanning for networks[08:45:21][D][wifi:497]: Found networks:[08:45:21][I][wifi:541]: - 'ChinaNet-5Yag' (64:52:34:14:CA:50) [redacted]▂▄▆█[08:45:21][D][wifi:542]: Channel: 2[08:45:21][D][wifi:543]: RSSI: -68 dB[08:45:21][D][wifi:546]: - 'CMCC-PHQJ'[redacted] (A8:61F:AB:8B:11) [redacted]▂▄▆█[08:45:21][I][wifi:313]: WiFi Connecting to 'ChinaNet-5Yag'...[08:45:23][I][wifi:617]: WiFi Connected![08:45:23][C][wifi:428]: Local MAC: 80:7D:3AF:36:30[08:45:23][C][wifi:433]: SSID: 'ChinaNet-5Yag'[redacted][08:45:23][C][wifi:436]: IP Address: 192.168.1.4[08:45:23][C][wifi:440]: BSSID: 64:52:34:14:CA:50[redacted][08:45:23][C][wifi:441]: Hostname: 'x1'[08:45:23][C][wifi:443]: Signal strength: -70 dB ▂▄▆█[08:45:23][C][wifi:447]: Channel: 2[08:45:23][C][wifi:448]: Subnet: 255.255.255.0[08:45:23][C][wifi:449]: Gateway: 192.168.1.1[08:45:23][C][wifi:450]: DNS1: 192.168.1.1[08:45:23][C][wifi:451]: DNS2: 0.0.0.0[08:45:23][D][wifi:626]: Disabling AP...[08:45:23][C][api:026]: Setting up Home Assistant API server...[08:45:23][I][app:062]: setup() finished successfully![08:45:23][W][component:170]: Component wifi cleared Warning flag[08:45:23][W][component:157]: Component api set Warning flag: unspecified[08:45:23][I][app:100]: ESPHome version 2024.12.2 compiled on Dec 28 2024, 08:37:50[08:45:23][C][wifi:600]: WiFi:[08:45:23][C][wifi:428]: Local MAC: 80:7D:3AF:36:30[08:45:23][C][wifi:433]: SSID: 'ChinaNet-5Yag'[redacted][08:45:23][C][wifi:436]: IP Address: 192.168.1.4[08:45:23][C][wifi:440]: BSSID: 64:52:34:14:CA:50[redacted][08:45:23][C][wifi:441]: Hostname: 'x1'[08:45:23][C][wifi:443]: Signal strength: -67 dB ▂▄▆█[08:45:23][C][wifi:447]: Channel: 2[08:45:23][C][wifi:448]: Subnet: 255.255.255.0[08:45:23][C][wifi:449]: Gateway: 192.168.1.1[08:45:23][C][wifi:450]: DNS1: 192.168.1.1[08:45:23][C][wifi:451]: DNS2: 0.0.0.0[08:45:23][C][logger:185]: Logger:[08:45:23][C][logger:186]: Level: DEBUG[08:45:23][C][logger:188]: Log Baud Rate: 115200[08:45:23][C][logger:189]: Hardware UART: UART0[08:45:23][C][captive_portal:089]: Captive Portal:[08:45:23][C][mdns:116]: mDNS:[08:45:23][C][mdns:117]: Hostname: x1[08:45:23][C][esphome.ota:073]: Over-The-Air updates:[08:45:23][C][esphome.ota:074]: Address: x1.local:3232[08:45:23][C][esphome.ota:075]: Version: 2[08:45:23][C][esphome.ota:078]: Password configured[08:45:23][C][safe_mode:018]: Safe Mode:[08:45:23][C][safe_mode:020]: Boot considered successful after 60 seconds[08:45:23][C][safe_mode:021]: Invoke after 10 boot attempts[08:45:23][C][safe_mode:023]: Remain in safe mode for 300 seconds[08:45:23][C][api:140]: API Server:[08:45:23][C][api:141]: Address: x1.local:6053[08:45:23][C][api:143]: Using noise encryption: YES[08:46:15][I][safe_mode:041]: Boot seems successful; resetting boot loop counter[08:46:15][D][esp32.preferences:114]: Saving 1 preferences to flash...[08:46:16][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed[08:46:28][D][api:103]: Accepted 192.168.1.2[08:46:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:46:28][W][component:170]: Component api cleared Warning flag[08:46:28][W][component:157]: Component api set Warning flag: unspecified[08:47:28][D][api:103]: Accepted 192.168.1.2[08:47:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:47:28][W][component:170]: Component api cleared Warning flag[08:47:28][W][component:157]: Component api set Warning flag: unspecified[08:48:28][D][api:103]: Accepted 192.168.1.2[08:48:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:48:28][W][component:170]: Component api cleared Warning flag[08:48:28][W][component:157]: Component api set Warning flag: unspecified[08:49:28][D][api:103]: Accepted 192.168.1.2[08:49:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:49:28][W][component:170]: Component api cleared Warning flag[08:49:28][W][component:157]: Component api set Warning flag: unspecified[08:50:28][D][api:103]: Accepted 192.168.1.2[08:50:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:50:28][W][component:170]: Component api cleared Warning flag[08:50:28][W][component:157]: Component api set Warning flag: unspecified[08:51:28][D][api:103]: Accepted 192.168.1.2[08:51:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:51:28][W][component:170]: Component api cleared Warning flag[08:51:28][W][component:157]: Component api set Warning flag: unspecified[08:52:28][D][api:103]: Accepted 192.168.1.2[08:52:28][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:52:28][W][component:170]: Component api cleared Warning flag[08:52:28][W][component:157]: Component api set Warning flag: unspecified[08:53:29][D][api:103]: Accepted 192.168.1.2[08:53:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:53:29][W][component:170]: Component api cleared Warning flag[08:53:29][W][component:157]: Component api set Warning flag: unspecified[08:54:29][D][api:103]: Accepted 192.168.1.2[08:54:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:54:29][W][component:170]: Component api cleared Warning flag[08:54:29][W][component:157]: Component api set Warning flag: unspecified[08:55:29]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[08:55:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:55:29][W][component:170]: Component api cleared Warning flag[08:55:29][W][component:157]: Component api set Warning flag: unspecified[08:56:29][D][api:103]: Accepted 192.168.1.2[08:56:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:56:29][W][component:170]: Component api cleared Warning flag[08:56:29][W][component:157]: Component api set Warning flag: unspecified[08:57:29][D][api:103]: Accepted 192.168.1.2[08:57:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:57:29][W][component:170]: Component api cleared Warning flag[08:57:29][W][component:157]: Component api set Warning flag: unspecified[08:58:29]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[08:58:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:58:29][W][component:170]: Component api cleared Warning flag[08:58:29][W][component:157]: Component api set Warning flag: unspecified[08:59:29][D][api:103]: Accepted 192.168.1.2[08:59:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[08:59:29][W][component:170]: Component api cleared Warning flag[08:59:29][W][component:157]: Component api set Warning flag: unspecified[09:00:29]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:00:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:00:29][W][component:170]: Component api cleared Warning flag[09:00:29][W][component:157]: Component api set Warning flag: unspecified[09:01:29][D][api:103]: Accepted 192.168.1.2[09:01:29][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:01:29][W][component:170]: Component api cleared Warning flag[09:01:29][W][component:157]: Component api set Warning flag: unspecified[09:02:30][D][api:103]: Accepted 192.168.1.2[09:02:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:02:30][W][component:170]: Component api cleared Warning flag[09:02:30][W][component:157]: Component api set Warning flag: unspecified[09:03:30][D][api:103]: Accepted 192.168.1.2[09:03:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:03:30][W][component:170]: Component api cleared Warning flag[09:03:30][W][component:157]: Component api set Warning flag: unspecified[09:04:30][D][api:103]: Accepted 192.168.1.2[09:04:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:04:30][W][component:170]: Component api cleared Warning flag[09:04:30][W][component:157]: Component api set Warning flag: unspecified[09:05:30]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:05:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:05:30][W][component:170]: Component api cleared Warning flag[09:05:30][W][component:157]: Component api set Warning flag: unspecified[09:06:30]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:06:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:06:30][W][component:170]: Component api cleared Warning flag[09:06:30][W][component:157]: Component api set Warning flag: unspecified[09:07:30][D][api:103]: Accepted 192.168.1.2[09:07:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:07:30][W][component:170]: Component api cleared Warning flag[09:07:30][W][component:157]: Component api set Warning flag: unspecified[09:08:30][D][api:103]: Accepted 192.168.1.2[09:08:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:08:30][W][component:170]: Component api cleared Warning flag[09:08:30][W][component:157]: Component api set Warning flag: unspecified[09:09:30]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:09:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:09:30][W][component:170]: Component api cleared Warning flag[09:09:30][W][component:157]: Component api set Warning flag: unspecified[09:10:30]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:10:30][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:10:30][W][component:170]: Component api cleared Warning flag[09:10:30][W][component:157]: Component api set Warning flag: unspecified[09:11:31]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:11:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:11:31][W][component:170]: Component api cleared Warning flag[09:11:31][W][component:157]: Component api set Warning flag: unspecified[09:12:31][D][api:103]: Accepted 192.168.1.2[09:12:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:12:31][W][component:170]: Component api cleared Warning flag[09:12:31][W][component:157]: Component api set Warning flag: unspecified[09:13:31][D][api:103]: Accepted 192.168.1.2[09:13:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:13:31][W][component:170]: Component api cleared Warning flag[09:13:31][W][component:157]: Component api set Warning flag: unspecified[09:14:31][D][api:103]: Accepted 192.168.1.2[09:14:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:14:31][W][component:170]: Component api cleared Warning flag[09:14:31][W][component:157]: Component api set Warning flag: unspecified[09:15:31][D][api:103]: Accepted 192.168.1.2[09:15:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:15:31][W][component:170]: Component api cleared Warning flag[09:15:31][W][component:157]: Component api set Warning flag: unspecified[09:16:31]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:16:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:16:31][W][component:170]: Component api cleared Warning flag[09:16:31][W][component:157]: Component api set Warning flag: unspecified[09:17:31][D][api:103]: Accepted 192.168.1.2[09:17:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:17:31][W][component:170]: Component api cleared Warning flag[09:17:31][W][component:157]: Component api set Warning flag: unspecified[09:18:31]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:18:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:18:31][W][component:170]: Component api cleared Warning flag[09:18:31][W][component:157]: Component api set Warning flag: unspecified[09:19:31]\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff[0;36m[D][api:103]: Accepted 192.168.1.2[09:19:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:19:31][W][component:170]: Component api cleared Warning flag[09:19:31][W][component:157]: Component api set Warning flag: unspecified[09:20:31][D][api:103]: Accepted 192.168.1.2[09:20:31][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:20:31][W][component:170]: Component api cleared Warning flag[09:20:31][W][component:157]: Component api set Warning flag: unspecified[09:21:31][D][api:103]: Accepted 192.168.1.2[09:21:32][W][api.connection:093]: : Socket operation failed: HANDSHAKESTATE_READ_FAILED errno=11[09:21:32][W][component:170]: Component api cleared Warning flag[09:21:32][W][component:157]: Component api set Warning flag: unspecified
代码为
esphome:
name: x1
platform: ESP32
board: esp-wrover-kit
#esp32:
# board: esp32dev
# framework:
# type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "GLlhQTRDYy7+mrHLhgPjZmDOZiY4GFsB4Ww6+P61K8U="
ota:
- platform: esphome
password: "6fc7e3e889f31d0490bf3bcc4f1e8db0"
wifi:
ssid: "ChinaNet-5Yag"
password: "gkfwgyjq"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "X1 Fallback Hotspot"
password: "1MLJ4TR9Uci8"
captive_portal:
|
-
|