# \[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:** 2

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [March 20, 2022, 5:13pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/21 "2022-03-20T17:13:27Z")

</div>

In what way handle retained topics? You mean retained messages persisting after restart of the broker?

I am experimenting with the Aedes persistance possibilities. The only possibility is the use of the NeDB persistance as that is a nodejs implementation of a subset of the MongoDB API.

Looking at the files that this persistance framework is storing in /userdata, retained topics should be supported:  
mqtt.incoming.db  
mqtt.outgoing.db  
mqtt.retained.db  
mqtt.subscriptions.db  
mqtt.wills.db

But how this actually works in real life, I do not know.

However NeDB is not being maintained anymore 😕

---

<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:** [March 20, 2022, 6:32pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/22 "2022-03-20T18:32:55Z")

</div>

From what I can see, the only other local persistence layer is [based on LevelDB](https://github.com/moscajs/aedes-persistence-level), which is going to be a pain to maintain because it requires compiled modules.

FWIW, there’s an [NeDB fork](https://github.com/seald/nedb) which looks like it’s still being maintained.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [March 20, 2022, 7:33pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/23 "2022-03-20T19:33:43Z")

</div>

Well NeDB is a dependency from aedes-persistence-nedb. If using a fork, aedes-persistence-nedb would need to changed too.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [March 21, 2022, 1:11pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/24 "2022-03-21T13:11:00Z")

</div>

Lol, review of the fix for 7.4.0 RC’s got rejected:

— The app image is not up to our standars, the image depicts a black shape on a white background. Read our App Store guidelines section 1.4.2 App images for more information and examples.

> **[Guidelines](https://apps.developer.homey.app/app-store/guidelines#1.4.-images)**
>
> Before publishing your app your should read the Homey App Store guidelines to avoid getting your app submission rejected.

Anyone feels like creating something that would pass this check? It was OK for the last 4 years…

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [March 21, 2022, 2:01pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/25 "2022-03-21T14:01:49Z")

</div>

You can publish the app in the Community Store!

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [March 22, 2022, 6:20am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/26 "2022-03-22T06:20:00Z")

</div>

Hi, I got such comments, too (no dark image background, device images too identical…). But with passing the app. There seems to be somone new who would like to make his reviewer job as best as possible 😄

You can send me the images as PM and I will take a look at it.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [March 22, 2022, 11:48am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/27 "2022-03-22T11:48:00Z")

</div>

Let Athom create the icons itself, but you have to have an image template.

> **[GitHub - athombv/homey-vectors-public: Developers can request vector icons...](https://github.com/athombv/homey-vectors-public)**
>
> Developers can request vector icons for an Homey App here - GitHub - athombv/homey-vectors-public: Developers can request vector icons for an Homey App here

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [May 11, 2022, 6:06am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/28 "2022-05-11T06:06:31Z")

</div>

@scanno since the latest Homey update the broker app seems to fail to start. Not quite sure what this could be?

Ive sent diagnostics in private message.

---

<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:** [May 11, 2022, 6:12am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/29 "2022-05-11T06:12:54Z")

</div>

You need to install the current test version of the app: [MQTT Broker | Homey](https://homey.app/a/nl.scanno.mqttbroker/test/)

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 11, 2022, 6:28am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/30 "2022-05-11T06:28:44Z")

</div>

Like @robertklep said. Install the test version. Athom rejected this version due to changes in their store policy regarding the use of app bitmaps.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [May 11, 2022, 7:11am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/31 "2022-05-11T07:11:27Z")

</div>

> [@scanno](#):
>
> Athom rejected this version due to changes in their store policy regarding the use of app bitmaps.

What’s the exact reason? Only the mosquitto icon like image?  
If there should be a nice colored image, I can perhaps create one.  
But it’s hard to go with the Athom policy for “virtual” devices if you can’t make a photo from 🙂

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 11, 2022, 7:30am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/32 "2022-05-11T07:30:04Z")

</div>

Meh, let Athom solve the problem.

> <https://github.com/athombv/homey-vectors-public/issues/141>
>
> Hi,
> 
> Since Athom rejected an update of the mqtt broker app due to the icons no…t being occording yo updated store policy, I would like to ask you to create icons for me. Especially now that with the new firmware update the broker does not start anymore and the fixed version is in test for a long time now.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 11, 2022, 8:02am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/33 "2022-05-11T08:02:41Z")

</div>

Usually they create icon very fast, as far as I have seen…

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [May 11, 2022, 12:36pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/34 "2022-05-11T12:36:35Z")

</div>

If you have photos for your devices, send them to [Athom](https://github.com/athombv/homey-vectors-public) and they create policy correct icons very quick.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 11, 2022, 1:08pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/35 "2022-05-11T13:08:34Z")

</div>

Ivo responded on the github issue that he is going to create the icons as soon as possible. Right now if you really need the broker app, you can do two things:

1. Do not update the firmware 🙂
2. Install the 1.0.6 test version from the store that solves the problem, but got rejected for publishing due to the icon problem.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 11, 2022, 1:21pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/36 "2022-05-11T13:21:11Z")

</div>

When 1.0.6 with is published, I will publish a new test version (2.0.0) that replaces the current broker library with aedes and that also adds persistence as soon as I adjusted the internal settings logic to the new library (currently running on my homey for a while with static settings).

I could use some people testing this.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 12, 2022, 8:46am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/37 "2022-05-12T08:46:19Z")

</div>

I have uploaded 2.0.0 to test and submitted for certification. I have been running this for weeks on my homey and seems stable for me so far. This includes Aedes as broker library and NeDB for persistence. I have not tested persistence. So if someone would like to report their findings if the use of NeDB solves any persistence problems, let me know 🙂

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 12, 2022, 11:26am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/38 "2022-05-12T11:26:34Z")

</div>

2.0.0 approved and published.

---

<div class="post-metadata">

**Author:** ![JeeS](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jees/32/1015_2.png) [@JeeS](https://community.homey.app/u/JeeS)\
**Post date:** [May 12, 2022, 5:10pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/39 "2022-05-12T17:10:08Z")

</div>

MQTT broker stopped working since 1.0.6 and also 2.0.0 does not work  
The broker not started at all. I rebooted Homey and also did a PTP reboot.  
Deinstalled the app and installed again without any change in de behavior.  
Please help.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [May 12, 2022, 6:05pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/40 "2022-05-12T18:05:00Z")

</div>

Nobody can help you if you do not have a log or a stacktrace.

All I can see is that there are a lot of errors due to port 1883 already being used.

But that is weird because I check if the port for MQTT and MQTTS are different, so it cannot be a config problem.

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

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