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

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

</div>

> [@Blarp](#):
>
> Affengeil

Wow - I had to look that word up

---

<div class="post-metadata">

**Author:** ![Sjalabert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sjalabert/32/11432_2.png) [@Sjalabert](https://community.homey.app/u/Sjalabert)\
**Post date:** [January 22, 2019, 9:17pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/83 "2019-01-22T21:17:34Z")

</div>

Affentittengeil 😉

---

<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:** [January 22, 2019, 10:01pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/84 "2019-01-22T22:01:38Z")

</div>

> [@Sjalabert](#):
>
> Affentittengeil 😉

" _Literally translated from German as Monkey Breast Horny_"

😊 Hmmm… not sure where this is going …

---

<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 22, 2019, 10:22pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/85 "2019-01-22T22:22:30Z")

</div>

Just completed the implementation of the Homie Convention for Homey v2.0. See the [‘homie2’ branch](https://github.com/harriedegroot/nl.hdg.mqtt/tree/homie2)

Meaning: Auto device discovery within HABPanel is available for Homey 2.0.

---

<div class="post-metadata">

**Author:** ![Marcel\_Wolf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_wolf/32/8087_2.png) [@Marcel\_Wolf](https://community.homey.app/u/Marcel_Wolf)\
**Post date:** [January 23, 2019, 6:09am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/86 "2019-01-23T06:09:32Z")

</div>

Very cool. I wanne install it on Homey and a Synology NAS. Yesterday alreadys started but i am stuck.  
Can’t install openHAB because java isn’t installed. And next i can’t install Java because of a error. What are you using?

---

<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 23, 2019, 7:39am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/87 "2019-01-23T07:39:23Z")

</div>

Do you have a NAS that’s capable of running Docker containers?

---

<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 23, 2019, 8:04am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/88 "2019-01-23T08:04:14Z")

</div>

Exactly as @robertklep mentioned. I’ve installed openhab in a docker container on my Synology NAS.

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [January 23, 2019, 9:05am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/89 "2019-01-23T09:05:41Z")

</div>

Hmmm I see openhab is also available as a snap.  
Might be an idea to install that on my Linux server.

---

<div class="post-metadata">

**Author:** ![Marcel\_Wolf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_wolf/32/8087_2.png) [@Marcel\_Wolf](https://community.homey.app/u/Marcel_Wolf)\
**Post date:** [January 23, 2019, 9:58am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/90 "2019-01-23T09:58:17Z")

</div>

I unfortunatly have a DS212+ which doesnt support Docker.

So i ordered a DS216+II 😀

---

<div class="post-metadata">

**Author:** ![Blarp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blarp/32/10278_2.png) [@Blarp](https://community.homey.app/u/Blarp)\
**Post date:** [January 23, 2019, 10:38am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/91 "2019-01-23T10:38:39Z")

</div>

> [@Blarp](#):
>
> ‘Home Assistent MQTT Auto Discovery’ of _devices_ trough Mqtt-gateway into Virtual Devices in Homey

I am aware that this quote above is a sideshow of the objectives of the app-maker (as stated in the opening post).  
The objectives of Harrie is to make homey (and all that is attached to it, zigbee, zwave etc) available -trough mqqt-gateway- to the outside world, meaning openhab/node-red etc, to be able to make a dashboard, advanced flows or integrate it in other home automation systems.  
I reconise this as a daring adventure for sure although it has not _my_ interest.

It _does_ have my interest in opening up the outside world to Homey. Maybe this can be combined in this one app  
But I have no problem if is doesn’t. If everybody as some fun it is ok.  
Maybe this is superfluous to say, but you know, none the less

---

<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 23, 2019, 10:55am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/92 "2019-01-23T10:55:34Z")

</div>

My ultimate goal is to create 2 way communication with Homey using industry iot standards (where possible). So creating virtual devices for ‘external’ devices surely fits into this view. I want to use Homey is my central ‘hub’ and not as a standalone controller.

To easiest way to achieve this, is by implementing the Homie Convention the other way around (discover devices & map them to virtual devices).  
All help is appreciated 😊!

---

<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:** [January 23, 2019, 11:38am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/93 "2019-01-23T11:38:53Z")

</div>

As I nodded off last night I was thinking about this reverse path of auto discovery of MQTT devices as virtual devices in Homey.

As Harrie alluded to above it would be easier using industry IOT standards but those are still in their infancy.

There are really not many products yet that support homie 3 or the HA equivalent discovery protocol. Tasmota / esp8266 / Shelly devices and the applications openHAB, Domoticz and HomeAssistant are some that come to mind. However although those applications have implemented these protocols for discovery i.e. for importing devices they ironically don’t implement it the other way around for advertising or exposing their internal devices. I suppose this is of less interest to the developers and users.

This makes the task of auto creating devices within Homey not as easy or useful as it could be, Needs more thought.

---

<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 23, 2019, 4:59pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/94 "2019-01-23T16:59:43Z")

</div>

Next stop: [TileBoard for HomeAssistant](https://community.home-assistant.io/t/tileboard-new-dashboard-for-homeassistant/57173)?  
 ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5586287aeb49b35c969938e2c61a6fb73aaa2ed4.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 23, 2019, 7:11pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/95 "2019-01-23T19:11:33Z")

</div>

Hi. I find this super interesting and I’m trying to get this to work. I don’t have much knowledge in this however and are trying as best I can from different instructions and guides.

I think I managed to come pretty far. OpenHAB is installed as well as the Broker, Client and Gateway. I managed to get homey to be found inside OpenHAB as a “Thing” automatically but it says:

Status: Offline - communications error  
java.lang.Exception: Did not receive mandatory topic value: homie/homey/$homie

I realise that it will get tiresome to help every newbie with things they don’t fully understand. But do you have any idea what this could mean?

John

---

<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 23, 2019, 7:34pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/96 "2019-01-23T19:34:48Z")

</div>

Well, you’re almost there! Just **restart/re-install the gateway app**. The above error is a known bug in openhab. The registration process is aborted if no response is received within 1.5 sec. Restarting the app forces the execution of the device registration process.

Once the devices popup as channels within openhab, it doesn’t matter the device is marked offline.

---

<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 23, 2019, 7:36pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/97 "2019-01-23T19:36:13Z")

</div>

A simple click and it went online. Hah, thanks! You’re doing an awesome job!

---

<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 23, 2019, 7:44pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/98 "2019-01-23T19:44:38Z")

</div>

You’re welcome!  
Keep us updated, I’m interested in successfully created dashboards & other app integrations.

---

<div class="post-metadata">

**Author:** ![Marcel\_Wolf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_wolf/32/8087_2.png) [@Marcel\_Wolf](https://community.homey.app/u/Marcel_Wolf)\
**Post date:** [January 24, 2019, 8:18pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/99 "2019-01-24T20:18:48Z")

</div>

I bought a DS216+II. Installed a docker app but what know? How can i install openHAB in the container?

---

<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 24, 2019, 9:05pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/100 "2019-01-24T21:05:52Z")

</div>

seems like im running into a similar problem as @Camelen however for me it doesnt appear online or show channels as soon as i restart/reinstall the gateway app.

Is there something about the credentials that i use for OpenHab / MQTT Client or the device / client ID’s that have to be configured that i’m missing?

---

<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:23pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/101 "2019-01-24T21:23:35Z")

</div>

DeviceID is the name of your Homey ‘nomalized’.

You can use [https://github.com/thomasnordquist/MQTT-Explorer](https://github.com/thomasnordquist/MQTT-Explorer) to check what messages are being published for all the available topics.

mine is: homie/homey/{device}/{capability}/$command

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

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

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

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