Recently I started to move my IoT devices to a separate VLAN. Things are mostly working as expected, but it still needs some tweaking, but my biggtest problem is with ESPHome dashboard. The ESPhome “controller” is located on the untagged LAN network and it’s not able to resolve ESPhome nodes by hostname. In reality it means that upgrading nodes or viewing their logs from the ESPhome dashboard is not possible. HA communicates with the nodes via IP address instead of hostname, so HA control is flawless.
Summing up the situation:
LAN → VLAN hostname IS NOT resolved (e.g. nslookup returns no IP address)
VLAN → VLAN hostname IS NOT resolved VLAN device
VLAN → LAN hostname IS resolved
Now I suspect that the issue is related to mDNS.
My setup is OPNsense router + Unifi switch and APs.
In OPNsense there are firewall rules allowing access from VLAN to ports 53 and 5353 to the firewall gateway and also i have installed MDNS repeater plugin.
I have also enabled port 5353 from VLAN to 22.214.171.124/24 - this helped in terms that the nodes on ESPhome dashboard show up green instead of red, but hostname is still not resolved.
It seems i am still missing something. Also given the above i am not sure I understand what the colors mean in the ESPhome dashboard.
Any help is appreciated.