本帖最后由 koymeha 于 2020-12-10 17:59 编辑
esphome:
name: bg01
platform: ESP8266
board: esp01_1m
wifi:
ssid: "SJZN"
password: "1335588"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bg01 Fallback Hotspot"
password: "OMfezwCoy6Pd"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "1"
ota:
password: "1"
上面是esphome后台自己生成的,是否还需要改呢?
upload出现如下错误
INFO Reading configuration /config/esphome/bg01.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running: platformio run -d /config/esphome/bg01
Processing bg01 (board: esp01_1m; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.20704.0 (2.7.4)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.20800.0 (2.8.0)
- toolchain-xtensa 2.40802.200502 (4.8.2)
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
| |-- <ESPAsyncTCP-esphome> 1.2.3
| | |-- <ESP8266WiFi> 1.0
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
Compiling /data/bg01/.pioenvs/bg01/src/main.cpp.o
Linking /data/bg01/.pioenvs/bg01/firmware.elf
Retrieving maximum program size /data/bg01/.pioenvs/bg01/firmware.elf
Building /data/bg01/.pioenvs/bg01/firmware.bin
Checking size /data/bg01/.pioenvs/bg01/firmware.elf
RAM: [==== ] 44.4% (used 36348 bytes from 81920 bytes)
Flash: [==== ] 38.0% (used 388740 bytes from 1023984 bytes)
Creating BIN file "/data/bg01/.pioenvs/bg01/firmware.bin" using "/root/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" and "/data/bg01/.pioenvs/bg01/firmware.elf"
========================= [SUCCESS] Took 33.32 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of bg01.local
ERROR Error resolving IP address of bg01.local. Is it connected to WiFi?
ERROR (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
ERROR Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname
|