# Guide to Connecting gBridge to Homey for Google Assistant

**URL:** <https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234>\
**Category:** Devices\
**Created:** [February 15, 2019, 3:04pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234 "2019-02-15T15:04:24Z")\
**Posts on this page:** 20\
**Page:** 5

<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 25, 2019, 3:46pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/81 "2019-02-25T15:46:26Z")

</div>

And ‘brightness’ needs to be ‘dim’

---

<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 25, 2019, 3:54pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/82 "2019-02-25T15:54:27Z")

</div>

> [@HarriedeGroot](#):
>
> And ‘brightness’ needs to be ‘dim’

Good spot - also make sure you’re using int(0…100) for percentage format

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 3:56pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/83 "2019-02-25T15:56:56Z")

</div>

first thing ive noticed is the gBridge sets ONOFF using 0 or 1… MQTT uses true or false

---

<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 25, 2019, 4:03pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/84 "2019-02-25T16:03:33Z")

</div>

Looks like gBridge may accept different values - but MQTT-Hub might not - will test in a few mins

gBridge  
You may publish these values on the status topic:

- One of `0` , `off` , `false` means the device is off.
- One of `1` , `on` , `true` means the device is turned on.  
These values are case-insensitive.

---

<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:** [February 25, 2019, 4:04pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/85 "2019-02-25T16:04:44Z")

</div>

Homey (MQTT Hub I guess) reacts to both 1 0 and True False.

---

<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 25, 2019, 4:06pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/86 "2019-02-25T16:06:15Z")

</div>

Correct

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 4:07pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/87 "2019-02-25T16:07:05Z")

</div>

hmm… i wonder why… even though MQTT see this

`20190225-16:05:16 message: porch-light/onoff with value: 0`

the light doesnt turn or off in Homey

For simplicity - I have only two devices set up

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/75f04ac294393bb599115c9fb7e4e40b5519583d.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 25, 2019, 4:08pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/88 "2019-02-25T16:08:43Z")

</div>

Try rebooting Homey.

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 4:09pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/89 "2019-02-25T16:09:10Z")

</div>

will do and will report back

---

<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 25, 2019, 4:19pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/90 "2019-02-25T16:19:04Z")

</div>

I am seeing a similar issue - it is with gBridge recognising the status I think… Looking… No it’s OK - it’s working for me - just a bit of a delay (although I am not directly connecting from MQTT-Hub to gBridge)

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 4:24pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/91 "2019-02-25T16:24:30Z")

</div>

Unfortunately reboot didn’t work

---

<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 25, 2019, 4:28pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/92 "2019-02-25T16:28:21Z")

</div>

Do you have a MQTT ‘monitoring’ utility? If so connect to the gBridge broker.

- MQTT-Explorer latest version 0.2.0 will allow you to specify a root topic which must be  
gBridge/uxxx/#

(uxxx = your userID)

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 4:36pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/93 "2019-02-25T16:36:56Z")

</div>

Yes I am monitoring…

When I activate the switch on either end  
I can see it in the explorer…

---

<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 25, 2019, 4:42pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/94 "2019-02-25T16:42:45Z")

</div>

Using Explorer … does altering the ‘set’ topic value from true to false cause the light to physically turn on/off?

gBridge/uxxx/porch-light/onoff/set

You can name the device whatever you want in gBridge but you must use the device names that MQTT-Hub creates within the topics.

EDIT: This is probably OK - does MQTT-Hub create that porch-light device and topic hierarchy on the gBridge broker ? Similar to this…  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/dfe6a44cb9868edf7c4c4718822f9e71796f863a.png)

The new MQTT Client has just been published so I’ll update and try myself shortly.

---

<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:** [February 25, 2019, 5:25pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/95 "2019-02-25T17:25:55Z")

</div>

Also here… MQTT client with gBridge fix is published.

---

<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 25, 2019, 6:10pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/96 "2019-02-25T18:10:33Z")

</div>

OK - I have now setup to use the gBridge broker directly from MQTT-Hub - worked well thank you scanno.

All the gBridge branch is created correctly (as a renamed homie format). I have setup a couple of devices in gBridge that control Hue lights via Homey. Here’s an example topic as configured in gBridge and an expansion of the gBridge topic. It’s a Kitchen Table light named `kitchen-table` in MQTT.

It all works OK and is synchronised bidirectionally.

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

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

@KonradWalsh Could it be that you have the action and status topics reversed in gBridge by any chance ? They are a bit confusing with regard to the /set subtopic.

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 6:19pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/97 "2019-02-25T18:19:51Z")

</div>

OK… thanks for the help so far…

Yes everything you have said is how it is on my side…

so I am **starting over…** deleting the MQTT apps and reinstall…

Can anyone confirm the exact versions of **MQTT HUB, Client and Broker** I should have installed before I do it over

---

<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 25, 2019, 6:26pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/98 "2019-02-25T18:26:28Z")

</div>

It’s a good diagnostic to use MQTT Explorer and it’s publish capability to pinpoint which part is not working as expected. Inparticular it is worth being sure that a command issued on the set topic of MQTT-Explorer is working as expected.

Anyway - let’s hope your re-install works.

I am using the gitHub HA branch of MQTT-Hub v2.0.6 (because I use Home Assistant) and the just released version of MQTT Client v2.2.2 - which I had to re-enter the config for because it went from beta to release. The broker is gBridges cloud version.

---

<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:** [February 25, 2019, 6:50pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/99 "2019-02-25T18:50:28Z")

</div>

I noticed that you wrote “window-light” in one post and “window-lights” in another. Check which is correct.

I could bypass my mosquitto broker by changing the ip and user/pass in the client without any other changes.

It works for me now!

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [February 25, 2019, 6:50pm UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/100 "2019-02-25T18:50:58Z")

</div>

So I reinstalled just using the appstore versions of MQTT Client and MQTT Hub Beta  
this is the screen from MQTT Explorer

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

this shows it leaving homey as i toggle on and off the light from homey

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

this shows it coming back if toggle on off from Google Home

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

[Previous page](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234.md?page=4)

[Next page](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234.md?page=6)
