Automate mqtt broker integration set up

Hello,

I’m trying to automate my Home Assistant deployment (HA, mosquitto and zigbee2mqtt) on docker but I’m blocking on mqtt broker setup in Home Assistant.

I have deployed the 3 containers and configure mosquitto users.
I tested with Home Assistant UI to check if user/password was OK and it was successful.

I find in oldest post there was configuration fields in mqtt block (broker, port, username, password) inside configuration.yaml but there were deprecated/remove. I check in REST api and websocket api but i didn’t find a solution
Is there something I missed ?

I’m running:

  • HA in 2023.8
  • mosquitto in 2.0.15
  • zigbee2mqtt in 1.32.2

Thanks for you help

It is not clear to me what you are talking about

  • HA : mqtt configuration in yaml is removed, now done using the GUI
  • Zigbee2MQTT : still needs to be configured in configuration.yaml, but beware: Zigbee2MQTT’s configuration.yaml, not HA’s configuration.yaml

Thanks for quick answer !
Sorry for the not clear question

I’m talking of HA configuration not zigbee2MQTT.
It’s only possible from GUI ? I would like to automate that without manual action

Setting up can only be done using the GUI

Switches, sensors, … can still be configured in .yaml

What you could do is creating a “boilerplate”, minimal installation by using the GUI from scratch, take a backup of /config/.storage, then deploy that backup as the initial configuration of your newly deployed HA’s.