# MQTT op HA Failed to Connect with homey

**URL:** <https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049>\
**Category:** Questions & Help\
**Created:** [August 7, 2022, 7:14pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049 "2022-08-07T19:14:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franky\_d](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franky_d/32/13510_2.png) [@Franky\_d](https://community.homey.app/u/Franky_d)\
**Post date:** [August 7, 2022, 7:14pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/1 "2022-08-07T19:14:08Z")

</div>

Hi All,

To create a dashboard i’ve set up an Raspberry PI 4 with Home assistant OS, with lan connected to the router. Installed MQTT Client, Broker and Hub apps on homey. Watched all movies from HomeyCornelisse on youtube (what a guy and excellent tutorials), but i get stuck trying to connect HA MQTT with homey. after setting homey’s ip i found in the Unifi app, username and password all i get is ‘failed to connect’

what am i doing wrong?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 7, 2022, 9:05pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/2 "2022-08-07T21:05:08Z")

</div>

Maybe this is of any help

> [@\[TUTORIAL\] Setting up MQTT on Homey for configuring Home Assistant for dashboard purposes](https://community.homey.app/t/tutorial-setting-up-mqtt-on-homey-for-configuring-home-assistant-for-dashboard-purposes/10880):
>
> Hi, i would like to share instructions of how to setup MQTT on Homey to make your devices visible in Home Assistant with a Synology NAS. Thanks a lot to @HarriedeGroot for creating the MQTT Hub, @scanno for the MQTT Client (and Broker, which unfortunately will not be included in this tutorial since my setup is on a Synology NAS with Mosquitto as a broker) and @Gustav_Tillback for initially sharing the first steps in creating this setup which will be explained in further detail below DISCLAIMER\*…

---

<div class="post-metadata">

**Author:** ![Franky\_d](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franky_d/32/13510_2.png) [@Franky\_d](https://community.homey.app/u/Franky_d)\
**Post date:** [August 7, 2022, 9:15pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/3 "2022-08-07T21:15:06Z")

</div>

Thanks for the reply! Unfortunately, in that topic the mqtt broker is a separate docker on a nas and not an add on in HA.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 7, 2022, 9:32pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/4 "2022-08-07T21:32:42Z")

</div>

I know, but connection and authentication is general stuff?

> [@Franky\_d](#):
>
> excellent tutorials

Probably not 🤦‍♂️ hehe.

So you use mqtt broker on HA?  
Same here.

- Do you have mqtt hub and mqtt client apps installed on Homey?
- I use a unique created login (for mqtt only)
- I didn’t need Homey’s IP address, so I don’t know what Cornelisse told you?

- HA mqtt broker setting:  

- Homey mqtt client:  

- HA mqtt integration (I used the local HA IP address, 127.0.0.1 should work also)

---

<div class="post-metadata">

**Author:** ![Franky\_d](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franky_d/32/13510_2.png) [@Franky\_d](https://community.homey.app/u/Franky_d)\
**Post date:** [August 8, 2022, 6:34pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/5 "2022-08-08T18:34:55Z")

</div>

Hi Peter,

Thanks again for the help. I couldnt find mosquitto broker as add on on HA, i have a broker app installed on homey, as well as mqtt client and mqtt hub. So i need to add homey’s ip in the mqtt app on HA, that’s where i get stuck. The tutorials and video’s can be found on homeycornellise.nl

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [August 8, 2022, 7:58pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/6 "2022-08-08T19:58:08Z")

</div>

The broker for HA can be found in the addon section of HA:  
[http://192.168.1.200:8123/hassio/addon/core\_mosquitto/info](http://192.168.1.200:8123/hassio/addon/core_mosquitto/info)  
change the IP to your local HA IP!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 9, 2022, 12:57am UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/7 "2022-08-09T00:57:06Z")

</div>

> [@Franky\_d](#):
>
> couldnt find mosquitto broker as add on on HA

Go to Settings \> Addons  
Scroll down  
Hit the blue “Addon store” button, and enter ‘mosquitto’ in the search bar.

---

<div class="post-metadata">

**Author:** ![Franky\_d](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/franky_d/32/13510_2.png) [@Franky\_d](https://community.homey.app/u/Franky_d)\
**Post date:** [August 9, 2022, 7:22pm UTC](https://community.homey.app/t/mqtt-op-ha-failed-to-connect-with-homey/67049/8 "2022-08-09T19:22:21Z")

</div>

Thanks Peter, this worked!! all devices are shown in HA! One step closer in creating my HA Dashboard with homey, big happy here 😃
