# MQTT Hub/Gateway

**URL:** <https://community.homey.app/t/mqtt-hub-gateway/6766>\
**Category:** Apps\
**Created:** [January 14, 2019, 6:59pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766 "2019-01-14T18:59:50Z")\
**Posts on this page:** 20\
**Page:** 52

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 27, 2021, 3:41pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1031 "2021-05-27T15:41:18Z")

</div>

No problem, @HarriedeGroot. It’s no summer yet (here in The Netherlands)… 😉  
Is it somewhere on the roadmap though?

---

<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:** [May 27, 2021, 10:25pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1032 "2021-05-27T22:25:54Z")

</div>

Sure

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [May 28, 2021, 6:29am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1033 "2021-05-28T06:29:33Z")

</div>

Great, thx already @HarriedeGroot!

---

<div class="post-metadata">

**Author:** ![AdrianLiteAuto](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrianliteauto/32/8740_2.png) [@AdrianLiteAuto](https://community.homey.app/u/AdrianLiteAuto)\
**Post date:** [June 4, 2021, 8:05am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1034 "2021-06-04T08:05:23Z")

</div>

Hi, has anyone used this in conjunction with another homey to basically link 2 homeys together?  
The reason I ask, is I want to use 2 separate homeys in a home, and link them over IP, or in this case mqtt.

---

<div class="post-metadata">

**Author:** ![Klim](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/klim/32/26121_2.png) [@Klim](https://community.homey.app/u/Klim)\
**Post date:** [July 3, 2021, 12:48pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1035 "2021-07-03T12:48:06Z")

</div>

Hi,  
For some reason Home Assistant Discovery function doesn’t work for me.  
I have only one motion sensor. I was able to add it manualy, but not using Discovery function. Please help.

![Screenshot_1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a03546b36cef692e9b32f3bdbe7e8c9f7285d3e.png)

 ![photo_2021-07-03_15-46-26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11da590501df51d037e2601c70180493d5bd8ae2.jpeg) ![photo_2021-07-03_15-46-30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fd40ec0de998775f8b1520085491766547301130.jpeg)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Draper](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonathan_draper/32/33978_2.png) [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Post date:** [July 4, 2021, 10:35am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1036 "2021-07-04T10:35:25Z")

</div>

Hi. Recently new to Homey and MQTT. Thank you to Harrie and all for your work on this app.

I have MQTT Hub, client and broker apps running on Homey connected to OpenHAB running on a Mac, all connected up and largely working in both directions. The one issue I have is with all Light type devices, these don’t work properly in OpenHAB. The devices are discovered properly by OpenHAB during the discovery process and are showing as online, but the only ‘channel’ that shows up for them is a color channel - even for devices that don’t actually support color change. No other channels showing up.

In MQTT Explorer, when I control the device in Homey I can see changes being broadcast correctly.

Are there any other OpenHAB and Homey gurus out there who could point me in the right direction on this?

 ![Screenshot 2021-07-04 at 11.32.29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aaebd81e71a8f622c9cc3378906559aa927b0dfc.png)  
 ![Screenshot 2021-07-04 at 11.34.29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6c4deb5bf24415e326c2e099dd2c0fc23dc7874f.png)

---

<div class="post-metadata">

**Author:** ![Klim](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/klim/32/26121_2.png) [@Klim](https://community.homey.app/u/Klim)\
**Post date:** [July 6, 2021, 9:55pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1037 "2021-07-06T21:55:40Z")

</div>

Thank for you the app! It’s huge! I added a lot of MQTT Devices to Homey.  
I noticed, there is a 1-2 seconds delay before app post value to mqtt server. So it’s very uncomfortable to use this to turn on light on movement detection.  
Please check attached video:

> **[IMG\_0717.MOV (video)](https://drive.google.com/file/d/1zTiGoK4uJAfV-O1FDzt3el8GmrxJ_6jI/view?usp=sharing)**
>
> Google Drive file.

1. I turn on/off light using MQTT Device added in MQTT Hub/Gateway. You can see huge delay.
2. I’m sending the same mqtt value directly using MQTT client and it’s works very fast (2-3x faster).

I tested this light with Tasmota MQTT app and it’s works very fast as well.

---

<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:** [July 19, 2021, 7:30pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1038 "2021-07-19T19:30:05Z")

</div>

Hi Menno,

Is there anyting to do about the RAM usage of this cool app?  
Is this to be expected, 39.5 MB’s?

 ![Screenshot_20210719-120845_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8e5c3cf271c48bf6653120d88a904039f5df2bb6.jpeg)

---

<div class="post-metadata">

**Author:** ![PascalB](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@PascalB](https://community.homey.app/u/PascalB)\
**Post date:** [July 20, 2021, 5:32pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1039 "2021-07-20T17:32:28Z")

</div>

I’m around 35mb, so yeah. Your “Homey” has a lot more than mine. Have you restarted / PtP Homey recently?

---

<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:** [July 20, 2021, 6:37pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1040 "2021-07-20T18:37:24Z")

</div>

Ok thanks. Maybe I’ll install the HA mqtt broker as an alternative.  
About Homey’s memory usage, I discovered recently it varies 50 to 100 MB’s.  
A restart reduces my Homey’s memory use to around 130MB’s, but it only restarts after a FW update.

I just found out Homey uses more memory than it has on board 😳👌

 ![Screenshot_20210720-203126_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8449a22c8e45a13cde6c89573ad0ac2b196a234c.jpeg)

---

<div class="post-metadata">

**Author:** ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)\
**Post date:** [July 20, 2021, 8:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1041 "2021-07-20T20:31:38Z")

</div>

> [@Peter\_Kawa](#):
>
> Is this to be expected, 39.5 MB’s

That’s the MQTT hub app not the MQTT broker - so moving to the HA broker won’t help except by removing the app from Homey. It’s a good idea though as the MQTT broker on Homey doesn’t support retained topics.

---

<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:** [July 20, 2021, 8:40pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1042 "2021-07-20T20:40:40Z")

</div>

Owh I mixed things up! It comes for free when ageing🤪

---

<div class="post-metadata">

**Author:** ![Kosta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kosta/32/17167_2.png) [@Kosta](https://community.homey.app/u/Kosta)\
**Post date:** [August 2, 2021, 9:14pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1043 "2021-08-02T21:14:38Z")

</div>

Hello, first of all I want to thank you for the great work! I’ve been working with the app for two days and it’s great. However, I have a few problems… it has worked for me so far that I have implemented my devices from Homey in ioBroker. I can currently track the current status of devices live, but I can’t manage to control the devices in ioBroker (e.g. turn on/off the lamp). Are there any extra commands / topics with which it is possible? Or how does it work?

I use Homey Pro v. 7.1.1  
ioBroker with mosquitto v. 1.5.7  
MQTT Explorer  
My modules are - Shelly, Fibaro

I thank you in advance for the support!

---

<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 2, 2021, 9:43pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1044 "2021-08-02T21:43:50Z")

</div>

Did you install Mqtt client? (And mqtt broker if neccessary).

---

<div class="post-metadata">

**Author:** ![Kosta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kosta/32/17167_2.png) [@Kosta](https://community.homey.app/u/Kosta)\
**Post date:** [August 3, 2021, 3:37am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1045 "2021-08-03T03:37:15Z")

</div>

Yes. I have installed the MQTT client from the store of Homey and on the raspberryPi runs mosquitto as mqtt Broker

---

<div class="post-metadata">

**Author:** ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)\
**Post date:** [August 3, 2021, 4:37am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1046 "2021-08-03T04:37:13Z")

</div>

The command topic back to Homey is the status topic with a suffix of `/set` appended - is that where iobroker is sending it’s commands too ?

---

<div class="post-metadata">

**Author:** ![Kosta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kosta/32/17167_2.png) [@Kosta](https://community.homey.app/u/Kosta)\
**Post date:** [August 3, 2021, 4:33pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1047 "2021-08-03T16:33:20Z")

</div>

Ooo…thank you so much to you. It worked!!! I have already searched for 2 days whole internet… until now in vain.  
You have helped me very much, once again thank you very much!

---

<div class="post-metadata">

**Author:** ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)\
**Post date:** [August 3, 2021, 11:43pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1048 "2021-08-03T23:43:51Z")

</div>

Great, the MQTT topic spec conforms to homie 3.0 (maybe homie 4.0) and more details are available here…

[https://homieiot.github.io/](https://homieiot.github.io/)

You peaked my interest in iobroker and I have just installed it to see what it’s all about  
Got the MQTT client/broker adapter installed and connecting - just got to work out how to create a linked device now…

---

<div class="post-metadata">

**Author:** ![Kosta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kosta/32/17167_2.png) [@Kosta](https://community.homey.app/u/Kosta)\
**Post date:** [August 4, 2021, 8:45pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1049 "2021-08-04T20:45:16Z")

</div>

I proceeded like this:

1. install Mosquitto on the RaspberryPi (this is then the MQTT broker).
2. install adapter "MQTT Broker/Client and set it up as client/subscriber.
3. install MQTT Client on the Homey.
4. install MQTT Hub on the Homey

Not everything worked for me the first time but finally it works now… of course also thanks to your help ))

If you need more information, feel free to write - I can write everything down again in detail.

P.S.: I used ioBroker for the visualization and I am very happy with the result.

---

<div class="post-metadata">

**Author:** ![xAPPO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xappo/32/13726_2.png) [@xAPPO](https://community.homey.app/u/xAPPO)\
**Post date:** [August 5, 2021, 5:49pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1050 "2021-08-05T17:49:53Z")

</div>

I am really impressed by iobroker in the brief look I have had so far, easy to uild a UI for Homey although the sparsity of English information is limiting.

The particular aspect of your original problem - the inclusion of the` .../`set suffix, is fixed by the MQTT config but I haven’t yet found out how to create separate custom command topics in iobroker e.g. if the topic needs to end in `.../cmd` nor have I got the payload customisation for `on|off` working - at the moment it sends `1|0`

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/9848c5f951b9cb1886bfebf86a0259be7741eec0.png)

[Previous page](https://community.homey.app/t/mqtt-hub-gateway/6766.md?page=51)

[Next page](https://community.homey.app/t/mqtt-hub-gateway/6766.md?page=53)
