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

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 7:49pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/850 "2021-03-30T19:49:02Z")

</div>

This time I had to restart the trio, although no errors in the log, and the hub and client were reporting it’s activities the broker seemed to be frozen. However, there are no problems since.  
Information log reports something which maybe comes close to the null value:  
20210330-18:55:05 message: with value: [object Object]  
Cannot judge what this should be it’s a part of the energy meter data of which one of the measures is not working.  
(Running Hub in custom mode)

---

<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:** [March 30, 2021, 7:50pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/851 "2021-03-30T19:50:04Z")

</div>

@Robert_Zwetsloot Are you able to provide some more detailed logging?

---

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 7:50pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/852 "2021-03-30T19:50:51Z")

</div>

See pattern below  
20210330-18:56:36 Homie set value [kaifa-kaifa-meter.measure\_power]: 596  
20210330-18:56:35 message: with value: [object Object]  
20210330-18:56:26 message: kaifa-kaifa-meter/measure-powerl3 with value: 118  
20210330-18:56:26 message: kaifa-kaifa-meter/measure-powerl1 with value: 410  
20210330-18:56:26 Homie set value [kaifa-kaifa-meter.measure\_power.l3]: 118  
20210330-18:56:26 message: kaifa-kaifa-meter/measure-power with value: 586  
20210330-18:56:26 Homie set value [kaifa-kaifa-meter.measure\_power.l1]: 410  
20210330-18:56:26 Homie set value [kaifa-kaifa-meter.measure\_power]: 586  
20210330-18:56:16 message: kaifa-kaifa-meter/measure-powerl3 with value: 117  
20210330-18:56:16 message: kaifa-kaifa-meter/measure-powerl1 with value: 378  
20210330-18:56:16 message: kaifa-kaifa-meter/meter-powerconsumedt2 with value: 24742.23  
20210330-18:56:16 message: kaifa-kaifa-meter/measure-power with value: 596  
20210330-18:56:16 Homie set value [kaifa-kaifa-meter.measure\_power.l3]: 117  
20210330-18:56:16 Homie set value [kaifa-kaifa-meter.measure\_power.l1]: 378  
20210330-18:56:16 Homie set value [kaifa-kaifa-meter.meter\_power.consumed.t2]: 24742.23  
20210330-18:56:16 Homie set value [kaifa-kaifa-meter.measure\_power]: 596  
20210330-18:56:06 message: kaifa-kaifa-meter/measure-powerl3 with value: 118  
20210330-18:56:06 message: kaifa-kaifa-meter/measure-powerl1 with value: 398  
20210330-18:56:06 message: kaifa-kaifa-meter/measure-power with value: 609  
20210330-18:56:06 Homie set value [kaifa-kaifa-meter.measure\_power.l3]: 118  
20210330-18:56:06 Homie set value [kaifa-kaifa-meter.measure\_power.l1]: 398  
20210330-18:56:06 Homie set value [kaifa-kaifa-meter.measure\_power]: 609  
20210330-18:56:05 message: with value: [object Object]  
20210330-18:55:56 message: kaifa-kaifa-meter/measure-powerl3 with value: 116

 ![Screenshot_20210330-212002_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/c/ecb34790a1db6e3040ad0bfc8058321c86c9ec54.jpeg)

---

<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:** [March 30, 2021, 7:55pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/853 "2021-03-30T19:55:31Z")

</div>

@Robert_Zwetsloot That’s strange. All capabilities are so called ‘value types’ (not objects) as far as I know.

Can je provide a screenshot of your configuration?  
For completeness: did you try the test version of the MQTT Client?

---

<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:** [March 30, 2021, 7:58pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/854 "2021-03-30T19:58:47Z")

</div>

@Robert_Zwetsloot Can you report the non-working sensor value from here: [Homey Developer](https://developer.athom.com/tools/devices)

---

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 8:07pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/855 "2021-03-30T20:07:01Z")

</div>

Client v2.4.2  
non working value :

 ![Null Value](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0d04dd6e4e04a6913b8a622dc65ac508cbdd06e.jpeg)

Set up:

 ![Screenshot_20210330-215659_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42a6493e13bc3d73139ecfbffe76e63ca887e9c1.jpeg)  
 ![Screenshot_20210330-215644_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c07e35a46f69604ff901bbcc281757a9e6ec99ea.jpeg)

---

<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:** [March 30, 2021, 8:09pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/856 "2021-03-30T20:09:00Z")

</div>

**Version 3.1.6**

- Logging: parse objects to JSON string for debugging puposes

---

<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:** [March 30, 2021, 8:11pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/857 "2021-03-30T20:11:13Z")

</div>

@Robert_Zwetsloot It’s probably an incoming message. Do you know where it comes from? And another strange thing is the topic the message is send to is empty?

---

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 8:19pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/858 "2021-03-30T20:19:44Z")

</div>

it is an incomming message , it is in the middle of the Kaifa message set, Kaifa is a Slimme meter P1 energy meter. Data is provided every 10 seconds by:

> **[HomeWizard](https://homey.app/nl-nl/app/com.homewizard/HomeWizard/)**
>
> Helps you understand and save

Will install Version 3.1.6

---

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 8:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/859 "2021-03-30T20:31:50Z")

</div>

V 3.1.6 log  
You see 2 lines the old empty object and a new one with value 182 without a topic:

20210330-20:25:28 Homie set value [kaifa-kaifa-meter.measure\_power]: 773  
20210330-20:25:19 message: with value: “182”  
20210330-20:25:18 message: with value: “[object Object]”  
20210330-20:25:18 message: kaifa-kaifa-meter/measure-powerl3 with value: “119”

could’nt find the value 182 in the devices values on that moment

---

<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:** [March 30, 2021, 8:50pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/860 "2021-03-30T20:50:21Z")

</div>

@Robert_Zwetsloot I can reproduce the issue by sending an JSON value to a device capability set topic. E.g. `{ "value": 99 }`.  
The Hub can only read raw values (99) from the message payloads, this is based on the Homie convention.

This is also why I added the JSONPath config to the MQTT device, so you can optionally add a custom device and configure it yourself if needed.

I will extend the logging.

---

<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:** [March 30, 2021, 9:10pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/861 "2021-03-30T21:10:44Z")

</div>

**Version 3.1.7**

- Skip messages not meant for the HUB

Little explenation: The log was coming from a message send to a topic not bound to a device capability (hence the empty topic). With this update the hub detects these message earlier in the process and does an early termination.

---

<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:** [March 30, 2021, 9:16pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/862 "2021-03-30T21:16:52Z")

</div>

Wow, what a huge pace of releasing new, further improved versions!  
Cheers for your effort and time, @HarriedeGroot!

---

<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:** [March 30, 2021, 9:20pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/863 "2021-03-30T21:20:08Z")

</div>

Hope I didn’t slow down to many Homeys this evening by the many broadcasts performed after each update 😅

---

<div class="post-metadata">

**Author:** ![Joenoo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joenoo/32/18671_2.png) [@Joenoo](https://community.homey.app/u/Joenoo)\
**Post date:** [March 30, 2021, 9:23pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/864 "2021-03-30T21:23:10Z")

</div>

Apart from some decreased waf because of window coverings that went up-down and up again due to the broadcasts, it’s all good 🙂

Thanks for your efforts and the updates!

---

<div class="post-metadata">

**Author:** ![Robert\_Zwetsloot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_zwetsloot/32/12399_2.png) [@Robert\_Zwetsloot](https://community.homey.app/u/Robert_Zwetsloot)\
**Post date:** [March 30, 2021, 9:46pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/865 "2021-03-30T21:46:40Z")

</div>

Solved: Empty topic message is no longer visible.

---

<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:** [March 30, 2021, 10:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/866 "2021-03-30T22:31:19Z")

</div>

**Version 3.1.8**

- Fix for Home Assistant Entity names (removed device name)

Should solve this issue: [$name on switches · Issue #24 · harriedegroot/nl.hdg.mqtt · GitHub](https://github.com/harriedegroot/nl.hdg.mqtt/issues/24)

---

<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 31, 2021, 4:36am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/867 "2021-03-31T04:36:00Z")

</div>

Unfortunately, the problem has not yet been resolved.

 ![Screenshot_20210331-063523_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/a/cac5416998eb952c6238037b7414bc3f20b7a197.jpeg)

---

<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:** [March 31, 2021, 5:29am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/868 "2021-03-31T05:29:54Z")

</div>

@Undertaker Reverted.

**Version 3.1.9**

- Reverted HA name change

---

<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 31, 2021, 6:36am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/869 "2021-03-31T06:36:41Z")

</div>

👍 Works ! Thank you.

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

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