# Zigbee2MQTT with network gateway

**URL:** <https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930>\
**Category:** Configuration\
**Created:** [February 3, 2023, 12:28pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930 "2023-02-03T12:28:17Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 3, 2023, 12:28pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/1 "2023-02-03T12:28:17Z")

</div>

Hello,

I’m starting to play with Gladys.

I’m using a Lidl gateway modified in the style of Paul Banks.  
I flashed the EZSP firmware to version 3.7.8.0 so that it is compatible with Zigbee2MQTT.

I installed Zigbee2MQTT outside Gladys to be able to connect to the gateway over a wired network.

I can forward the information up to Mosquitto:  
╰─○ mosquitto\_sub -v -t ‹&nbsp;zigbee2mqtt/Prise\_telecommandee&nbsp;›  
zigbee2mqtt/Prise\_telecommandee {«&nbsp;child\_lock&nbsp;»:«&nbsp;UNLOCK&nbsp;»,«&nbsp;current&nbsp;»:0,«&nbsp;energy&nbsp;»:0,«&nbsp;indicator\_mode&nbsp;»:«&nbsp;off/on&nbsp;»,«&nbsp;linkquality&nbsp;»:176,«&nbsp;power&nbsp;»:0,«&nbsp;power\_outage\_memory&nbsp;»:«&nbsp;off&nbsp;»,«&nbsp;state&nbsp;»:«&nbsp;ON&nbsp;»,«&nbsp;update&nbsp;»:{«&nbsp;installed\_version&nbsp;»:192,«&nbsp;latest\_version&nbsp;»:192,«&nbsp;state&nbsp;»:«&nbsp;idle&nbsp;»},«&nbsp;update\_available&nbsp;»:false,«&nbsp;voltage&nbsp;»:233}

How should I retrieve the information into Gladys?  
  
  
On the software side:  
OS: Debian testing  
Zigbee2MQTT: Docker version 1.29.2  
Mosquitto: version 2.0.11 (already used outside Docker)  
Gladys: freshly installed Docker version

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 11:44am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/2 "2023-02-04T11:44:35Z")

</div>

After reading a number of posts, I’m deleting my question.

I’ll post another one about manually starting containers.

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [February 4, 2023, 1:24pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/3 "2023-02-04T13:24:49Z")

</div>

Hello and welcome to the Gladys community.  
It’s not easily possible right now 😐  
By installing Node-RED and converting the messages, it should be doable but I can’t help you with that (I don’t have the skills).  
@VonOx had the same need

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 3:12pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/4 "2023-02-04T15:12:26Z")

</div>

> [@cicoub13](#):
>
> It’s not easily possible at the moment

Thank you for this answer.

What is not possible at the moment: the reporting back of information (as described in my original question) or manually starting the containers?

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 4, 2023, 4:08pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/5 "2023-02-04T16:08:53Z")

</div>

Hi,

For now Gladys launches its own MQTT and Zigbee2MQTT containers.  
You cannot, for now, link Gladys to a Zigbee2MQTT container that you may have already created.

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 4:38pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/6 "2023-02-04T16:38:18Z")

</div>

> [@\_Will\_71](#):
>
> For now Gladys launches its own MQTT container and Zigbee2MQTT

OK that’s what I thought I understood.

But can’t I start them manually, which would allow me to modify the ZigBee2MQTT configuration file?

If so, where can I find these 2 containers?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [February 4, 2023, 4:41pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/7 "2023-02-04T16:41:44Z")

</div>

By running

> docker ps

You’ll get the list of containers if that’s what you’re asking.

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 5:05pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/8 "2023-02-04T17:05:47Z")

</div>

Thank you but that’s not what I’m asking.  
I’m talking about «&nbsp;trouver&nbsp;» in the sense of «&nbsp;download&nbsp;».

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 4, 2023, 5:33pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/9 "2023-02-04T17:33:07Z")

</div>

Once created by Gladys, it is located in /var/lib/gladysassistant/zigbee2mqtt

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/ac0a6e3a83be0a3649acd785655e5352a0c834e5.png)

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 5:36pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/10 "2023-02-04T17:36:05Z")

</div>

I can’t create a ZigBee2MQTT integration because my gateway is not USB, which is why I thought of manually running the containers.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [February 4, 2023, 6:26pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/11 "2023-02-04T18:26:14Z")

</div>

I don’t think that’s possible! I mean, launching an MQTT container and a zigbee2mqtt container is possible directly in Docker, but it’s the connection with Gladys that won’t work.

Otherwise, see @cicoub13’s suggestion of an MQTT container created by Gladys and Node-RED to connect to your zigbee2mqtt

---

<div class="post-metadata">

**Author:** ![jfrousval](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jfrousval](https://community.gladysassistant.com/u/jfrousval)\
**Post date:** [February 4, 2023, 6:42pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/12 "2023-02-04T18:42:41Z")

</div>

It’s even simpler than I feared.

I launched a ZigBee2MQTT integration on the first offered USB, it told me it was OK (very strange though).

I modified /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml to change the serial: settings to add the IP address of my gateway then I «&nbsp;restart&nbsp;» gladys-z2m-zigbee2mqtt.

And I see my ZigBee devices in «&nbsp;Zigbee Network Discovery&nbsp;».

I modified the title.

Thanks to those who helped me.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [February 4, 2023, 10:25pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/13 "2023-02-04T22:25:29Z")

</div>

Great that you found a solution, and welcome to the forum.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 9, 2023, 6:14pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/14 "2023-10-09T18:14:45Z")

</div>

Good evening.  
Sorry to follow up on a thread that may have been resolved, but the title is related to my issue: I’d like to have Gladys communicate with the gateway to which I’ve just connected my Zigbee devices. I was advised to add a gateway because the devices completely discharge in just one night …  
Would any kind soul help me with this, or point me to a document explaining how to proceed?  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 9, 2023, 7:17pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/15 "2023-10-09T19:17:07Z")

</div>

Hi,

You need to provide more information about the gateway you’re using so someone can help you.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 10, 2023, 6:38am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/16 "2023-10-10T06:38:50Z")

</div>

Hello @_Will_71  
Indeed, here is what I have:

- Zigbee gateway «&nbsp;Tuya Multi mode gateway&nbsp;», purchased on AliExpress ([Tuya multi mode zigbee bluetooth gateway hub wireless smart home geräte fernbedienung brücke unterstützung alexa google home - AliExpress 44](https://fr.aliexpress.com/item/1005005876070217.html?spm=a2g0o.order_list.order_list_main.5.66605e5br26maA%5Cu0026gatewayAdapt=glo2fra)),
- Zigbee temperature sensors «&nbsp;ZTH05&nbsp;», also from AliExpress ([Tuya Thermometer Hygrometer Zigbee Temperatur Feuchtigkeit Sensor Mini LCD Digital Display Bluetooth-Kompatibel Für Smart Home - AliExpress 44](https://fr.aliexpress.com/item/1005005627336725.html?spm=a2g0o.order_list_order_list_main.11.66605e5br26maA%5Cu0026gatewayAdapt=glo2fra)),
- USB dongle «&nbsp;ZB-GW04&nbsp;», from the same source ([https://fr.aliexpress.com/item/1005004299922560.html?spm=a2g0o.order\_list.order\_list\_main.76.66605e5br26maA\u0026gatewayAdapt=glo2fra](https://fr.aliexpress.com/item/1005004299922560.html?spm=a2g0o.order_list.order_list_main.76.66605e5br26maA%5Cu0026gatewayAdapt=glo2fra)).

All the sensors were successfully connected to the USB dongle; everything is perfectly recognized by Gladys and Zigbee2MQTT. However, the sensors’ (new) batteries are drained after only one night… I was therefore advised to use a gateway, which I did, and indeed there’s no battery level decrease when the sensors are connected to it. However, they are no longer currently connected to Gladys.

So now, I just want to know how to connect Gladys to the gateway so that it can communicate with the Zigbee devices. I imagine I could communicate once the gateway is connected via the USB dongle? Or in another way, with Gladys and the gateway being on the same network?

Thanks in advance for your help 🙂

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 10, 2023, 7:16am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/17 "2023-10-10T07:16:36Z")

</div>

I don’t see how connecting it to a gateway would make your sensor consume less. In my opinion, at this price you shouldn’t expect better.

You can do a test: since your sensor has a screen, just leave it turned on without connecting it to either the dongle or the gateway and see how long it stays on.

Also, the gateway and your sensors are Tuya-compatible so you have to use that integration.  
But I won’t be able to help you with that, because on my side I use a dongle and not a gateway.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 10, 2023, 11:24am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/18 "2023-10-10T11:24:43Z")

</div>

@_Will_71 Regarding power consumption, proof is in the pudding: all the Zigbee gadgets that had drained the battery overnight when connected to Gladys directly via a USB dongle haven’t even moved by 1% today when they’re connected to the gateway… And I don’t think price reflects quality, because the internal components remain the same, even the PCB, the whole gadget just being sold without white-label branding for 10 euros more… Everyone is free to make their choices 🙂

Regarding the use of Tuya, I refuse to use it. If I switched to Gladys, it’s precisely to avoid having all of my activity on the Internet. Integrating Tuya goes against that by relying on systems «&nbsp;in the Cloud&nbsp;». I want to stay at home, using Zigbee.

Thanks nonetheless for your attention and for your answers 👍 And I’ll try to go further with Zigbee2MQTT via a gateway …

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 10, 2023, 12:03pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-avec-passerelle-reseau/7930/19 "2023-10-10T12:03:44Z")

</div>

I agree with you about using it locally.

There, I doubt that without tinkering you’ll be able to connect your gateway to Gladys. But if you manage, make a tutorial — it might help other people.

Currently in Gladys, either you use an integration (Tuya, Xiaomi,…) or you go with a dongle and a zigbee2mqtt container.

So what I’m interested in is: how do you connect to your gateway?
