# Zigbee2mqtt: Docker test image based on Gladys v4

**URL:** <https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746>\
**Category:** Développement\
**Created:** [November 15, 2020, 10:41am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746 "2020-11-15T10:41:16Z")\
**Posts on this page:** 10\
**Page:** 21

<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:** [July 14, 2021, 7:41am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/405 "2021-07-14T07:41:28Z")

</div>

> [@cicoub13](#):
>
> It should arrive soon in the version available to everyone 🚀

It’s available in the latest dev build! 🙂

---

<div class="post-metadata">

**Author:** ![Albenss](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/albenss/32/3916_2.png) [@Albenss](https://community.gladysassistant.com/u/Albenss)\
**Post date:** [July 22, 2021, 9:03pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/406 "2021-07-22T21:03:41Z")

</div>

Hello, I would like to test some things with zigbee2mqtt from Node-red, is there a «&nbsp;simple&nbsp;» way to know the id / password of the Mqtt container created by Zigbee2mqtt?

---

<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:** [July 26, 2021, 1:45am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/407 "2021-07-26T01:45:16Z")

</div>

Well, I don’t know if this is a «&nbsp;simple&nbsp;» way, but it seems that the username/password pair is stored in a file in /var/lib/gladysassistant on your machine 🙂

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [July 26, 2021, 5:12am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/408 "2021-07-26T05:12:06Z")

</div>

Hello

Sorry for the delayed response! It’s summer 😅

I just looked at the topic and bad news, the password is hashed (stored in an unreadable way) in the file `/var/lib/gladysassistant/zigbee2mqtt/mqtt/mosquitto_passwd`.

We would need to check directly in the container if we can retrieve the password in plain text. If I find it, I’ll let you know @Albenss!

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [July 26, 2021, 5:19am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/409 "2021-07-26T05:19:00Z")

</div>

As @pierre-gilles says, it is in the database, it’s the only way for the moment.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [July 26, 2021, 5:22am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/410 "2021-07-26T05:22:09Z")

</div>

At my place, the `z2m` account doesn’t seem to have a password. This account is used by zigbee2mqtt to communicate with the MQTT server.

I don’t know if it’s allowed to communicate locally only or not. If so, you won’t be able to use this account to interconnect because you will send requests from outside.

Maybe @cicoub13 will have more information to provide?

---

<div class="post-metadata">

**Author:** ![Albenss](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/albenss/32/3916_2.png) [@Albenss](https://community.gladysassistant.com/u/Albenss)\
**Post date:** [July 26, 2021, 6:16am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/411 "2021-07-26T06:16:58Z")

</div>

Hello, from my side the only «&nbsp;easy&nbsp;» way to make the connection via NodeRed is to create a new identifier on the MQTT container via ssh

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [July 26, 2021, 6:30am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/412 "2021-07-26T06:30:08Z")

</div>

I indeed think that this is the simplest and most effective way.

---

<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:** [August 1, 2021, 5:27pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/413 "2021-08-01T17:27:36Z")

</div>

There are two accounts created with the zigbee2mqtt service in Gladys.

The account `z2m` (which allows the zigbee2mqtt container to connect to Mqtt). You will find the login/password under the variables Z2M\_MQTT\_USERNAME/Z2M\_MQTT\_PASSWORD in the `t_variable` table.

The account `gladys` (which allows the gladys container to connect to Mqtt). You will find the login/password under the variables GLADYS\_MQTT\_USERNAME/GLADYS\_MQTT\_PASSWORD in the `t_variable` table.

I think the best is indeed to create a new user.

@VonOx asked me to be able to use the zigbee2mqtt service with an already existing Mqtt container (which would meet your need). I need to get to it 😅

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [September 5, 2021, 8:34am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746/414 "2021-09-05T08:34:59Z")

</div>

I made a PR that adds a few devices.

I think the priority for this integration will be feature detection or a way to be in sync with the devices on the z2m repo.

The exposes is the solution to our issues

> **[Exposes | Zigbee2MQTT](https://www.zigbee2mqtt.io/information/exposes.html)**
>
> Zigbee to MQTT bridge, get rid of your proprietary Zigbee bridges

[Previous page](https://community.gladysassistant.com/t/zigbee2mqtt-image-docker-de-test-basee-gladys-v4/5746.md?page=20)
