# 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:** 33

<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:** [September 6, 2019, 6:32am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/648 "2019-09-06T06:32:51Z")

</div>

@jolerius The hub will start a broadcast when a birth message is received.

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 6, 2019, 7:01am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/649 "2019-09-06T07:01:25Z")

</div>

@HarriedeGroot  
Isnt the birth message only sent when hass goes online/offline? So if it’s stable the devices could still get out of sync? Or am i thinking this wrong?

What about my other question that a qubino dimmer doesnt show up as Light nor switch in hass?

---

<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:** [September 6, 2019, 7:19am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/650 "2019-09-06T07:19:27Z")

</div>

You’re correct, but you could use this feature (e.g. by using a MQTT Client flow card) to just send a birth message to trigger the broadcast. Shouldn’t be necessary though.

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 9, 2019, 4:58pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/651 "2019-09-09T16:58:16Z")

</div>

Suddenly it stopped working. I havent changed anything and now i can’t control it through hass any more. Nothing happens, and nothing in hass is update when changing State in homey.

I tried rebooting booth homey and hass

---

<div class="post-metadata">

**Author:** ![Patrick\_Janson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_janson/32/1775_2.png) [@Patrick\_Janson](https://community.homey.app/u/Patrick_Janson)\
**Post date:** [September 9, 2019, 5:36pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/652 "2019-09-09T17:36:03Z")

</div>

How exactly do you send the birth message with the Client flow card?

---

<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:** [September 9, 2019, 9:26pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/653 "2019-09-09T21:26:27Z")

</div>

Using default settings with Hass discovery enabled: send payload “online” to topic “hass/status”.

---

<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:** [September 9, 2019, 11:34pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/654 "2019-09-09T23:34:24Z")

</div>

> [@jolerius](#):
>
> Suddenly it stopped working.

What changed ? This is unusual. If it was a cloud integration than maybe. Did you upgrade anything ?

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 10, 2019, 4:47am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/655 "2019-09-10T04:47:28Z")

</div>

No, i can’t recall changing anything… This is really weird. I hav tried restarting homey, hass and the pi with the mqtt server to. But still no sync

---

<div class="post-metadata">

**Author:** ![djesko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/djesko/32/7611_2.png) [@djesko](https://community.homey.app/u/djesko)\
**Post date:** [September 10, 2019, 6:52am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/656 "2019-09-10T06:52:12Z")

</div>

restarting the MQTT Client and HUB did fix it for me , did see status changes but did not work from HASS

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 10, 2019, 12:44pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/657 "2019-09-10T12:44:58Z")

</div>

that did it for me too… strange behavior i think

---

<div class="post-metadata">

**Author:** ![Thomaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomaz/32/10168_2.png) [@Thomaz](https://community.homey.app/u/Thomaz)\
**Post date:** [September 10, 2019, 2:34pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/658 "2019-09-10T14:34:28Z")

</div>

I say it again - this is an amazing app to Homey!

I too experience that the app stops working every now and then. (I also experience the Homey not online-issue, I should say). I have narrowed it down to be either the MQTT client app of Homey or the MQTT Hub app of Homey. Home Assistant is always sending correctly to the MQTT bus.  
Sometimes it only works one way - I update a light in Homey and it reflects in HA. But if I change state in HA, it does not change/reflect in Homey. Even thought the MQTT Explorer shows that the message is indeed sent.  
Also it is not always that the HA restart with the birth/last-will message triggers a Broadcast.

I currently suspect that my Homey is a bit overloaded with apps and flows, causing a congestion either in Homey itself or in the apps. I have started some housekeeping to clear out some old stuff to see if it works better. My Homey is also one of the firsts.

---

<div class="post-metadata">

**Author:** ![Patrick\_Janson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrick_janson/32/1775_2.png) [@Patrick\_Janson](https://community.homey.app/u/Patrick_Janson)\
**Post date:** [September 10, 2019, 4:54pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/659 "2019-09-10T16:54:35Z")

</div>

Thank you. But it doesn’t seem to work for me…  
Tried multiple different topics, but cant get hass to update the status (like the “Broadcast” button)

---

<div class="post-metadata">

**Author:** ![Markus\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_f/32/14910_2.png) [@Markus\_F](https://community.homey.app/u/Markus_F)\
**Post date:** [September 10, 2019, 7:37pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/660 "2019-09-10T19:37:42Z")

</div>

Hi… I am a MQTT beginner and I have a Problem to add a device to Homey.

My config:  
-Mqtt Broker on a raspberry pi (mosquitto)  
-Mqtt client on homey (works) (can send set strings via flow)  
-Mqtt hub on homey (don’t know if it is configured correct for my setting)  
-device integrated in FHEM  
-mqtt device Bridge in FHEM is configured

If I set the window covering as device in Homey and set the state and set strings, it don’t work. Any time it goes 1 time in one direction (closed or opened) via an dimmer. I can’t Change the device settings too… A 30000ms error message appears.

Do anyone have a tip for me what I do wrong?

---

<div class="post-metadata">

**Author:** ![jolerius](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolerius/32/7907_2.png) [@jolerius](https://community.homey.app/u/jolerius)\
**Post date:** [September 11, 2019, 7:34pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/661 "2019-09-11T19:34:23Z")

</div>

I am expering the same problem again. Hass stops sync the devices. This short Joy lasted for about a day, then it stopped working again.

Anyone got a clue why and what causing this?

---

<div class="post-metadata">

**Author:** ![Kristian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kristian/32/12549_2.png) [@Kristian](https://community.homey.app/u/Kristian)\
**Post date:** [September 16, 2019, 8:54pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/662 "2019-09-16T20:54:07Z")

</div>

Had this working smooth for a while. Still syncs with Hass, but cannot change state of anything from Hass dashboard. When looking at it with mqtt explorer, for instance an off/off:

- Homey seems to send a msg to the device/onoff topic
- Hass seems to send the msg to device/onoff/set topic

Last one seems to what is mentioned in the homie standard. But its not picked up by homey. And hass then reverts back to the old value from the device/onoff topic

---

<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:** [September 16, 2019, 10:25pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/663 "2019-09-16T22:25:37Z")

</div>

The messages are going to the correct topics. It’s the MQTT app on Homey that should ‘hear’ the cmd on the …/onoff/set topic and change state of the device reporting the result back on …/onoff topic.

Both are populating the payload with a true/false payload are they ?

Could you post a copy of the HA MQTT discovery message that Homey sends for an onoff device.

---

<div class="post-metadata">

**Author:** ![Kristian](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kristian/32/12549_2.png) [@Kristian](https://community.homey.app/u/Kristian)\
**Post date:** [September 18, 2019, 5:13pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/664 "2019-09-18T17:13:49Z")

</div>

Homey seems to set the onoff topic directly, HA updates the /set subtopic and expects the onoff status changes. When it doesn’t, it reverts the status of the device in HA (as seen in ui).  
Not sure exactly what discovery message you mean? Not that familiar with it yet

---

<div class="post-metadata">

**Author:** ![Tom\_Blank](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_blank/32/12693_2.png) [@Tom\_Blank](https://community.homey.app/u/Tom_Blank)\
**Post date:** [September 23, 2019, 1:59pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/665 "2019-09-23T13:59:01Z")

</div>

Hello,

I am trying to get the mqtt hub to communicate with a synology NAS runnin openhab 2.4 but i am getting constant communication errors (null pointer exception) when trying to add the homey to the paperUI.

When i do the same thing on my compter, running openhab 2.5m3 all works fine and i can control all my devices.  
I don’t know this is the right place to ask, but anybody else ran into this and fixed it?  
I don’t want to leave my pc running just to serve the dashboard.

kind regards,

---

<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:** [September 23, 2019, 2:37pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/666 "2019-09-23T14:37:38Z")

</div>

There were a lot of MQTT/homie changes in OH 2.5M1 and again in M3 - I wouldn’t try using OH2.4 with the homie spec. It has a lot of bugs and even the core MQTT component is flawed. 2.5M3 is the way to go although I’m not sure quite how complete the homie implementation is even then. Obviously you’ve got to decide if that’s approriate on the NAS

PS I’m not an OH user but have read a lot of posts about this, and in limited testing with Homey (and Hubitat Elevation) using homie v3 on OH 2.4 and then on 2.5M1 the latter was significantly better.

---

<div class="post-metadata">

**Author:** ![Tom\_Blank](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_blank/32/12693_2.png) [@Tom\_Blank](https://community.homey.app/u/Tom_Blank)\
**Post date:** [September 30, 2019, 12:26pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/667 "2019-09-30T12:26:38Z")

</div>

i figured it out, had to reinstall the OH. MQTT connector to get things going.  
I noticed the OH server didn’t connect to the homey properly, didn’t saw anything in the MQTT explorer.  
After reinstall, all devices and statuses came in properly

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

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