Central HA system for all sensor node. Please look at the picture

I am running HA at my home and I have 3 ESP32 at my friends place. I can use MQTT to send the data from esp32 to HA but how can I upload new code to those 3 ESP32?