ESP online but no longer in ESPHome - with broken usb port bonus

Hi lads,

I have an old ESP that was flashed and deleted from esp home (because the usb port was broken / not recognised by any pc / cable)

I plugged it in just to give it one more go = NO COM
but I did see it came online on my Wi-Fi and i can acces it’s webpage.

I can re-add it in home assistant too and see

[W][api.connection:080]: aioesphomeapi (::FFFF:C0A8:8C): Connection closed
[D][api:102]: Accepted ::FFFF:C0A8:8C
[D][api.connection:861]: Home Assistant 2023.4.4 (::FFFF:C0A8:8C): Connected successfully

in the logs when i do.

now homeassistant doesn’t show me entities with the notice ‘device not available in ESPHome’

→ can someone point me into a direction where:

  • i can reflash it OTA
  • or just re add it in esphome so homeassistant follows and ota updates etc too

UPDATE: after removing all old stuff from HA: it is online in HA and it’s entities too, but old FW and nothing in ESPHome

In esphome you’ll have to add yaml for it.

And how can I generate this if I don’t know the key?

In ESPHome dashboard create a new entity. Name the entity the same as your existing ESP Node. It should match (or it did for me). Now you can flash your Node with your new yaml. The yaml in the node will be overwritten by your new yaml

If you have a OTA password specified in the original config - and don’t have it - then you’re out of luck.

You could try to use the serial pins on the board to flash it using esphome-flasher - if you have an USB-TTL adapter (or a spare ardiuno, which you also can use).

If you still have the firmware file in esphome you may be able to find the OTA password with strings.