Esphome firewall ufw docker

Hello, I would like to enable firewall on my ubuntu ha server.
I see if I enable firewall, esphome doesn’t work: it no more display device in H.A.

I open severla ports but the result is the same.
Can you help me to list ports that must be open ?

Best regards
Thierry

what ports did you open?