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

<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:** [May 30, 2019, 4:55pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/628 "2019-05-30T16:55:59Z")

</div>

The conversion of the temperature value (455 in your sample above) is probably not correctly translated to a valid temperature capability value for Homey (0…1). Same goes for the other way around. The hub detects the existence of the temperature capability correctly and is therefore available in HA.

The source code can be found [here](https://github.com/harriedegroot/nl.hdg.mqtt/blob/master/dispatchers/HomieDispatcher.js) (r720):  
There’s probably a bug in this calculation: temperature = (value - 153) / (500 - 153);  
_NOTE: The color temperature command slider (HA) has a range of 153 to 500 mireds (micro reciprocal degrees)._

So it’s most likely a shortcoming of the hub.

---

<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:** [June 1, 2019, 12:20pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/629 "2019-06-01T12:20:03Z")

</div>

Thanks for all your comments. Once again - amazing app! Thank you.  
Awaiting the full functionality, I made a flow-workaround for my two dimable ikea trådfri bulbs. At least now the color adjustments from HA gets to the lamps, but the feedback of the setting is not done (i.e. slider in HA not updated with latest value)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9b04aa81d15f8a5bd771a7dafe1bdf7383201c14.png)

---

<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:** [June 13, 2019, 7:41am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/630 "2019-06-13T07:41:02Z")

</div>

just bumped into this one, a bit late I know. what you do is amazing Harrie! it all looks like magic to me, it is great and very welcome having such a great and active developer working on this stuff. thanks a million for doing all this and at this rate Homey really becomes something truely awesome!

---

<div class="post-metadata">

**Author:** ![imparator](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/imparator/32/9920_2.png) [@imparator](https://community.homey.app/u/imparator)\
**Post date:** [June 16, 2019, 4:04pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/631 "2019-06-16T16:04:01Z")

</div>

Is there a tutorial how to do this ?

openhab doesn’t discover my homey devices !

in mqtt explorer is see my devices

---

<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:** [June 16, 2019, 11:27pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/632 "2019-06-16T23:27:21Z")

</div>

People have had mixed results discovering devices using OH2.4. I understand it’s much better in OH2.5M1 and should improve yet again in OH2.5M2. I believe it’s an OH issue with homie support but I’m not using OH currently … it’s just comments I’ve seen.

OH2.5M2 will be an interesting test but I wouldn’t recommend any of the intermediate 2.5 builds unless you’re very technical, and patient. 2.5M2 is due fairly soon.

K

---

<div class="post-metadata">

**Author:** ![Tweakotime](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tweakotime/32/12807_2.png) [@Tweakotime](https://community.homey.app/u/Tweakotime)\
**Post date:** [June 29, 2019, 6:58am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/633 "2019-06-29T06:58:58Z")

</div>

I have it working that I can control and readout my lights using mqtt. I use an android app called mqtt dashboard for this.

The problem I am facing is, that if the app is not running, and I start the application, the current state of the lights is never shown. It only shows the correct state when a light switches state.

I thought the option flag “retain” would fix this, but still when starting the app, I simply do not see the latest state (the app starts with all lights are disabled).

I already selected QoS to number 1, as I have read that this is a requirement for retain to work. In the log messages on the homey, I do see that the android app is subscribing to the lights topic, but it keeps not showing the current state.

Anyone that can help me telling if it is possible what I want? And if so, how do i do that?

Thanks a million time.

---

<div class="post-metadata">

**Author:** ![roel\_hendr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roel_hendr/32/2900_2.png) [@roel\_hendr](https://community.homey.app/u/roel_hendr)\
**Post date:** [June 30, 2019, 11:05am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/634 "2019-06-30T11:05:26Z")

</div>

When will the beta version become stable? Are the open issues (almost) solved? Thx!

---

<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:** [July 1, 2019, 4:43pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/635 "2019-07-01T16:43:04Z")

</div>

For now the 2 versions will stay alongside.

The MQTT client app needs the ability to unsubscribe from topics using the app2app interface, before the beta will be promoted to stable. This is needed to free recourses after device discovery or removal of MQTT devices.

@roel_hendr Do you have specific issues with one of the two versions?

---

<div class="post-metadata">

**Author:** ![Hakurac](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hakurac/32/9945_2.png) [@Hakurac](https://community.homey.app/u/Hakurac)\
**Post date:** [July 29, 2019, 3:49pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/636 "2019-07-29T15:49:13Z")

</div>

Excuse my stupidity, I have tried several itterations of this app but I have yet to succeed to update the value of a vitual sensor, either by using Virtual Devices or MQTT Hub-virutal sensors. All I want to do is to update the measure\_temperature capability of a virtual sensor by MQTT (from EPS822). Is this even possible with this app?

---

<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:** [August 6, 2019, 10:06am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/637 "2019-08-06T10:06:19Z")

</div>

how do i keep the devices in home assistant? Every time i restart either homey or home assistent all my devices disapear in home assitent and i need to to a new broadcast for them to appear again

---

<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:** [August 6, 2019, 10:31am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/638 "2019-08-06T10:31:16Z")

</div>

Configure the birth & last will messages. The MQTT Hub does automatically broadcast when it receives a birth message 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:** [August 6, 2019, 10:54am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/639 "2019-08-06T10:54:38Z")

</div>

![Screenshot_20190806-125327_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/c8d62e6b435165bf43559cceebea80e09940dafd.jpeg)  
They are configured?

Or should i do it somwhere else or in a different way?

---

<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:** [August 6, 2019, 11:43am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/640 "2019-08-06T11:43:56Z")

</div>

@jolerius see: [https://www.home-assistant.io/docs/mqtt/birth\_will/](https://www.home-assistant.io/docs/mqtt/birth_will/)

 ![Screenshot_20190806-134445](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/ec5a5d9d196faf30621437ad6e6cc1e5f95c3c9a.jpeg)

---

<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:** [August 6, 2019, 12:01pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/641 "2019-08-06T12:01:04Z")

</div>

great, will it broadcast all devices even after homey reboot?

i have more problems. One of my lights, connected to a qubino dimmer, doesnt show up as light in HASS. So i cant control it from there. Any clue?

---

<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:** [August 24, 2019, 2:20pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/642 "2019-08-24T14:20:01Z")

</div>

I have a problem. I used the hub to sync all my devices to HASS. But one lamp, connected to a qubino dimmer, doesn’t show up as neither dimmer or switch. So i cant control it from hass. The only thing i gett is contact alarm, power, power meter and temperature.

Any fix about this or is it the way it just is? Or can i sync the dimmer in somw way?

---

<div class="post-metadata">

**Author:** ![Joel\_Van\_der\_Kuur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joel_van_der_kuur/32/10162_2.png) [@Joel\_Van\_der\_Kuur](https://community.homey.app/u/Joel_Van_der_Kuur)\
**Post date:** [August 24, 2019, 5:55pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/643 "2019-08-24T17:55:57Z")

</div>

al ready tried to broadcast all the devices? or restart the the mqtt hub app? otherwise you can make a virtual dimmer device and use some flows with tags for syncing the virtual with the quoin dimmer;)

---

<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:** [August 24, 2019, 10:21pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/644 "2019-08-24T22:21:07Z")

</div>

Yes tried that. But a vd May be a good idea. I don’t need the dimmer function. So a couple of flows with a vd could really work

---

<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, 5:07am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/645 "2019-09-06T05:07:46Z")

</div>

I have synced homey to hass without problem. But often i find the devices are out of sync (ex a Light is turned on i hass, but not in homey)

Is there a way to scedule broadcasta or some other way to stay sure that devices are in sync?

---

<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:08am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/646 "2019-09-06T06:08:30Z")

</div>

@jolerius yes, by using the birth message.

---

<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, 6:24am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/647 "2019-09-06T06:24:43Z")

</div>

I am a total newbie in this. But why and how will that keep my devices in sync? @HarriedeGroot

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

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