I have a strange issue.
My network setup is a bit complex.
My wifi devices for ESPhome have subnet of 10.1.20.x/24.
My HomeAssistant and ESPhome sit on subnet 10.1.60.x/24.
The HA can see ESPhome, HA can also connect and read the ESPhome devices on wifi, but the ESPhome is strange.
ESP home shows all wifi devices as “offline”, even though HA can read the data from the same devices.
I can wirelessly install and read logs from both devices.
Any idea why the devices are shown as offline in ESPhome dashboard?
Because mdns does not work across subnet boundaries. Esphome has a setting “use ping for status” for this situation .
Would you be so kind and point me to some docs example? I can see a note in mDNS about needing to enable ping, but no idea how…
Thanks in advance.
And thanks for the explanation, it makes sense.
I am just leaving it here for those who will search for it like I did…
The configuration is not in yaml files for the devices.
What needs to be changed is the configuration of the ESPhome add-on in Home Assistant.
The way to do this is to go to Settings → Add-ons → ESPhome, click on tab Configuration and there toggle the “show unused configuration options”.
And voila, there one will find the “Use ping for status” and suddenly it starts to work
Sorry if I didn’t explain that well enough. Glad you found it!