I have an ESPHome device that I have moved to a new VLAN and it is up and running and available in HA. (So I don’t think there is anything wrong with my firewall rules)
However it will not show as Online in the ESPHome dashboard and hence I can’t reflash it
Is there anything I can do to force it to appear?
Other than to flash it again manually and try again.
I obviously wasn’t expecting to see much else but the error in the log might help someone know what is going on?
Thanks.
The logs…
INFO Starting log output from esp32-cam01.local using esphome API
WARNING Can't connect to ESPHome API for esp32-cam01.local: Error resolving IP address: [Errno -5] No address associated with hostname
INFO Trying to reconnect to esp32-cam01.local in the background
The correct hostname resolution in the ESPHome dashboard is quite cumbersome.
For me the easiest and best way so far was to specify a dedicated IP address for my ESPHome devices with manual_ip and to specify with use_address that this IP adress should be used for connections.
Thanks, I’m not mad keen on giving static IP addresses to all my IoT devices as that seems like a huge admin overhead.
But in any case that won’t help me right now because I can’t change the config as I can’t reach the device to flash it. Except manually which I can do as it is a test device sitting on my desk. I just wondered if there was an alternative less fiddly than digging out my FTDI and some jumper cables (lazy? me?)
I re-flashed it manually and gave it a different name test-esp32-cam
It joins the network and I ‘adopted’ it in HA and everything works except it is still not seen on-line by ESPHome.
Also using a basic network scanner it seems the device has not taken the name I gave it and also has had the last 3 bytes of the mac address of the device added to the (host)name despite not using
do you run ESPHome in a docker container (not add-on)?
if you do there is a setting to use to keep your devices as ‘online’. I had the same issue that some of my devices would show offline even when they weren’t and adding the setting to the ESPHome Docker command fixed it.
OK, I think it must have something to do with the VLANs.
I re-flashed to 192.168.1.x and it popped straight into HA and the ESPHome dashboard.
I still have some anomalies and questions though such as, why did it work on HA but not the ESPHome dashboard?
Anyway, consider this post closed (unless someone reading this far has an answer of course!!).
I’m going to start another one specifically about ESPHome and VLANs.
You must use an IP address and not a host name!
It looks like the hostname resolution does not work in your network. Then the easiest way is to address the devices directly via the IP address.
A little bit late with the information, but I’ve just run into this. If you run the ESPHome as an addon in the configuration of the addon press the ‘Show unused optional configuration options’ and there is an option for ‘Use ping for status’.