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

<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, 6:45pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/41 "2022-05-12T18:45:53Z")

</div>

Diagnose report created under: b2e62fac-78bd-4121-aaba-4d42e02e1e84.  
Can you please have a look.  
Thanks in advance.

---

<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:** [August 23, 2022, 2:03pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/44 "2022-08-23T14:03:37Z")

</div>

Hope you flagged it as such (I did too).

---

<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:** [September 21, 2022, 6:55am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/46 "2022-09-21T06:55:44Z")

</div>

Great with the update. I wrote a wile back ago if you have the websocket on this app? Both for ws and wss? Im building a dashboard for Homey and with this app it could mean that “normal” people can use it as well. Looks like your source code is not public. Thats another way if you want me to help out with this I can look into it my self. Hope this is solveable.

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [December 12, 2022, 10:45am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/47 "2022-12-12T10:45:01Z")

</div>

@scanno after the update to 3.0.0 the broker stoped working. after restarting the app it keeps crashing.

---

<div class="post-metadata">

**Author:** ![PJ-AU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pj-au/32/17303_2.png) [@PJ-AU](https://community.homey.app/u/PJ-AU)\
**Post date:** [December 12, 2022, 10:46am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/48 "2022-12-12T10:46:13Z")

</div>

I have the same problem. It has been rock solid under v2.0. Any idea of a workaround or fix planned?

---

<div class="post-metadata">

**Author:** ![Yov](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yov/32/33840_2.png) [@Yov](https://community.homey.app/u/Yov)\
**Post date:** [December 12, 2022, 10:46am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/49 "2022-12-12T10:46:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7aadb9a168d1716009219240278d24a86a20714f.jpeg)

---

<div class="post-metadata">

**Author:** ![feRon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/feron/32/34515_2.png) [@feRon](https://community.homey.app/u/feRon)\
**Post date:** [December 12, 2022, 10:57am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/50 "2022-12-12T10:57:17Z")

</div>

I have the same problem. After the update the app crashing.

---

<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:** [December 12, 2022, 12:10pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/51 "2022-12-12T12:10:57Z")

</div>

Problem should be resolved in version 3.0.1

---

<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:** [December 12, 2022, 1:17pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/52 "2022-12-12T13:17:34Z")

</div>

Version 2.0.0 is still using sdk2 that will be depricated soon and also uses an old depricated library for the implementation of the mqtt broker.

3.0.1 is really necessary, otherwise it will stop working somewhere next year.

---

<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:** [December 12, 2022, 1:18pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/53 "2022-12-12T13:18:30Z")

</div>

Does version 3.0.1 solve your problem?

---

<div class="post-metadata">

**Author:** ![Henrik\_Johnsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_johnsson/32/13707_2.png) [@Henrik\_Johnsson](https://community.homey.app/u/Henrik_Johnsson)\
**Post date:** [December 12, 2022, 1:21pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/54 "2022-12-12T13:21:49Z")

</div>

It works here at least. Updated automatically from 3.0.0 and all data is updating as expected.

---

<div class="post-metadata">

**Author:** ![PJ-AU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pj-au/32/17303_2.png) [@PJ-AU](https://community.homey.app/u/PJ-AU)\
**Post date:** [December 13, 2022, 12:42pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/55 "2022-12-13T12:42:15Z")

</div>

Yes, all resolved. Thanks so much for rapid fix.

---

<div class="post-metadata">

**Author:** ![Jan\_Carpentier](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_carpentier/32/58621_2.png) [@Jan\_Carpentier](https://community.homey.app/u/Jan_Carpentier)\
**Post date:** [December 13, 2022, 5:20pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/56 "2022-12-13T17:20:17Z")

</div>

hi @scanno  
my broker was updated to V3.01 but since i get an error when it starts up (broker will not start)  
the error states : “no such file or directory : /userdata/broker-users.json”  
i was running the broker without user logins.

---

<div class="post-metadata">

**Author:** ![Aldo\_Tromp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aldo_tromp/32/10633_2.png) [@Aldo\_Tromp](https://community.homey.app/u/Aldo_Tromp)\
**Post date:** [December 22, 2022, 10:09pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/57 "2022-12-22T22:09:56Z")

</div>

Best …

I have a problem with mqtt broker version 3.0.1  
If my homey restarts, this app has lost the user login details and password and will therefore not start communicating  
I have a Homey Pro / 2019  
after entering the data, the app works again.  
Please your advice

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [January 1, 2023, 5:14pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/58 "2023-01-01T17:14:29Z")

</div>

Mqtt is totally new for me. Installed the broker, configured it. Started the broker, packages are published.

I use a smartgateways smart meter. Entered the Mqtt details.

Installed mqtt explorer and are able to see the incoming data.

So far so good. But I have no idea how i get these data in the broker, or how i can use these data. What do I have to do to get the data in Homey?

---

<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:** [January 1, 2023, 6:36pm UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/59 "2023-01-01T18:36:42Z")

</div>

If you can see the data with the MqttExplorer, the topics should be available in the broker.  
Install the Mqtt Client app in Homey and connect to your broker.  
Then create a flow with the trigger of the Mqtt Client app and enter the topic you want to read (single value. no path).  
This way you can read values triggered by a value change and store the data in logic variables or in virtuel devices.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [January 2, 2023, 11:13am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/60 "2023-01-02T11:13:15Z")

</div>

These are the settings for the client

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/7/b7976d3f644c66ffa7c520ed781edc7f63d4a9c4.jpeg)

I get these messages

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c558c4625512e4f30c2485339534746267642286.jpeg)

Made this flow to set the value on a virtual device

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d1a0210f90c23bc2fbc5b357e769c8870eaf9e90.jpeg)

But it seems i am missing something

---

<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:** [January 2, 2023, 11:23am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/61 "2023-01-02T11:23:45Z")

</div>

Hi Marcel, almost there I think! There’s a value reported in the logs, that part seems to work.

At ‘Set a virtual sensor value’ you should enter the capability yourself, like `meter_water` (do not use the blue tag).  
You don’t see a timeline message, while the sensor card errors, and stops the flow. Connect the timeline card to the output of the mqtt client trigger card.

Use the error line as well, so you can see a bit more of what is (not) happening.  
Something like:

 ![Screenshot from 2023-01-02 12-36-57](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/264a1d8c20fdba27ce827bf9ec027c8cfe271f63.png)

Here you’l find all Homey capabilities you can use in the virtual sensor cards:

> **[Tutorial: Device Capabilities - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/tutorial-device-capabilities.html)**

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [January 2, 2023, 11:49am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/62 "2023-01-02T11:49:37Z")

</div>

Great, this was what i was missing. It’s so simple when you know it😁

---

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [January 2, 2023, 11:51am UTC](https://community.homey.app/t/app-pro-mqtt-broker-for-homey/5129/63 "2023-01-02T11:51:33Z")

</div>

Another option is to use an “MQTT device” from the MQTT Hub app. This device is specifically build for this purpose and handles all the topic registrations for you (no flow needed).

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

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