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

<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 27, 2021, 10:03pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/830 "2021-03-27T22:03:40Z")

</div>

@Robert_Zwetsloot Did you also try the test version of the MQTT Client (v2.4.2)?

> **[MQTT Client](https://homey.app/nl-nl/app/nl.scanno.mqtt/MQTT-Client/)**
>
> Abonneer op MQTT topics

---

<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 27, 2021, 10:05pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/831 "2021-03-27T22:05:43Z")

</div>

@Robert_Zwetsloot The cards mentioned in the store are related to the MQTT Device: A virtual device with the ability to bind capabilities to mqtt topics.

The master branch already got some fixes for the MQTT Device, will bump the version soon.

---

<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 27, 2021, 10:30pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/832 "2021-03-27T22:30:05Z")

</div>

New apps are working fine here. Thx guys!

---

<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 27, 2021, 11:48pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/833 "2021-03-27T23:48:56Z")

</div>

Updated test channel: [https://homey.app/nl-nl/app/nl.hdg.mqtt/MQTT-Hub/test/](https://homey.app/nl-nl/app/nl.hdg.mqtt/MQTT-Hub/test/)

#### Version 3.0.1

- FIX: changing settings of an MQTT Device
- FIX: MQTT Device onoff values (false, 0) + state updates
- Prevent message loops when the MQTT device state is updated by a message
- Keep the MQTT device topics in sync
- Add remove MQTT Device capabilities via advanced device config (json)
- Change MQTT device topics in advanced device config (json)

---

<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 28, 2021, 10:49am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/834 "2021-03-28T10:49:30Z")

</div>

In my attempt to be complete I mentioned the wrong version 🙄… I do run the MQTT Client (v2.4.2).  
Hub version 3.0.1 has been updated automatically this night and nested smoothly without the need to restart the client!  
Flow cards, after adding a MQTT device, are working too.,

---

<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 28, 2021, 12:05pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/835 "2021-03-28T12:05:10Z")

</div>

All is runming smoothly here too.  
Just updated to Hub v3.0.1 (Client already was on v2.4.2). Thx for the updates!

Now that we switched in The Netherlands to summertime last night, time in the log files are off. It report 2 hours earlier.  
Same happens in both the Client and Hub logs. This wasn’t the case yesterday, when we were still on wintertime.

 ![SmartSelect_20210328-135558_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bba4cfe89a9e2a2e1db542297933bb72c51f4fc4.jpeg)

 ![SmartSelect_20210328-140131_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/409b33dbb27b8610734cb934abfcb09a7b6d7170.jpeg)

I use a MQTT Broker in Docker on my Synology NAS, which has the correct time and timezone (checked).  
Installed and switched to the Broker app on Homey for testing purposes, but that gives the same 2 hours (earlier) off.  
My Homey is on the correct time and timezone as well (checked).

Not a big problem, but merely a bit confusing when testing / troubleshooting…  
Can anyone give me tips, or is this something that should be fixed in (one of?) the MQTT apps?

---

<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 28, 2021, 12:14pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/836 "2021-03-28T12:14:01Z")

</div>

**Version 3.0.2**

- HA discovery: set cover position fix (Fibaro shutters)
- Removed benefit message from settings page

---

<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:** [March 28, 2021, 12:35pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/837 "2021-03-28T12:35:43Z")

</div>

> [@Henk\_Renting](#):
>
> Now that we switched in The Netherlands to summertime last night, time in the log files are off. It report 2 hours earlier.

SDKv3 apps always run in “timezone” UTC. This is a choice that Athom has made that app developers (and users) have to live with (or go through great lengths to work around 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:** [March 28, 2021, 12:37pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/838 "2021-03-28T12:37:44Z")

</div>

> [@robertklep](#):
>
> or go through great lengths to work around it

I won’t 😇

---

<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 28, 2021, 12:41pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/839 "2021-03-28T12:41:54Z")

</div>

Ah, didn’t know. Thanks!

> [@HarriedeGroot](#):
>
> > [@robertklep](#):
> >
> > or go through great lengths to work around it
> 
> I won’t 😇

No, I fully understand.  
Don’t understand Athom, but I can live with it. 😉  
Thanks guys!

---

<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 28, 2021, 6:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/840 "2021-03-28T18:31:15Z")

</div>

**Version 3.0.3**

- [FIX] MQTT device topic registration

---

<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 28, 2021, 7:55pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/841 "2021-03-28T19:55:36Z")

</div>

It is a fast moving target 🙂  
Nevertheless Version 3.0.3 nested without any noticeable problems, no restart needed either.

---

<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 28, 2021, 10:34pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/842 "2021-03-28T22:34:48Z")

</div>

MQTT Devices are now able to handle JSON input & output.

**Version 3.1.0**

- MQTT device: grab input value from json messages (jsonPath)
- MQTT device: format output message payload to json (JSON-T template)

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

I added two optional config parameters per capability:  
**value path** : point to a value within the JSON payload of the state messate using [JSONPath](https://github.com/dchester/jsonpath#readme).  
**output template** : format the output using [JSON-T](https://github.com/lightsofapollo/json-templater). Both string & object output are supported. All values from the device state (capabilities) can be inserted in the payload.

---

<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 29, 2021, 7:32am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/843 "2021-03-29T07:32:45Z")

</div>

Version 3.1.0 is live.

---

<div class="post-metadata">

**Author:** ![Otter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/otter/32/11467_2.png) [@Otter](https://community.homey.app/u/Otter)\
**Post date:** [March 29, 2021, 9:36am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/844 "2021-03-29T09:36:38Z")

</div>

Sorry for the complete noob question.

i’ve just got Home Assistamnt installed on a Synology NAS and got the MQTT hub/broker/client all connected and added to Home Assistant.

I can see all the devices but can’t controll them or look at the values.

what am I doing wrong?

edit: got it working!!

---

<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 29, 2021, 8:52pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/845 "2021-03-29T20:52:22Z")

</div>

**Version 3.1.2**

- Fix for publishing ‘0’ and ‘false’ payloads
- Brand color

Should solve this issue: [Value 0 (zero) shown as empty space, or 'Onbekend' · Issue #21 · harriedegroot/nl.hdg.mqtt · GitHub](https://github.com/harriedegroot/nl.hdg.mqtt/issues/21)

---

<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, 6:44pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/846 "2021-03-30T18:44:57Z")

</div>

I see most of you guys are updated to the latest version by now!

Did anyone encounter issues during the update(s)?  
And the connection issues? Any improvement? Or is the restart sequence of the apps still needed?

---

<div class="post-metadata">

**Author:** ![rindler](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rindler/32/5501_2.png) [@rindler](https://community.homey.app/u/rindler)\
**Post date:** [March 30, 2021, 7:14pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/847 "2021-03-30T19:14:21Z")

</div>

No, issues. Everything is working just fine, as it always has. Another suggestion might be to change the default birth/will message thatthe app is listening to to the same as default in Home assistant? Now the default in Homey is hass/status and homeassistant/status in HA. Might cause unnecessary trouble for people restarting HA. [MQTT Birth and Last will - Home Assistant](https://www.home-assistant.io/docs/mqtt/birth_will/)

---

<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:20pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/848 "2021-03-30T19:20:29Z")

</div>

OK, that’s low hanging fruit, I’ll change the default topics.

Any more suggestions?

---

<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:40pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/849 "2021-03-30T19:40:37Z")

</div>

**Version 3.1.5**

- Homey library update to v2.9.0
- Changed default HA status topic to: ‘homeassistant/status’

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

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