[solved] Mqtt over internet? aka: "How to set up cloudMQTT bridge with Hassio mosquitto broker"

@ct36 & @Zpeed, I’ve managed to get it working by following this thread MQTT: Working Mosquitto / CloudMQTT Bridge

Essentially you must use this config which directs mqtt to use a pre-existing “ca-certificates.crt” file in Home Assistant. The mosquitto.conf file is as below which will bridge all in and outbound topics on both brokers:

connection couldmqtt
address <your cloudmqtt account:port>
topic # both
try_private true
notifications false
start_type automatic
remote_clientid <your client id>
remote_username <your user name>
remote_password <your password>
keepalive_interval 300
cleansession true
bridge_protocol_version mqttv311
local_clientid hass
bridge_cafile /etc/ssl/certs/ca-certificates.crt
bridge_insecure false

You can be more specific on the topics you expose by using the “in” and “out” syntax:

topic subject1 in
topic subject2 in
topic subject3 out
topic subject4 out
topic subject5 both
1 Like