# MQTT, Home Assistant, Mosquitto: Connection Refused

**URL:** <https://www.thethingsnetwork.org/forum/t/mqtt-home-assistant-mosquitto-connection-refused/55813>\
**Category:** MQTT\
**Tags:** mqtt, home-assistant, mosquitto\
**Created:** [March 13, 2022, 2:21pm UTC](https://www.thethingsnetwork.org/forum/t/mqtt-home-assistant-mosquitto-connection-refused/55813 "2022-03-13T14:21:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [March 29, 2022, 9:50am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-home-assistant-mosquitto-connection-refused/55813/6 "2022-03-29T09:50:49Z")

</div>

@Adandl

The error message in your log:

```auto
1647188389: Connection Refused: unacceptable protocol version

```

Does not match the configuration you show in the top post:

```auto
bridge_protocol_version mqttv311

```

In your double post (post right above) the `bridge_protocol_version` is missing which can explain the error message but it does not match the configuration that you show on top.

You should now (with protocol version specified) probably see a different error message which is not shown in your posts. FYI: Filename should be `mosquitto.conf` (all lower case).

A possible solution for your problem was already described here:

> [@Cannot connect to MQTT over the port 8883](https://www.thethingsnetwork.org/forum/t/cannot-connect-to-mqtt-over-the-port-8883/52700/2):
>
> You may need to explicitly set the capath and protocol version parameters. Assuming that you are using Mosquitto with MQTT bridging: In mosquitto.conf to the bridge settings add: bridge\_capath /etc/ssl/certs bridge\_protocol\_version mqttv311 (Above capath works for Home Assistant (OS) but may require a different value for your OS/distribution.)

  

_Use the [Forum Search option](https://www.thethingsnetwork.org/forum/search) to find information on the forum._

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/mqtt-home-assistant-mosquitto-connection-refused/55813)._
