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

<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 21, 2019, 6:38am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/21 "2019-02-21T06:38:47Z")

</div>

I’m not that familiar with the logs but from what I can tell they seem correct.

I think your MQTT Explorer looks correct, since you’ve told Homey to use gBridge as root topic there shouldn’t be anything else there.

But try to expand the view to the device you are using. Make it look like the picture I attach here:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6b317649446c6601fa33d3802b1f896a42f5828b.jpeg)

When you turn the device on and off through Homey the value marked with blue should change between True and False.

When you turn the device on and off through Google Home the value marked green should change between 1 and 0. (If everything works correctly Homey notices this and also turns the device on/off and the blue value also changes)

Check if both these conditions are true.

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 6:52am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/22 "2019-02-21T06:52:16Z")

</div>

Thanks for helping out. When switching from Homey the ‘onoff’ value indeed changes from false to true and back again. When switching from Google Home, the ‘set’ value changes between 0 and 1, but the ‘onoff’ value isn’t updated with it.

So if I understand correctly, the following should happen

- gBridge sets the ‘set’ value to 1 (on) or 0 (off)
- Homey sees this change, and is triggered to set the ‘onoff’ value to true (1) or false (0)

The second part is not happening. For some reason Homey is only sending out MQTT-packets, but not monitoring packets to use as input.

---

<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 21, 2019, 6:55am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/23 "2019-02-21T06:55:39Z")

</div>

What happens if you publish ‘true’ or ‘false’ on the set topic using MQTT explorer?

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 7:00am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/24 "2019-02-21T07:00:59Z")

</div>

Nothing, ‘onoff’ stays the same. Even when I manually set ‘onoff’ to ‘false’ , the light stays on. Homey seems to just not monitor any of those values.

---

<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 21, 2019, 7:04am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/25 "2019-02-21T07:04:33Z")

</div>

Honestly I had this problem in the beginning. I had no idea what caused it. I uninstalled everything. Mosquitto, the homey apps and all and started from scratch. Then it started working.

Not a fun thing to say but…

Anyway you could try to reboot homey maybe?

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 7:12am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/26 "2019-02-21T07:12:25Z")

</div>

Will try that later, but first I noticed this in my MQTT Hub logs

> 20190221-07:40:13 sucessfully subscribed to topic: u796/$command

That doesn’t seem to be the correct topic. What does it say for you in the log? I have the protocol set to Homie Convention v3.0.1, the root topic to gBridge and the deviceID to my userid at gBridge, u796.

 ![Screenshot_20190221-081122](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6c42c61e659a3fb5ba49fa58b2bc54fde0f2f525.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 21, 2019, 7:16am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/27 "2019-02-21T07:16:27Z")

</div>

The command topic is correct, used for other purposes.  
Do you receive log messages in the MQTT Client when publishing to set?

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 7:32am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/28 "2019-02-21T07:32:57Z")

</div>

Yes

> 20190221-08:30:43 received ‘EXECUTE’ on ‘gBridge/u796/d0/grequest’  
> 20190221-08:30:43 Trigger generic card for gBridge/u796/d0/grequest  
> 20190221-08:30:43 send message to listeners via realtime api  
> 20190221-08:30:43 gBridge/u796/d0/grequest: EXECUTE  
> 20190221-08:30:43 OnMessage called  
> 20190221-08:30:43 received ‘0’ on ‘gBridge/u796/office/onoff/set’  
> 20190221-08:30:43 Trigger generic card for gBridge/u796/office/onoff/set  
> 20190221-08:30:43 send message to listeners via realtime api  
> 20190221-08:30:43 gBridge/u796/office/onoff/set: 0

---

<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 21, 2019, 8:11am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/29 "2019-02-21T08:11:38Z")

</div>

So messages from the client are not received in the hub. Looks like a communication/registration issue on the app2app interface.

Did you try rebooting Homey and/or restarting the client & hub apps (in this order)?

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 8:57am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/30 "2019-02-21T08:57:46Z")

</div>

Note to self: next time, reboot first, ask questions later 😀 thx for all the help guys. Can someone point me in the direction of a post explaining how to install the HA-branch on my Homey so I can get proper percentage scaling for dimming?

---

<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 21, 2019, 9:08am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/31 "2019-02-21T09:08:48Z")

</div>

YW: [[HOW TO] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198)

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 10:35am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/32 "2019-02-21T10:35:19Z")

</div>

Thanks, got the HA-branch installed, turning on/off is still working, but dimming isn’t. Tried using both the int(0-100) and the float(0-1) settings.  
 ![Capture](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2185fa19ae23b67c0dc32c98a8f3ff03c0b04108.jpeg)  
The blue value is what gets updated when I adjust the brightness through Homey. The red value is what gets updated when changing brightness through Google Home.

When I dim through Homey, this is what shows up in the logs:

Hub

> 20190221-11:23:56 message: office/dim with value: 94  
> 20190221-11:23:56 message: office/dim with value: 94  
> 20190221-11:23:56 Homie set value [office.dim]: 0.94

Client

> 20190221-11:23:56 received ‘94’ on ‘gBridge/u796/office/dim’  
> 20190221-11:23:56 Trigger generic card for gBridge/u796/office/dim  
> 20190221-11:23:56 send message to listeners via realtime api  
> 20190221-11:23:56 gBridge/u796/office/dim: 94  
> 20190221-11:23:56 OnMessage called  
> 20190221-11:23:56 received ‘94’ on ‘gBridge/u796/office/dim’  
> 20190221-11:23:56 Trigger generic card for gBridge/u796/office/dim  
> 20190221-11:23:56 send message to listeners via realtime api  
> 20190221-11:23:56 gBridge/u796/office/dim: 94

When I dim through Google, this is what I see  
Hub

> 20190221-11:27:57 message: office/brightness/set with value: 80  
> Client  
> 20190221-11:27:57 received ‘80’ on ‘gBridge/u796/office/brightness/set’  
> 20190221-11:27:57 Trigger generic card for gBridge/u796/office/brightness/set  
> 20190221-11:27:57 send message to listeners via realtime api  
> 20190221-11:27:57 gBridge/u796/office/brightness/set: 80

Already rebooted this time.

---

<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 21, 2019, 10:46am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/33 "2019-02-21T10:46:47Z")

</div>

Logs are correct. It does even display setting the dim value to .94.  
The int(0…100) setting is the correct one.

@Camelen got this working already?

---

<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 21, 2019, 10:47am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/34 "2019-02-21T10:47:23Z")

</div>

You set it wrong in gBridge. You need to change the /brightness/set tag to /dim/set.

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 10:49am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/35 "2019-02-21T10:49:26Z")

</div>

Yeah, I just figured that out about a minute ago when looking through the logs again. Doh! gBridge defaults to ‘brightness’ where it should be ‘dim’. Thanks so much guys! This will greatly increase the Wife Acceptance Factor of the Homey setup 😉

---

<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 21, 2019, 10:50am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/36 "2019-02-21T10:50:54Z")

</div>

Do you guys think there is any way to get this working with just HOMEY and GBRIDGE

---

<div class="post-metadata">

**Author:** ![Wout\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_f/32/7474_2.png) [@Wout\_F](https://community.homey.app/u/Wout_F)\
**Post date:** [February 21, 2019, 10:53am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/37 "2019-02-21T10:53:07Z")

</div>

Not right now I don’t think. Either the MTTQ Client-app should be updated so that it can directly connect to gBridge, or the Broker-app should get support for bridge-mode.

---

<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 21, 2019, 11:12am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/38 "2019-02-21T11:12:54Z")

</div>

@scanno? ☝

---

<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 21, 2019, 11:47am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/39 "2019-02-21T11:47:16Z")

</div>

The MQTT client supports TLS 1.2 and has the current mqttjs library included.  
It connects fine with a mosquito broker using tls and some other brokers.

Without knowing why exactly the connections is refused by gBridge, I can’t do anything.  
The only thing that I can think of right now is that gBridge requires an encryption standard that is not supported by the tls library used by the mqttjs library.

---

<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 21, 2019, 11:47am UTC](https://community.homey.app/t/guide-to-connecting-gbridge-to-homey-for-google-assistant/9234/40 "2019-02-21T11:47:34Z")

</div>

See 👆

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

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