Entity is currently unavailable after changing router

I just migrated my home network from the Unifi security gateway to the Dream machine Pro. All ESPhome devices stopped working.

They are showing green status but not getting any data.

image

If I delete the integration and add it again, will work for a few hours then to “Entity is currently unavailable” state.

Main LAN 10.0.4.1/22
HA IP :10.0.7.14
IoT Network : 10.0.28.1/22

Added firewall rules to allow IoT Network to talk to 10.0.7.14 without restriction.

What happens when you click on the LOGS link for your EspHome nodes? What do you get?

I can click and view logs without any problem . Even after a lot of troubleshooting, I wasn’t able to fix it. I switched to MQTT protocol and everything is working now.
Might problem with UDM Pro mdns.