Need help for creating a bridge from to HiveMQ

Hello community,

I am running HA at the actual version (2025.12.5)
before i was running openhab, but now i switched to home assistant.
Now i am quite frustrated.
i am running a local broker “mosquitto”, works fine.
i want to integrate a second mqtt broker to home assistant.
It is only possible via mqtt bridge.
OK so far.

i tried different settings for mosquitto.conf, but no success.
so i changed the mqtt broker to emqx with ui, no success.

i tried these settings:

URL: 0b933d985bce4e98b88e64992397e98d.s1.eu.hivemq.cloud
Port: 8883
Username: Homeassistant
Password: XXX
Certificate: /config/isrgrootx1.pem

i tried to listen to the broker via command line in the HA Terminal Addon, success…
so in my oppinion the broker works
it even worked with openhab.

i ried mosquitto without success,
i even tried emqx without success.

i already have read some documentations, but they were quite outdated.

can someone help me with the settings creating a connector to hivemq to integrate it to HA?
would it even work with mosquitto?

Thanks in advance

Jan

first dont use homeassistant as a user name

i changed the username. but it is not the username for logging in at hivemq.

i tried these settings, but the bridge does not connect.

# ----------------------------
# Mosquitto Bridge zu HiveMQ Cloud
# Nur empfangen: tele/#, QoS 0
# ----------------------------

connection hivemq
address XXX.s1.eu.hivemq.cloud:8883  # Adress from HiveMQ

# HiveMQ Cloud Zugangsdaten / Name of Credentials
remote_username USERNAME
remote_password DEIN_PASSWORT

# Eindeutige Client-ID für diese Bridge
remote_clientid mosquitto-hivemq

# MQTT Version
bridge_protocol_version mqttv311

# Persistent Session
cleansession false
keepalive_interval 60

# TLS / CA Zertifikat
bridge_cafile /share/mosquitto/isrgrootx1.pem
bridge_tls_version tlsv1.2

# ----------------------------
# Topics: nur empfangen
# QoS 0
# ----------------------------
topic tele/# in 0

The bridge is going to connect, but the connection is ~1s established
after that it is disconnected.
is there someboby who can have a look at the settings to give me a hint?
,
Here is the log:

2026-01-12 22:09:41: Connecting bridge hivemq (XXX.s1.eu.hivemq.cloud:8883)
2026-01-12 22:09:41: Client local.mosq-bridge closed its connection.
2026-01-12 22:09:53: Connecting bridge hivemq (XXX.s1.eu.hivemq.cloud:8883)
2026-01-12 22:09:53: Client local.mosq-bridge closed its connection.
2026-01-12 22:10:03: Connecting bridge hivemq (XXX.s1.eu.hivemq.cloud:8883)
2026-01-12 22:10:03: Client local.mosq-bridge closed its connection.
2026-01-12 22:10:14: Connecting bridge hivemq (XXX.s1.eu.hivemq.cloud:8883)
2026-01-12 22:10:14: Client local.mosq-bridge closed its connection.

I still tried different MQTT Versions, TLS versions, without success
when i try to connect via cli from home assistant, it works.

i am already quite frustrated…

Thanks in advance