# Link between z2mqtt and Gladys

**URL:** <https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989>\
**Category:** Configuration\
**Created:** [June 29, 2024, 8:03am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989 "2024-06-29T08:03:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [June 29, 2024, 8:03am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/1 "2024-06-29T08:03:18Z")

</div>

Hello,

I’m trying to catch up a bit and I came up with a question:  
How can I find the link between a Zigbee2mqtt device and Gladys?

Let me explain: I found my Zigbee device on Zigbee2mqtt thanks to the log; I have its ID — how can I find that ID in Gladys to know which device it corresponds to?  
Because of course I gave names to the devices in Gladys, not IDs…

And while writing this message, I realized that it’s possible to search for this ID in the search input of Gladys’s z2m integration:

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

**This is really great!**  
But is this capability indicated anywhere?  
I don’t see it in the docs nor on the input itself.

Shouldn’t there be a tooltip indicating that you can search by ID and by name?  
Or add a «&nbsp;Search&nbsp;» section to [Gérez ses appareils Zigbee dans sa domotique avec une clé USB Zigbee et Zigbee2mqtt | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/zigbee2mqtt/) ?

Especially since the ID doesn’t appear anywhere in the device information, so (personally) I absolutely didn’t expect that it would work.

In conclusion, a great feature when you have quite a few Zigbee devices but one that’s not highlighted at all.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 29, 2024, 9:52am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/2 "2024-06-29T09:52:36Z")

</div>

Hi @Hizo! You’re right, it would be nice to mention that — it could be in the search placeholder.

In fact, the search looks in both the name and the «&nbsp;external\_id&nbsp;» on the Gladys side, which contains «&nbsp;zigbee2mqtt:ID\_ZIGBEE2MQTT&nbsp;».

If I remember correctly, we hid the ID in the list because otherwise it makes blocks that are too big and when you have a lot of devices it creates a list that’s too long to scroll.

A little tip (for next time): I recommend renaming devices on the Zigbee2mqtt side so it’s easier to spot them. The ID generated by Zigbee2mqtt isn’t very user-friendly.

For example on my setup it looks like this — I put everything in snake\_case with a convention: «&nbsp;device\_type\_room&nbsp;»

 ![Screenshot 2024-06-29 at 11.50.31](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/3/7355dab904b61edf03b060cf3310759c5f7e6ffd.jpeg)  
 ![Screenshot 2024-06-29 at 11.50.58](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/3/231dc6d6642e4da23b4afadf255be3582b77544d.jpeg)

It’s cleaner.

However, if you rename your devices, you need to reconnect everything in Gladys because the ID will be different 😉

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [June 29, 2024, 12:31pm UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/3 "2024-06-29T12:31:21Z")

</div>

It might be good to display the ID when you open the device so as to also link to z2m (or even create a real link to the device’s page on z2m).

Yes, I suspected you shouldn’t rename it afterwards, so I won’t touch it now.

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [June 23, 2025, 10:29am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/4 "2025-06-23T10:29:06Z")

</div>

Hello,

I’m following up on the idea of simply displaying the zigbee2mqtt id in the configuration view of a zigbee device, like where I’ve highlighted:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/b/c/bc53754417ac383a74add3edc7c793b6e6306738.png)

Because honestly, it’s really cumbersome to find a device in zigbee2mqtt if it hasn’t been named the same way as in Gladys.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 23, 2025, 11:38am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/5 "2025-06-23T11:38:49Z")

</div>

Good idea, are you creating a feature request? 🙂

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [June 23, 2025, 11:56am UTC](https://community.gladysassistant.com/t/lien-entre-z2mqtt-et-gladys/8989/6 "2025-06-23T11:56:58Z")

</div>

It’s done: [Ajout de l'id Zigbee2Mqtt dans la configuration des appareils](https://community.gladysassistant.com/t/ajout-de-lid-zigbee2mqtt-dans-la-configuration-des-appareils/9616)
