# Connnecting HiveMQ to Homeassistant failing

**URL:** <https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603>\
**Category:** Uncategorized\
**Created:** [February 17, 2025, 9:48pm UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603 "2025-02-17T21:48:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exiatron00](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@Exiatron00](https://community.hivemq.com/u/Exiatron00)\
**Post date:** [February 17, 2025, 9:48pm UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/1 "2025-02-17T21:48:26Z")

</div>

Hi, I have a HiveMQ cluster. I am trying to connect my homeassistant to the HiveMQ broker but I am getting the “connection failed” error every time for no apparent reason , I am able to connect to the HiveMQ broker using other devices just fine. I am aware that MQTT setup through yaml has depreciated.

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [February 18, 2025, 10:34am UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/2 "2025-02-18T10:34:57Z")

</div>

Hi @Exiatron00

It’s fantastic to hear that you’re interested in MQTT and the HiveMQ broker. Welcome to the HiveMQ Community! We’re thrilled to have you join us.

Which HiveMQ product are you using: Cloud, On-Premises, or Community Edition?

For HiveMQ Cloud, here are the steps to connect to Home Assistant: [How to Use HiveMQ Cloud MQTT Broker with Home Assistant](https://www.hivemq.com/blog/connect-home-assistant-to-hivemq-cloud/)

I hope it helps  
Best,  
Dasha from The HiveMQ Team

---

<div class="post-metadata">

**Author:** ![questenmark5555](https://avatars.discourse-cdn.com/v4/letter/q/df788c/32.png) [@questenmark5555](https://community.hivemq.com/u/questenmark5555)\
**Post date:** [March 16, 2025, 5:27pm UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/3 "2025-03-16T17:27:36Z")

</div>

Hi @ [Daria\_H](https://community.hivemq.com/u/Daria_H),  
in the How to you provided is again the configuration.yaml edited, as [Exiatron00](https://community.hivemq.com/u/Exiatron00) pointed out, this seems tob be depreciated and is not working any more. Home Assistant only allows a configurations via the UI, but it doesn’t seem to work. Do you or anyone else has a solution for this problem?

---

<div class="post-metadata">

**Author:** ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://community.hivemq.com/u/Diego)\
**Post date:** [March 17, 2025, 10:25am UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/4 "2025-03-17T10:25:38Z")

</div>

Hi @questenmark5555

Here’s the configuration I set up in my Home Assistant `configuration.yaml` file to successfully connect to HiveMQ Cloud.

```auto
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

mqtt:
  broker: TYPE_HIVEMQ_CLOUD_BROKER_URL
  port: 8883
  username: TYPE_USERNAME
  password: TYPE_PASSWORD
  certificate: /config/isrgrootx1.pem

```

Please note that manually configuring MQTT items in `configuration.yaml` is not deprecated in Home Assistant. However, if you prefer to configure MQTT settings via the Web UI, you must enable the “Advanced Broker Configuration Option” by turning on Home Assistant Advanced Mode in your user profile settings.

 ![2025-03-17 at 10.15.48@2x](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/e/e6e6aea6e58fba053d004f15c8dabd71c04ca5be.png)

Reference Documentation: [Manual configured MQTT items](https://www.home-assistant.io/integrations/mqtt#manual-configured-mqtt-items) and [Advanced broker configuration](https://www.home-assistant.io/integrations/mqtt#advanced-broker-configuration)

Kind regards,  
Diego from HiveMQ Team

---

<div class="post-metadata">

**Author:** ![Exiatron00](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@Exiatron00](https://community.hivemq.com/u/Exiatron00)\
**Post date:** [March 29, 2025, 3:56pm UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/5 "2025-03-29T15:56:47Z")

</div>

I Keep getting invalid config error saying all those parameters are invalid

---

<div class="post-metadata">

**Author:** ![AaronTLFranz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/aarontlfranz/32/638_2.png) [@AaronTLFranz](https://community.hivemq.com/u/AaronTLFranz)\
**Post date:** [April 4, 2025, 7:32pm UTC](https://community.hivemq.com/t/connnecting-hivemq-to-homeassistant-failing/3603/6 "2025-04-04T19:32:42Z")

</div>

Hello @Exiatron00 ,

Thank you for the follow-up!

In order to diagnose further, could you please provide the full error text, or a screen capture of the error you are seeing when attempting to utilizes these parameters?

Additionally, a capture of your configuration that is unsuccessful would be great as well to help us more directly diagnose!

Best,  
Aaron from the HiveMQ Team
