ESP32 board to ESPHome - can pair via web but not via HA/ESPhome local to edit yaml file

Hi,

Setup:

  • HA latest version - installed on VM
  • ESP board
  • few Xiaomi LYWSD03MMC

I want to add the ESP32 board to the HA panel to be able to edit yaml file and in the end to add the flashed xiaomi sensors.

A. When I want to do it via New Device / Continue and I type the f.ex MyBoard and Input the wifi credentials / (is see in the back on the dashbard the “Myboard” but still online / i cen choose the way I want to install
A1. If I select wireless I get an error (picture in attachemen)

A2 If I select "plug to the computer (but its not the server), I can runn the installation → Configuration installed but later can not connect to the board. It show as offline.
B. but when I go New Device / open ESPHome Web / Connect / select the port/ESP32 bards / Prepare for First use / … it installs without problem then I cen select my wifi and type credentials I can access the board with local wifi but I dont see it in the HA dashbard or vie wifi a dont see option to edit yaml files.

Any suggestion what I do wrong?

Welcome to ESPHome and HA. Some tips:

  • “latest” is not a version. Please include the version numbers of both HA and ESPHome. If nothing else this helps if anyone finds your post months down the track and wants to know if it is still relevant.
  • Let us know what sort of HA install you have - “VM” could mean many things. Is it HAOS installed on the VM? Supervised? Docker?
  • What sort of ESPHome install are you running? The ESPHome add-on via HA? Or running via Python on a different machine?
  • Lastly (I think) :slight_smile: when you post logs, post the text rather than the image. Use pre-formatted text tags (the </> button on the posting toolbar)

Also ensure that mDNS works on your network - HA resolves IPs using the name by default.

1 Like

Sorry for not being precise enought

Ad1.

  • Home Assistant 2023.6.3 / Supervisor 2023.07.1 / Operating System 10.3 / Frontend 20230608.0 - latest /
  • ESPHome 2023.6.4
    Ad2. I have a server with OMV installed. On the OVM I have a KVM service running where I created VM of “Home Assistant Operating System”. OMV Server and HAOS have two different IPs on in my network.
    Ad3. I have a ESP addon installed (see picture)
    Ad4. I will correct this. I will upload in the evening as I have it at home.
    Ad5. Didn`t know I have to do something like this. How can i check it? I have to add/install something?

Ad4

NFO ESPHome 2023.6.4
INFO Reading configuration /config/esphome/board1.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing board1 (board: esp32-s2-saola-1; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/api_connection.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/api_frame_helper.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/api_server.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/list_entities.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/proto.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/api/user_services.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/esp32/core.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/esp32/gpio.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/esp32/preferences.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/logger/logger.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/md5/md5.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/mdns/mdns_component.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/mdns/mdns_host.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/network/util.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/socket/socket.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/application.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/color.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/component.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/component_iterator.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/controller.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/entity_base.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/helpers.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/log.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/scheduler.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/string_ref.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/time.cpp.o
Compiling /data/board1/.pioenvs/board1/src/esphome/core/util.cpp.o
Compiling /data/board1/.pioenvs/board1/src/main.cpp.o
Building /data/board1/.pioenvs/board1/bootloader.bin
Creating esp32s2 image...
Successfully created esp32s2 image.
Generating partitions /data/board1/.pioenvs/board1/partitions.bin
Compiling /data/board1/.pioenvs/board1/lib5da/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFi.cpp.o
Archiving /data/board1/.pioenvs/board1/lib5da/libAsyncTCP-esphome.a
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiAP.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiClient.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiGeneric.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiMulti.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiSTA.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiScan.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiServer.cpp.o
Compiling /data/board1/.pioenvs/board1/lib64d/WiFi/WiFiUdp.cpp.o
Compiling /data/board1/.pioenvs/board1/lib01c/FS/FS.cpp.o
Archiving /data/board1/.pioenvs/board1/lib64d/libWiFi.a
Compiling /data/board1/.pioenvs/board1/lib01c/FS/vfs_api.cpp.o
Compiling /data/board1/.pioenvs/board1/libbc6/Update/HttpsOTAUpdate.cpp.o
Archiving /data/board1/.pioenvs/board1/lib01c/libFS.a
Compiling /data/board1/.pioenvs/board1/libbc6/Update/Updater.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Archiving /data/board1/.pioenvs/board1/libbc6/libUpdate.a
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling /data/board1/.pioenvs/board1/lib833/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling /data/board1/.pioenvs/board1/lib333/DNSServer/DNSServer.cpp.o
Archiving /data/board1/.pioenvs/board1/lib833/libESPAsyncWebServer-esphome.a
Compiling /data/board1/.pioenvs/board1/lib915/ESPmDNS/ESPmDNS.cpp.o
Archiving /data/board1/.pioenvs/board1/lib333/libDNSServer.a
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_core/ed25519/core_ed25519.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_core/ed25519/core_ristretto255.c.o
Archiving /data/board1/.pioenvs/board1/lib915/libESPmDNS.a
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_hash/crypto_hash.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_hash/sha256/hash_sha256.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_stream/crypto_stream.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/crypto_verify/sodium/verify.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/sodium/codecs.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/sodium/core.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/sodium/runtime.c.o
Compiling /data/board1/.pioenvs/board1/lib719/libsodium/sodium/utils.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/openssl/cipher-aesgcm.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/cipher-aesgcm.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/cipher-chachapoly.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/dh-curve25519.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/hash-blake2b.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/hash-blake2s.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/ref/hash-sha256.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/sodium/cipher-aesgcm.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/sodium/cipher-chachapoly.c.o
Archiving /data/board1/.pioenvs/board1/lib719/libsodium.a
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/sodium/dh-curve25519.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/sodium/hash-blake2b.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/backend/sodium/hash-sha256.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/aes/rijndael-alg-fst.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/blake2/blake2b.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/blake2/blake2s.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/chacha/chacha.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/donna/curve25519-donna-c64.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/donna/curve25519-donna.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/donna/poly1305-donna.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/sha2/sha256.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/sha2/sha512.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/crypto/x25519/x25519.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/cipherstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/dhstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/errors.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/handshakestate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/hashstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/internal.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/names.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/patterns.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/rand_os.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/rand_sodium.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/randstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/signstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/symmetricstate.c.o
Compiling /data/board1/.pioenvs/board1/libc75/noise-c/protocol/util.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/Esp.cpp.o
Archiving /data/board1/.pioenvs/board1/libc75/libnoise-c.a
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/FirmwareMSC.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/HWCDC.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/HardwareSerial.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/IPAddress.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/IPv6Address.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/MD5Builder.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/Print.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/Stream.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/StreamString.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/Tone.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/USB.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/USBCDC.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/USBMSC.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/WMath.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/WString.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/base64.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/cbuf.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-adc.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-bt.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-dac.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-misc.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-psram.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-spi.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-time.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-timer.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-touch.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/esp32-hal-uart.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/firmware_msc_fat.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/libb64/cdecode.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/libb64/cencode.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/main.cpp.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/stdlib_noniso.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/wiring_pulse.c.o
Compiling /data/board1/.pioenvs/board1/FrameworkArduino/wiring_shift.c.o
Archiving /data/board1/.pioenvs/board1/libFrameworkArduino.a
Linking /data/board1/.pioenvs/board1/firmware.elf
RAM:   [=         ]  11.0% (used 36188 bytes from 327680 bytes)
Flash: [=====     ]  45.8% (used 839818 bytes from 1835008 bytes)
Building /data/board1/.pioenvs/board1/firmware.bin
Creating esp32s2 image...
Successfully created esp32s2 image.
esp32_create_combined_bin(["/data/board1/.pioenvs/board1/firmware.bin"], ["/data/board1/.pioenvs/board1/firmware.elf"])
Wrote 0xdd210 bytes to file /data/board1/.pioenvs/board1/firmware-factory.bin, ready to flash to offset 0x0
======================== [SUCCESS] Took 439.44 seconds ========================
INFO Successfully compiled program.
INFO Resolving IP address of board1.local
ERROR Error resolving IP address of board1.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

Looks like you have mDNS issue as board1.local does not resolve.
You might want to try and give it a fixed static IP address :wink:

i`ve added such line board

# Optional manual IP
  manual_ip:
    static_ip: 192.168.50.101
    gateway: 192.168.50.1
    subnet: 255.255.255.0

and I flashed the board wireless and I get the following result

INFO ESPHome 2023.6.4
INFO Reading configuration /config/esphome/board2.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing board2 (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
Compiling /data/board2/.pioenvs/board2/src/main.cpp.o
Linking /data/board2/.pioenvs/board2/firmware.elf
RAM:   [=         ]  12.4% (used 40512 bytes from 327680 bytes)
Flash: [=====     ]  49.0% (used 899649 bytes from 1835008 bytes)
Building /data/board2/.pioenvs/board2/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/board2/.pioenvs/board2/firmware.bin"], ["/data/board2/.pioenvs/board2/firmware.elf"])
Wrote 0xed0d0 bytes to file /data/board2/.pioenvs/board2/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 94.23 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.50.101
ERROR Connecting to 192.168.50.101:3232 failed: [Errno 113] No route to host

any clue what I do wrong?

Does your HA run on the same network range??
What is HA’s IP and GW address?

Show us your YAML code for the device.
What is the IP of your Home Assistant host computer?

You can’t change the IP address this way. You need to connect to the ESP device via cable to do the initial flash.

I have 2x Asus Routers running Mesh network with one Wifi (if this would change anything I can turn off one router for purpose of testing)

HA - 192.168.50.15:8123

Gateway address: 192.168.50.1

Board is currently connected to my desktop (192.168.50.23) (for flashing purpose - but after flashing I can connect it to a standalone charger). Question … after flashing it should be disconnected for the desktop to work properly or it can be still connected to it?

YAML code for the device:

esphome:
  name: board2
  friendly_name: board2

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "*I`ve removed it  :)*"

ota:
  password: "I`ve removed it  :)"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

# Optional manual IP
  manual_ip:
    static_ip: 192.168.50.101
    gateway: 192.168.50.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Board2 Fallback Hotspot"
    password: "I`ve removed it  :)"

captive_portal:
    

BTW should I upgrade the HO to 2023.7.1?

yes, it should connect to wifi when disconnected from usb (depends a bit on the model though)

Board disconnected form the Desktop and connected to a phone charger.
I see the board diode is On (red).

On the ESPHome dashboard it is still indicating “Offline”

When I try to install the yaml file wireless I get following log

INFO ESPHome 2023.6.4
INFO Reading configuration /config/esphome/board2.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing board2 (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
RAM:   [=         ]  12.4% (used 40512 bytes from 327680 bytes)
Flash: [=====     ]  49.0% (used 899649 bytes from 1835008 bytes)
========================= [SUCCESS] Took 33.60 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.50.101
ERROR Connecting to 192.168.50.101:3232 failed: [Errno 113] No route to host

Frustration on my side 1000% :frowning:

does this hotspot show up in wifi (when the esphome module can’t connect to wifi, it should bring up the hotspot automatically)
If not… maybe the wifi transmitter/receiver is broken ??
Can you try another one?

I did a step back to the initial post - option B. Removed the ESP “device” from the ESP integration and then …
the web instalation work partially…

  • I see the board as BT device
  • also via ASUS app logged to Wifi network.
  • on the decktop i can log to it via browser und ip 192.168.50.34 -
    … but I dont see it under HA / ESP Home dashboard

    … I would assume the HA will detect the device … right ?
    … or should I add the device in the ESP integration

Try removing this.

Did you look for the AP SSID on your phone?

I dont have the yaml entry on the ESPHome dashboard as I removed it when I installed the board wireless from scrach. The name of the board is diffrent than on the yaml file.

As for AP SSID you mean … do I find the Access Point created the be board on the wifi list of my smartphone ?

You need an IP scanner. My favorite is Advanced IP Scanner.
What do you get when you ping board2.local ?

see my ports from 4 days ago. I flashed the board wireless and its working
see picture


,
,
and
.
I see it on the router … I can connect to it via setting / devices … BUT it is not detected by the “ESP dashboad” to be able to edit YAML config

The name of the device is defined in

esphome:
  name: mydevice

The filename can be different. Can you see the yaml file in /config/esphome? Something like “mydevice.yaml”. You can edit the file there with any text editor, the text editor add-on would be recommended.

The esp add on works the other way around…

Based on the existing configurations, it tries to contact the esp devices…
So,no config…no devices.

You mentioned you flashed it ota…how did you get the binf files???