I’m trying to connect Home Assistant to an MQTT server provided by hivemq.cloud. I ran a quick test using the public test broker at broker.hivemq.com with the following setup:
No username or password
Port: 1883 (non-SSL)
This configuration works perfectly, and Home Assistant connects immediately.
However, when I attempt to use the SSL port (8883), the connection fails.
Does anyone have experience with configuring SSL for MQTT in Home Assistant or know what could be causing this issue? I’d appreciate any insights or troubleshooting tips.
I have exactly the same problem…
tried many different configuration in the UI integration:
url : mqtts://mydomain.com
port : 8883
user : my_user
password : my_password
with AND without advanced configuration
with AND without certificate (auto, custom)
with AND without check certificate
and like to @jaklacz the log is quiet… unless I deliberately put a mistake (wrong port)
Nope…
there is no code (it is not a yam file, only rewrite what is in the UI…)
I am not trying a hiveMQ server (the title is HA can’t connect to external MQTT with SSL)
so I have the same issue but not the same server.
digging deeper…