Why can’t HA see my online ESPhome devices

Hi there,

I have about 12 various esphome devices as in cameras, temperature sensors and flow meters. For some unclear reason 2 of them (most of the time the same ones) in HA they are not available but in ESPhome they are online. They don’t seem to have problems connecting to the Wi-Fi, they update fine, the send the measurement fine but they just don’t connect or stay connected with HA. After a reboot the are sometimes found in HA but after a while they are gone again. A bit frustrating to be honest. And I can’t figure out what to do about it. I have uploaded the yaml script from time to time but nothing seems to help. The devices are also totally unrelated (flow and temp) and they have exact replicas which do work flawlessly.

What can I do?