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

<div class="post-metadata">

**Author:** ![Bananfluen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bananfluen/32/8095_2.png) [@Bananfluen](https://community.homey.app/u/Bananfluen)\
**Post date:** [February 4, 2019, 8:29pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/266 "2019-02-04T20:29:51Z")

</div>

Did you get this to work?  
Exact same problem here…

---

<div class="post-metadata">

**Author:** ![Bananfluen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bananfluen/32/8095_2.png) [@Bananfluen](https://community.homey.app/u/Bananfluen)\
**Post date:** [February 4, 2019, 8:58pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/267 "2019-02-04T20:58:02Z")

</div>

![Screenshot_20190204-215718_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6bd56193b25445607da164a21d836c8a59d37800.jpeg)

Maybe someone knows what this java.lang.NullPointerExeption error means?

---

<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:** [February 4, 2019, 9:15pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/268 "2019-02-04T21:15:59Z")

</div>

You need to connect to a broker first (within openhab)

---

<div class="post-metadata">

**Author:** ![Bananfluen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bananfluen/32/8095_2.png) [@Bananfluen](https://community.homey.app/u/Bananfluen)\
**Post date:** [February 4, 2019, 9:46pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/269 "2019-02-04T21:46:01Z")

</div>

I have connected to Broker, running on Homey.

 ![Screenshot_20190204-224537_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a5b5132c417f2e735cb82e5480b1828c3cb03550.jpeg)

---

<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:** [February 4, 2019, 9:48pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/270 "2019-02-04T21:48:40Z")

</div>

Sorry, I don’t know what’s going wrong (based on your provided info). Did you try the openhab fora?

---

<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:** [February 4, 2019, 10:30pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/271 "2019-02-04T22:30:47Z")

</div>

Trying to figure out whats going on…I still don’t know the reason, but at least I’m able to reproduce the issue now! I Added another MQTT Homie device as a test. This one is displayed offline while another is correctly displaying the online pending message. It’s the same configuration, strange…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fcd7c95a77c67542ef13b294f87e2f215a50c057.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:** [February 4, 2019, 10:37pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/272 "2019-02-04T22:37:06Z")

</div>

@Bananfluen Found it!

I forgot to select a bridge (the homey MQTT broker) when creating the MQTT Homie device.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d7cfca6c0350cf274051b330e85548dde8e056f4.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:** [February 4, 2019, 11:17pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/273 "2019-02-04T23:17:42Z")

</div>

FYI: The homie2 branch contains an updated version:

- fixed a bug for initial settings (i.e. undefined bug)
- zone & device class will be normalized
- added some warning messages

---

<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:** [February 4, 2019, 11:30pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/274 "2019-02-04T23:30:47Z")

</div>

I think really there should be an alternative available in the ‘Communication Protocol’ drop down that supports things like the inclusion of the zone and class additions in the topic hierarchy. Called ‘Hub’, ‘MQTT’, ‘Custom’, ‘Default’ or something. If the homie3 protocol is selected then ‘class’ and ‘zone’ topic inclusion should not be selectable, or anything else that breaks the spec.

I also see no problem with the original normalisation of the class and zone entries in the topic levels as capitals are not an issue outside of the restrictions of the homie3 protocol.

---

<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:** [February 4, 2019, 11:50pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/275 "2019-02-04T23:50:45Z")

</div>

Adding a ‘custom’ protocol is a great suggestion.  
When the Homie protocol is selected, most of the additional settings will be locked, selecting ‘custom’ will unlock those.

Also making the topic normalization optional is added to the list.

---

<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:** [February 4, 2019, 11:53pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/276 "2019-02-04T23:53:26Z")

</div>

Harrie - are you on top of an issue where the ‘set’ topics don’t work - not updating the state within Homey? There’s quite a lot of them across several devices, or shall I create 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:** [February 4, 2019, 11:54pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/277 "2019-02-04T23:54:45Z")

</div>

Nope, I did not came across one. Could you provide me the details?

---

<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:** [February 4, 2019, 11:57pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/278 "2019-02-04T23:57:24Z")

</div>

Will do here’s some off the cuff but I’ll research better and update tomorrow.

Some are boolean within onoff and some numeric in say thermostats where set target-temperature is ignored, custom-thermostat-mode too. There’s one or two where no state is reported for the device like buttons and in those set is also ignored.

But aside from a couple of devices it is working really well for a lot of people, me included

---

<div class="post-metadata">

**Author:** ![Bananfluen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bananfluen/32/8095_2.png) [@Bananfluen](https://community.homey.app/u/Bananfluen)\
**Post date:** [February 5, 2019, 6:18am UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/279 "2019-02-05T06:18:58Z")

</div>

![Screenshot_20190205-071754_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/dda25487a04608cd6f2e140e02d2c79495c095c2.jpeg)

Now both online! 😊

Can’t see any devices…

---

<div class="post-metadata">

**Author:** ![Sat2All](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sat2all/32/9185_2.png) [@Sat2All](https://community.homey.app/u/Sat2All)\
**Post date:** [February 5, 2019, 5:04pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/280 "2019-02-05T17:04:18Z")

</div>

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

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

I have it online in OpenHAB and see channels when I click on the “Homie MQTT device”

so next step is to add it in Items and Items can be created in f.i. the Dashboard of OpenHAB? if so how to see the Items?

---

<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:** [February 5, 2019, 6:09pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/281 "2019-02-05T18:09:51Z")

</div>

@Sat2All You can click in the blue circle to create a ‘thing’ for the channel. Next you can connect these ‘things’ to controls on the dashboard.

---

<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:** [February 5, 2019, 6:10pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/282 "2019-02-05T18:10:22Z")

</div>

@xAPPO Custom protocol is implemented

---

<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:** [February 5, 2019, 6:31pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/283 "2019-02-05T18:31:31Z")

</div>

@HarriedeGroot, I also have some ‘set’ problems.  
When i hit the button ‘Staande lamp’ i can see in the Explorer that the field set is created with the value true. However the field onoff isnt changing.

 ![Knipsel](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2a53b133608bfe7114b9f3dbd1a41a4d2dde8963.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:** [February 5, 2019, 6:53pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/284 "2019-02-05T18:53:37Z")

</div>

@Marcel_Wolf What type of device is ‘staande-lamp’?

---

<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:** [February 5, 2019, 6:53pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/285 "2019-02-05T18:53:56Z")

</div>

It is a Ikea bulb

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

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