Help to connect Home Assistant to PicoMQTT

Hello!
I am using Home Assistant from almost 6years, I am using Eclipse Mosquitto DOCKER, I am trying to find a way so that if I turn off RPI4, the comunication between the EspHome devices via MQTT is still working, searching on internet I found PicoMQTT-broker for arduino, I configure an install it on ESP32, but when I try to connect Home Assistant to PicoMqtt is not connecting, is there a way to make it work with HA? at the moment i didn’t try to connect EspHome to PicoMQTT-brocker because the problem with HA, someone tried this kind of configuration?

Hope someone can help me

Config? Logs?

Do you want mqtt?
You can connect esp to HA via native api.

Hello when I enter the ip of the broker(pico-mqtt), user & password, press NEXT, is saying “not possible to connect”

tmjpugh I know there is API, but most of the automations (MQTT is used by them) are inside EspHome so they not depend to HA, as I said I would want them to comunicate each other even if i turn of the RPI (HA is on it)

No logs? Hard to say.