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

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [March 12, 2023, 7:23pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1174 "2023-03-12T19:23:00Z")

</div>

Hi!  
I’m considering creating a Lovelace dashboard for my Homey.  
Is MQTT Hub a necessity, or a “nice to have”?  
What would be the alternative for getting a device on a dashboard?

I’m mostly interested in door/window status (Aqara) and thermostats/lights etc. It’s not critical to be able to change anything from the dashboard, it’s 90% meant as an overview, but of course it would be nice to just set temperature for thermostats, enable “high” setting on ventilation etc.

---

<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:** [March 12, 2023, 8:05pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1175 "2023-03-12T20:05:36Z")

</div>

Yes, MQTT Hub & MQTT Client on Homey, and MQTT Broker on Homey, or HA, or Synology NAS, or even (not preferrable) a cloud service f.i.  
I just made a step-by-step Tutorial: [[TUTORIAL][PRO] How to integrate Home Assistant with Homey](https://community.homey.app/t/tutorial-pro-how-to-integrate-home-assistant-with-homey/92641)  
by the way

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [March 12, 2023, 9:46pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1176 "2023-03-12T21:46:30Z")

</div>

I’ll be using Docker on my QNAP for HA and MQTT broker.

But what is the reason for using MQTT hub? How would it work without it, with just MQTT Client?

Is the alternative to have a flow for each single device when it is updated?

---

<div class="post-metadata">

**Author:** ![rkollman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rkollman/32/41874_2.png) [@rkollman](https://community.homey.app/u/rkollman)\
**Post date:** [March 15, 2023, 8:51am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1177 "2023-03-15T08:51:42Z")

</div>

I also got this problem, my labels are all the same.

Did you fix this and how did you do this?

---

<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:** [March 15, 2023, 9:28am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1178 "2023-03-15T09:28:29Z")

</div>

> [@anon78407409](#):
>
> what is the reason for using MQTT hub

The hub sends f.i. the Homey devices and their data to MQTT Client a.f.a.i.k.  
If you disable it, nothing gets updated in HA anylonger.

---

<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:** [March 16, 2023, 4:06pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1179 "2023-03-16T16:06:43Z")

</div>

> [@anon78407409](#):
>
> But what is the reason for using MQTT hub? How would it work without it, with just MQTT Client

All clients connect to a hub (somewhere)

The MQTT holds the device states and a command interface for your devices from both systems in a format both HA and Homey understand.

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [March 16, 2023, 5:50pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1180 "2023-03-16T17:50:51Z")

</div>

So it’s an alternative to automations on both end with subscriptions etc?

---

<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:** [March 17, 2023, 12:56am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1181 "2023-03-17T00:56:49Z")

</div>

MQTT is just a link between the two. Kind of like an intermediary relay device or mini data base that issues events when relevant data changes value

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [March 17, 2023, 9:54am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1182 "2023-03-17T09:54:33Z")

</div>

I’ve only used MQTT broker and client directly, that’s why I’m asking. But it seems like MQTT Hub/Gateway removes the hassle with having to create a flow for every MQTT signal you might want to send out, and maybe more so the syncing of Homey and HA which could be a lot of flows to get working.

Can’t wait to finally get my Homey Pro 2023 now and get this all set up.

---

<div class="post-metadata">

**Author:** ![Allram](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/allram/32/191_2.png) [@Allram](https://community.homey.app/u/Allram)\
**Post date:** [March 20, 2023, 11:53am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1183 "2023-03-20T11:53:20Z")

</div>

Is there any possibility to set a device as:

```auto
"energy": {
"cumulative": true
},

```

This would make me able to add my powermeters as smartmeters/powermeters and not show up as load in Homey 🙂

---

<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:** [March 20, 2023, 12:48pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1184 "2023-03-20T12:48:08Z")

</div>

Maybe it works when you use a helper callled ‘Utility meter’ for your meter sensor.

 ![Screenshot_20230320-135623_Home Assistant](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/26c1558c061b364ad47f6360f256137d02860798.jpeg)  
Maybe then it presents itself as cumulative meter in mqtt.

Alternative: it is possible when you add a power meter sensor using the [community Home Assistant app](https://community.homey.app/t/app-pro-home-assistant-community-app/71477)

 ![Screenshot_20230320-134533_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e8d43f4207060f261061863b817064287a9ac9d5.jpeg)

---

<div class="post-metadata">

**Author:** ![Zimo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zimo/32/16621_2.png) [@Zimo](https://community.homey.app/u/Zimo)\
**Post date:** [May 17, 2023, 2:19pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1185 "2023-05-17T14:19:03Z")

</div>

Hello,  
after upgrade to early 23 version all MQTT devices are unavailable. Seems, that it’s just a issue with devices, because hub is correctly publishing messages and also updating values (via /set message).

Any advice?

---

<div class="post-metadata">

**Author:** ![Zimo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zimo/32/16621_2.png) [@Zimo](https://community.homey.app/u/Zimo)\
**Post date:** [May 20, 2023, 9:35am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1186 "2023-05-20T09:35:27Z")

</div>

Hello @HarriedeGroot can you please check it - seems MQTT devices are not working at all on Early 2023 version. This is quite important feature I used. My homey is currently quite useless for me ☹

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 20, 2023, 10:31am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1187 "2023-05-20T10:31:28Z")

</div>

@Zimo I don’t seem to have a problem. I checked my installation with MQTT Explorer on Windows.

- Can you please specify what is not working with what?
- Also: on which version of which app are you.

---

<div class="post-metadata">

**Author:** ![Zimo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zimo/32/16621_2.png) [@Zimo](https://community.homey.app/u/Zimo)\
**Post date:** [May 22, 2023, 9:12am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1188 "2023-05-22T09:12:50Z")

</div>

all MQTT devices are unaviable:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b2ed78d842d7874999402bb5d02b7a01849b040.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/aba2fd0d5b880c408bc411f936ad18b7f0a67fca.png)

when I try to add new device - It’s stuck on this screen:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e5e906eed8b08b26716d4a5eda5ce981c9034fac.png)

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 22, 2023, 4:42pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1189 "2023-05-22T16:42:23Z")

</div>

Looks like the MQTT app is not started fully - this would be my first guess from the screenshot you posted. Maybe something else but this would be my initial investigation: why is the app not started…

---

<div class="post-metadata">

**Author:** ![Zimo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zimo/32/16621_2.png) [@Zimo](https://community.homey.app/u/Zimo)\
**Post date:** [May 22, 2023, 6:10pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1190 "2023-05-22T18:10:10Z")

</div>

from my perspective app looks running

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d6c6b5ac1bdae43baf717630399c315482ba59c5.png)

it might be, that it partially running, but ho do I make it fully running?

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [May 22, 2023, 6:35pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1191 "2023-05-22T18:35:11Z")

</div>

Try reinstall. I have mqtt client 3.0.0 and mqtt hub 3.5.5.

---

<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:** [May 22, 2023, 9:06pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1192 "2023-05-22T21:06:37Z")

</div>

And the log is empty?

---

<div class="post-metadata">

**Author:** ![Zimo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zimo/32/16621_2.png) [@Zimo](https://community.homey.app/u/Zimo)\
**Post date:** [May 23, 2023, 3:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1193 "2023-05-23T15:31:12Z")

</div>

on Errors and Warnings level - no log info,  
on Debug level only messages from sensors and some startup messages when restarted app - no error or indication why it’s not running.

No info about those devices or why I cannot create new MQTT devices…

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

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