# \[App\]\[Pro\] MQTT Broker for Homey

**URL:** <https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [December 8, 2018, 7:18pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129 "2018-12-08T19:18:31Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![KeviinCosmos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/keviincosmos/32/87820_2.png) [@KeviinCosmos](https://community.homey.app/u/KeviinCosmos)\
**Post date:** [October 13, 2023, 3:03pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/85 "2023-10-13T15:03:58Z")

</div>

I got it up and running, but what i want is not possible im told 😕  
In HA i have my broker and Zigbee2MQTT, but it’s not possible with HOMEY…

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 13, 2023, 4:32pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/86 "2023-10-13T16:32:29Z")

</div>

It’s unclear what you want.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [October 14, 2023, 4:13am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/87 "2023-10-14T04:13:09Z")

</div>

> [@KeviinCosmos](#):
>
> In HA i have my broker and Zigbee2MQTT, but it’s not possible with HOMEY…

You would need [Zigbee2MQTT](https://www.zigbee2mqtt.io/) running somewhere outside Homey, maybe as a container on a Raspberry Pi. I have it running as container on my Synology NAS.

You can then use the [Zigbee2MQTT Homey App](https://homey.app/a/com.gruijter.zigbee2mqtt/) to map the devices from that to your Homey Pro.

Wouldn’t it be cool to run any container on your Homey Pro 😃

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 4:24pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/88 "2023-10-23T16:24:33Z")

</div>

Hello!  
I want to setup dashboard for my homey, via Home assistant.  
I’ve already done this in one place, where it works great. But if I’m going to do this again on another homey and another system, I can’t do it! Struggling to add MQTT to home assistant. What I can see the difference is that it says “broker not running” on this one which doesn’t work. What could I have done wrong?

 ![mqtt4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c7e418a351d1f6ff22259ee3dfa1364f3a50750e.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 4:29pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/89 "2023-10-23T16:29:56Z")

</div>

This might be an obvious question, but what happens when you press “Start Broker”?

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 4:31pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/90 "2023-10-23T16:31:05Z")

</div>

That’s a good question, haha. but nothing happens ☹

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 4:32pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/91 "2023-10-23T16:32:36Z")

</div>

And when you enable debug logging, does anything appear in the log?

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 4:38pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/92 "2023-10-23T16:38:16Z")

</div>

Yes. Here:

 ![mqtt6](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/4/54b5baff36c85a8b61e188f13280d6a367034351.jpeg)  
 ![mqtt5](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7ac30643bd419bb6880d4e8d14853198a095d322.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 4:42pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/93 "2023-10-23T16:42:25Z")

</div>

Sadly, it looks like the source code of the broker isn’t public (anymore), so difficult to say why this is happening. All I can suggest is remove the app then try to install it again.

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 4:44pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/94 "2023-10-23T16:44:41Z")

</div>

Strange! I have reinnstalled it 4 times now 😛  
In MQTT client this is the log:

Don’t know if this is related or not

 ![mqtt7](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c33e26b8b686483a2c014d60a3c47451a9a37db.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 4:50pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/95 "2023-10-23T16:50:07Z")

</div>

It’s not related to the broker not starting.

I “found” the source, I think the only reason why this may happen is if there’s something already active on port 1883. Have you tried changing the port to something else, like 1886?

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 5:02pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/96 "2023-10-23T17:02:27Z")

</div>

I now tried to change port to 1889 and 2001 but still get “broker is not running”

 ![mqtt8](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d82dad7f560834626d3bbcd7d29ab8803bec534c.jpeg)

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 5:09pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/97 "2023-10-23T17:09:23Z")

</div>

I now tried to uninstall again. Should it change to “broker is running” right away? Anyway, I get the same error in the log

 ![mqtt9](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/10e2e2e97a0fe033922e4100f59d1547e0356b80.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 5:14pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/98 "2023-10-23T17:14:18Z")

</div>

It looks like the persistence database (where the broker stores some of its data) is broken. Try removing the app, then installing it again (not just reinstalling: remove it first, then install it again).

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 5:21pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/99 "2023-10-23T17:21:32Z")

</div>

That’s what I did now. Removed it. Restarted homey. Reinstalled, exactly the same! Strange, because it’s up and running on my other homey.  
Can’t figure out what’s wrong

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 23, 2023, 5:22pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/100 "2023-10-23T17:22:36Z")

</div>

Very strange, I’m out of ideas for now ☹ (it also doesn’t help that the broker isn’t handling certain errors, so if there are any errors that are causing the broker to not be able to start they aren’t being logged)

---

<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:** [October 23, 2023, 5:27pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/101 "2023-10-23T17:27:27Z")

</div>

Instead of running MQTT Broker @ Homey, I run the Mosquitto Broker add-on @ Home Assistant and it works great.  
Here’s a how to I wrote, in Dutch for now:

> [@\[TUTORIAL\]\[PRO\] Home Assistant integreren met Homey Pro en v.v](https://community.homey.app/t/tutorial-pro-homey-koppelen-met-home-assistant/77587):
>
> → English version → [click me](https://community.homey.app/t/tutorial-pro-how-to-integrate-home-assistant-with-homey/92641) → Handleiding met voorbeelden om vanaf nul met HA te starten, met een voorbeeld zwave add-on → [klik hier](https://community.homey.app/t/honeywell-t6-pro-zwave-help/114693/5) Het is niet heel simpel om Home Assistant (oftewel HA) te koppelen met Homey Pro, als je er nieuw mee bent, vandaar deze uitgebreide Nederlandstalige handleiding. Hiermee gaat het lukken! (Dat hoop ik tenminste grin ) Ik ben vast nog iets vergeten, of er klopt iets niet: geef het gerust even aan. Geselecteerde apparaten van Homey zijn bij succesvol kop…

I translate easy with [deepl.com](http://deepl.com) or [translate.google.com](http://translate.google.com)  
I’ll try to add an English version of the tutorial in the near future.

---

<div class="post-metadata">

**Author:** ![Bjornar\_Gulhaugen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bjornar_gulhaugen/32/19794_2.png) [@Bjornar\_Gulhaugen](https://community.homey.app/u/Bjornar_Gulhaugen)\
**Post date:** [October 23, 2023, 5:35pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/102 "2023-10-23T17:35:59Z")

</div>

Shit! Ducth is so hard. Even with translate 😛  
But I’ll try to see what I can do. An English version is greatly appreciated 😃

---

<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:** [October 23, 2023, 9:01pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/104 "2023-10-23T21:01:50Z")

</div>

In English 🤪 : [[TUTORIAL][PRO] How to integrate Home Assistant with Homey](https://community.homey.app/t/tutorial-pro-how-to-integrate-home-assistant-with-homey/92641)

---

<div class="post-metadata">

**Author:** ![Ludvig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ludvig/32/129091_2.png) [@Ludvig](https://community.homey.app/u/Ludvig)\
**Post date:** [January 16, 2024, 7:37am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/105 "2024-01-16T07:37:03Z")

</div>

There is nobody around that has access to the source code of this project? I really would like to add the web socket possibility or play around with that at least. But his other projects are live on github but this is not. would be great if we could work on this as well. Dont wanna start from scratch but If its not working I guess I have to ☹

[Previous page](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129.md?page=4)

[Next page](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129.md?page=6)
