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

<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:** [April 6, 2019, 9:58pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/588 "2019-04-06T21:58:42Z")

</div>

@Phuturist Altering the payload values is not possible (yet). Adding value `templates` could be a nice addition to the functionality of the MQTT Device.

For now, you’ve got a few options:

1. Alter the device settings accepting true/false (if possible)
2. Use a Virtual device operating on flow cards (from MQTT Client) to do it manually…
3. Use NodeRed to convert the payload
4. Create a Pull Request/Wait for someone to extend the functionality of the MQTT Device
5. other…?

---

<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:** [April 6, 2019, 11:44pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/589 "2019-04-06T23:44:13Z")

</div>

> [@"HarriedeGroot](#):
>
> 5 . other … ?

Aside from templates, auto recognise the on/off format as reported in state and respond in set topic accordingly ?

---

<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:** [April 7, 2019, 7:34am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/590 "2019-04-07T07:34:44Z")

</div>

> [@xAPPO](#):
>
> as reported in state

Where do I find ‘state’ when manually adding a device?

Edit: in the state topic ofcourse…need ☕.

---

<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:** [April 7, 2019, 8:24am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/591 "2019-04-07T08:24:50Z")

</div>

@Phuturist Thanks!

---

<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:** [April 7, 2019, 8:04pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/592 "2019-04-07T20:04:10Z")

</div>

Submitted to store (beta channel; waiting for approval)

#### Version 2.2.5

- Added MQTT device setting to modify the `onoff` capability output (`true`/`false`, `on`/`off`, etc.)
- Cleanup MQTT Device topic settings

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d89b3670abe1d96df5c5ea616cd57331197a8033.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/13205e873097e9133e4b4e09cfd60657fd13da59.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2d1bc7c36d963c41871d98e2127c93cbde080aa5.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/71355d7d30ae90df04cd3f982004989de6046fe3.jpeg)

NOTE: Modifying topics should work. Adding/removing capabilities via devices settings is not possible, because the list of capabilities needs to be provided when installing the device…

@Phuturist @dewenni

---

<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:** [April 8, 2019, 5:33pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/593 "2019-04-08T17:33:06Z")

</div>

Available in [the store](https://apps.athom.com/app/nl.hdg.mqtt) now (beta channel).

> [@HarriedeGroot](#):
>
> #### Version 2.2.5
> 
> - Added MQTT device setting to modify the `onoff` capability output ( `true` / `false` , `on` / `off` , etc.)
> - Cleanup MQTT Device topic settings

---

<div class="post-metadata">

**Author:** ![EvilUnicorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/evilunicorn/32/8750_2.png) [@EvilUnicorn](https://community.homey.app/u/EvilUnicorn)\
**Post date:** [April 9, 2019, 7:47am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/594 "2019-04-09T07:47:48Z")

</div>

I’m getting ready to dive in this weekend. This is exactly what Homey has been missing for quite some time now.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [April 9, 2019, 8:09am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/595 "2019-04-09T08:09:31Z")

</div>

I’m trying to grasp some things.

I want to control Heimdall using MQTT gateway. Setting the surveillance mode to disarmed, armed or partially\_armed works fine but I cant seem to set the alarm-heimdall capability to false after it was triggered. Obvisouly both are custom capabilities and their only difference is that one is enum and the other is a boolean.

Is this just a matter of support somewhere inside the MQTT hub (which I would need to dig in) or am I overlooking something else.

And another issue I ran into. I have a Xiaomi Mi Robot vacuum which has the onoff capability. When setting this to true I can see the topic set=true in MQTT explorer but the capability onoff does not actually change to true. I also dont quite understand what is going on here. Could someone explain what is going on here, I’m still quite new to MQTT.

---

<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:** [April 9, 2019, 8:25am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/596 "2019-04-09T08:25:43Z")

</div>

> [@Phuturist](#):
>
> And another issue I ran into. I have a Xiaomi Mi Robot vacuum which has the onoff capability. When setting this to true I can see the topic set=true in MQTT explorer but the capability onoff does not actually change to true. I also dont quite understand what is going on here. Could someone explain what is going on here, I’m still quite new to MQTT.

The vacuum cleaner should report back on the state channel.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [April 13, 2019, 7:47pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/597 "2019-04-13T19:47:57Z")

</div>

> [@HarriedeGroot](#):
>
> Added MQTT device setting to modify the `onoff` capability output ( `true` / `false` , `on` / `off` , etc.)

Trying to change the On/Off value from true/false to on/off from a MQTT device results in an “Could not save settings. Timed Out” error. Want me to submit an issue on GitHub?

---

<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:** [April 13, 2019, 8:23pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/598 "2019-04-13T20:23:07Z")

</div>

@Phuturist No need to create a GitHub issue.  
It’s probably an Homey issue…

I encountered equal error messages when a ‘broadcast’ was running. Mostly it succeeded when I tried later.  
I already did some debugging. The timeouts are not from the MQTT save device settings logic. Homey is not responding to the request (in time) for unknown reason.

---

<div class="post-metadata">

**Author:** ![unknown\_error](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/unknown_error/32/9109_2.png) [@unknown\_error](https://community.homey.app/u/unknown_error)\
**Post date:** [April 15, 2019, 1:05pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/599 "2019-04-15T13:05:14Z")

</div>

Hi @HarriedeGroot. Just connected a Philips Dimmer / Switch, but I don’t receive MQTT messages when I press buttons. The device is listed in “Devices” section of the App, and all the other devices (I didn’t use smart switches before) work just fine.  
If I create a workflow in Homey the switch works great.  
Is it supposed to work?

MQTT Hub: 2.1.9 / 2.2.5  
Homey: 2.1.1

---

<div class="post-metadata">

**Author:** ![unknown\_error](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/unknown_error/32/9109_2.png) [@unknown\_error](https://community.homey.app/u/unknown_error)\
**Post date:** [April 15, 2019, 1:35pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/600 "2019-04-15T13:35:44Z")

</div>

MQTT Explorer shows this:

▼hue-dimmer-switch  
$type = sensor  
$name = Hue dimmer switch

The “type” is “sensor” for some reason, is that correct?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [April 15, 2019, 8:18pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/601 "2019-04-15T20:18:11Z")

</div>

> [@HarriedeGroot](#):
>
> It’s probably an Homey issue…
> 
> I encountered equal error messages when a ‘broadcast’ was running. Mostly it succeeded when I tried later.  
> I already did some debugging. The timeouts are not from the MQTT save device settings logic. Homey is not responding to the request (in time) for unknown reason.

Weird stuff … I tried numerous of times at different times and states (after app reboots, after Homey reboots) but keep bumping into this error. It’s not gonna fly for me I’m afraid.

---

<div class="post-metadata">

**Author:** ![Nicholas\_B\_Kjaergaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nicholas_b_kjaergaar/32/1222_2.png) [@Nicholas\_B\_Kjaergaar](https://community.homey.app/u/Nicholas_B_Kjaergaar)\
**Post date:** [April 16, 2019, 4:44am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/602 "2019-04-16T04:44:33Z")

</div>

Add /set/ like …/onoff/set/

---

<div class="post-metadata">

**Author:** ![unknown\_error](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/unknown_error/32/9109_2.png) [@unknown\_error](https://community.homey.app/u/unknown_error)\
**Post date:** [April 16, 2019, 10:20am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/603 "2019-04-16T10:20:01Z")

</div>

According to a source code the device doesn’t provide any capabilities. I checked other remote dimmers and found the same issue.  
Do you have any ideas? It looks like all these devices should expose something more useful than Flow Triggers.

---

<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:** [April 16, 2019, 12:32pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/604 "2019-04-16T12:32:22Z")

</div>

It may be an issue with ‘button’ type devices as they don’t publish their ‘transient’ state to MQTT 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:** [April 16, 2019, 3:09pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/605 "2019-04-16T15:09:21Z")

</div>

@unknown_error Can you provide me the device details from the [developer tools](https://developer.athom.com/tools/devices)?

---

<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:** [April 16, 2019, 3:09pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/606 "2019-04-16T15:09:42Z")

</div>

@xAPPO Can you eleborate?

---

<div class="post-metadata">

**Author:** ![unknown\_error](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/unknown_error/32/9109_2.png) [@unknown\_error](https://community.homey.app/u/unknown_error)\
**Post date:** [April 16, 2019, 5:21pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/607 "2019-04-16T17:21:58Z")

</div>

@HarriedeGroot,

| Property | Value |
| --- | --- |
| ID | (uuid) |
| Class | sensor |
| Driver | homey:app:com.philips.hue.zigbee — RWL000 |
| Ready | Yes |
| Available | Yes |
| Warning | No |
| Custom icon | No |

###### Settings

| Key | Value |
| --- | --- |
| zb\_profile\_id | “49246” |
| zb\_device\_id | “2096” |
| zb\_ieee\_addr | “0x0017880104f77480” |
| zb\_product\_id | “RWL021” |
| zb\_manufacturer\_name | “Philips” |

###### Capabilities

Capability Type Value Edit value Last Updated  
(empty list)

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

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