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

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 24, 2019, 9:30pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/102 "2019-01-24T21:30:01Z")

</div>

I’m going to investigate further. But right now all my channels seems to be “Dummy” and I don’t seem to be able to communicate with the channels shown. For examples light switches that shows as dummies in openhab. But so far I have only used the gui in openhab so there might be me doing things wrong in openhab.

However what I find more troublesome is this screenshot:

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

I’m not comfortable with all the data transmitted. Seems to be a lot!

---

<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:** [January 24, 2019, 9:32pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/103 "2019-01-24T21:32:34Z")

</div>

Device property datatypes should be recognized:

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

---

<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:** [January 24, 2019, 9:35pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/104 "2019-01-24T21:35:36Z")

</div>

The number of packets depends on the number of device state changes. Also at startup, when registering devices, all states of all device properties are published.

Maybe you could try removing the Homie MQTT Device and all configured things (reset all), then try starting fresh by adding a new ‘Homie MQTT Device’.

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 24, 2019, 9:57pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/105 "2019-01-24T21:57:13Z")

</div>

Yes, I will try to investigate further and restart from scratch. I will also reinstall my rpi to a clean openhab install.

I haven’t had the time to do it today.

---

<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:** [January 25, 2019, 8:22am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/106 "2019-01-25T08:22:03Z")

</div>

- Open the Docker app in DSM
- Go to “Registry”
- Search for “openhab”
- Select the `openhab/openhab` image
- Click “Download”
- Once it’s downloaded, it should appear under “Image”
- Select the `openhab/openhab` image and click “Launch”

It may take a while until the container has started, but once it has, you can go to `http://your-syno-ip-address:8080` to access the OpenHAB server.

I’m not sure if the default image will persist any changes made to filesystem within the container. In that respect, Docker is not like a virtual machine that has a “virtual drive”; by default, any changes made to a filesystem from within a Docker container are gone when the container is stopped.

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 25, 2019, 6:35pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/107 "2019-01-25T18:35:18Z")

</div>

I reinstalled all the homey-apps and i flashed a blank openhab-image on my RPi.  
Maybe it would have worked to just restart the gateway once more. I’m not sure.

Anyway now everything seems to be found and the property datatypes is correct. I did link a swich (light) channel to an item but haven’t managed to control things with it yet. Nothing happens if i flip the switch.

And the problem seems to be the OFFLINE-message I get from the status of Homey.  
It says “OFFLINE - GONE” Device did not send heartbeat in time.  
However when I restart the gateway app it goes to Online for a while (only a minute or two) and then back to offline.

Not sure what the deal is.

---

<div class="post-metadata">

**Author:** ![Retrospected](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/retrospected/32/9487_2.png) [@Retrospected](https://community.homey.app/u/Retrospected)\
**Post date:** [January 25, 2019, 6:45pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/108 "2019-01-25T18:45:38Z")

</div>

ah nice tool, Thanks! that allowed me to debug… i think something went wrong while installing the beta app from the store. Once i installed the homie2 branch from homey-cli it worked.

---

<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:** [January 25, 2019, 7:06pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/109 "2019-01-25T19:06:01Z")

</div>

Correct, the app in the store does not yet contain the implementation for the Homie Convention (auto discovery).

---

<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:** [January 25, 2019, 7:09pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/110 "2019-01-25T19:09:25Z")

</div>

See a few posts back. This is a bug in OpenHAB and will probably be solved in a next release.

I’m able to control my devices, regardless of the offline  
status of the Homie mqtt device.

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 25, 2019, 7:11pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/111 "2019-01-25T19:11:40Z")

</div>

Ah it’s also connected to the 1,5sec thing. Anyway, good to know that you can control your devices anyway. I will continue to do some tests.

I’m considering trying to tie Google Home to OpenHAB for native support for swedish language. And also using HABPanel to make a tablet interface.

---

<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:** [January 25, 2019, 7:14pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/112 "2019-01-25T19:14:57Z")

</div>

Also one mistake I made once was adding a button instead of a switch control for a light switch. Buttons didn’t work, a switch control does the trick.

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 25, 2019, 8:13pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/113 "2019-01-25T20:13:19Z")

</div>

Do you also receive temperature readings for example?

---

<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:** [January 25, 2019, 8:15pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/114 "2019-01-25T20:15:17Z")

</div>

Yes I receive temp readings, see image below.

> [@HarriedeGroot](#):
>
> First impression of [HABpanel](https://www.openhab.org/docs/configuration/habpanel.html) using MQTT. It’s a working demo, including live updates & setting the values.  
> All devices and their properties (+datatypes) are automatically detected and imported via the Homie Convention:
> 
> [![HABpanel](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b3c3ef97b00bcc497cac86d121ce6ec780d3caa4.png)  
> HABpanel.PNG1598×1314 185 KB  
> ](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d3fc6f0fb52f4f623f7a819be3f190c8c32c9f19.png)

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 25, 2019, 8:25pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/115 "2019-01-25T20:25:56Z")

</div>

Did you get this to work?

I seem to be stuck at OpenHAB finding Homey, Connecting to it and receiving all channels. But when I link a channel to an item, wether it’s a switch or temperature reading it seems to not get any information and doesn’t seem to be able to communicate with the channel.

I’ve been trying to add, remove, refresh and reboot but nothing seems to help.

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

---

<div class="post-metadata">

**Author:** ![Retrospected](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/retrospected/32/9487_2.png) [@Retrospected](https://community.homey.app/u/Retrospected)\
**Post date:** [January 25, 2019, 9:03pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/116 "2019-01-25T21:03:49Z")

</div>

Yes I think i’m facing the same issue. Pressing a button doesnt show anything in the gateway debug log and my nest temperature is also shown as NaN.

I also tried to manually change dim level and on-off state via MQTT Explorer, this is being printed in the debug log but still nothing happens.

---

<div class="post-metadata">

**Author:** ![Bassie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bassie/32/10496_2.png) [@Bassie](https://community.homey.app/u/Bassie)\
**Post date:** [January 26, 2019, 11:12am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/117 "2019-01-26T11:12:30Z")

</div>

Wow, this is cool.  
I already use OpenHAB to expose my lights/switches to a Hue-enabled-device (like Toon thermostat):

> **[openHAB Hue Emulation - System Integrations](https://www.openhab.org/addons/integrations/hueemulation/)**
>
> Hue Emulation exposes openHAB items as Hue lights to other Hue API compatible applications like Amazon Echos, Google Homes or any Hue compatible application.

And for exposing the lights/switches for my Google Home Hub:

> **[Google Assistant](https://www.openhab.org/docs/ecosystem/google-assistant/)**
>
> Google Assistant is Google's virtual personal assistant and uses Actions on Google as the platform for "Actions" (software applications) to extend the functionality of the Google Assistant.

  
…to make it look like this:  
 ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/c9cf45ac2fa014cd513aa17b348faa88b0a7217d.jpeg)

---

<div class="post-metadata">

**Author:** ![odig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/odig/32/13681_2.png) [@odig](https://community.homey.app/u/odig)\
**Post date:** [January 27, 2019, 9:21am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/118 "2019-01-27T09:21:07Z")

</div>

Hi, I’m the developer of homeeToMqtt for homee and just started to investigate or pretty sure switching to homey. And I’m glad to find you did most of the work already. I get the feeling that you’re gateway is under heavy development right now. Implementing homie convention reorganize topic structure. Please keep me informed if when the structure is settled and I’m happy to be a alpha tester.

Great work  
Ciao odig

---

<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:** [January 27, 2019, 9:41am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/119 "2019-01-27T09:41:05Z")

</div>

Hi Odig! Welcome onboard.

Yes the gateway app is currently in development state. The first experimental versions can be found on GitHub. Experience & tips for integrations with other systems is very welcome!

Since I updated my Homey to 2.0 lately, most needed are testers for Homey 1.5.13. It’s hard to maintain backwards compatibility.

Yesterday I made some progress with the app settings (WIP; not fully functional yet…).

 ![Screenshot_20190127-103301](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a0584e339d99234fa487d830b43bc87e019fa223.jpeg) ![Screenshot_20190127-103314](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3ce3778ddc54e5ab392eb16e22675efb43c03678.jpeg) ![Screenshot_20190127-104435](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e437a636eb5155237d3d71741f00a3dc0c03d72c.jpeg)

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [January 27, 2019, 10:48am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/120 "2019-01-27T10:48:36Z")

</div>

These settings look good, like what you did with the tabs!

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [January 27, 2019, 10:49am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/121 "2019-01-27T10:49:18Z")

</div>

I have installed Mosquitto on my openHABian installation and switched broker from the one on Homey to this one. Now I get all the readings, temperature, watt, on off/status and dim-level but I can’t control anything from openHAB, only read. I might research further when I get some new ideas.

EDIT: And if I check MQTT-explorer, a light switch for example gets an onoff parameter named “set” to change between true and false by openHAB but Homey doesn’t act on this.

Might start working on HABpanel instead also. But that’ll probably take a while to get things to look the right way hehe.

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

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