Multiple MQTTs issue

Hello,

I configured the Garage Door opener following https://github.com/Jerrkawz/GarageQTPi and https://home-assistant.io/components/cover.mqtt/ articles.

This is the configuration in my configuration.yaml file:

cover:
  - platform: mqtt
    state_topic: "home-assistant/cover"
    command_topic: "home-assistant/cover/set"
    name: "Garage Door"
    qos: 0
    retain: true
    payload_open: "OPEN"
    payload_close: "CLOSE"
    payload_stop: "STOP"
    state_open: "OPEN"
    state_closed: "STATE"
    optimistic: false
    value_template: '{{ value.x }}'

Everything works.

Now, I decided to add Presence Detection. I need to configure MQTT to connect to Cloud MQTT:

mqtt:
  broker: server.cloudmqtt.com
  port: 55555
  username: cloudmqtt_username
  password: cloudmqtt_password

As soon as I add the code for mqtt, my garage door stop working.

Can someone help?
Thank you.

HA only connects to one MQTT broker. In order to use two, you need to bridge them. This thread explained how