# Zigbee2mqtt - Debug

**URL:** <https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080>\
**Category:** Développement\
**Tags:** zigbee2mqtt\
**Created:** [February 1, 2021, 12:57pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080 "2021-02-01T12:57:33Z")\
**Posts on this page:** 20\
**Page:** 8

<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:** [March 7, 2022, 10:38am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/142 "2022-03-07T10:38:11Z")

</div>

What needs to be tested here?

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [March 7, 2022, 10:46am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/143 "2022-03-07T10:46:04Z")

</div>

I have an alarm… but I don’t know how to test this PR to give feedback… 😕

---

<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:** [March 7, 2022, 10:52am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/144 "2022-03-07T10:52:01Z")

</div>

For information, there is a double discussion regarding this PR, I am adding the link to the other discussion:

> [@Message d'erreur zigbee2mqtt](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/18?u=pierre-gilles):
>
> J’ai modifié pour ne plus stocker l’information car lorsque que Gladys se connecte au mqtt de zigbee, il récupère les devices au format z2m et les stock. Donc je les réutilise, fais le mapping inverse, pour envoyer le bon message. Donc ça reste en RAM, et on est sûr d’avoir les dernières informations fraîches, au cas où les devices z2m evoluent. @jparbel tente de tester l’image générée atrovato/gladys:zigbee2mqtt EDIT : appel aux autres motivés pour également tester cette nouvelle image (que…

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 14, 2022, 10:02pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/145 "2022-03-14T22:02:15Z")

</div>

Good evening  
My turn to post a Zigbee problem.  
I had installed the Sonoff key and the Zigbee mqtt2 integration worked fine the first time. I installed a Sonoff click button without any problem. Today I changed my box (now RedSfR) and when I reinstalled Gadys, I noticed this, no link between zigbee and Mqtt:

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

I no longer have access to the association switch (it is frozen) and I no longer have access to the «&nbsp;IPGladys:8080&nbsp;» address (maybe that’s normal 🤔). I checked the Sonoff key and I have the following message:

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

I checked that all services were launched on Putty:

```auto
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
 eclipse-mosquitto:2 "/docker-entrypoint.…" 5 days ago Up 6 hours eclipse-mosquitto
   eclipse-mosquitto:2 "/docker-entrypoint.…" 5 days ago Up 3 minutes gladys-z2m-mqtt
gladysassistant/gladys:v4 "docker-entrypoint.s…" 6 days ago Up 6 hours gladys
  koenkk/zigbee2mqtt:latest "docker-entrypoint.s…" 12 days ago Up 24 seconds gladys-z2m-zigbee2mqtt
 nodered/node-red:latest "npm --no-update-not…" 3 weeks ago Up 6 hours (healthy) node_red
containrrr/watchtower:latest "/watchtower --clean…" 7 weeks ago Up 6 hours 8080/tcp watchtower

```

Does anyone have any ideas to help me out?  
Thanks to you

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 14, 2022, 10:54pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/146 "2022-03-14T22:54:17Z")

</div>

> [@Psoy](#):
>
> 24 seconds gladys-z2m-

It seems that the container reboots every 20 seconds or so

`````auto
koenkk/zigbee2mqtt:latest "docker-entrypoint.s…" 12 days ago Up 18 seconds gladys-z2m-zigbee2mqtt
koenkk/zigbee2mqtt:latest "docker-entrypoint.s…" 12 days ago Up 18 seconds gladys-z2m-zigbee2mqtt
koenkk/zigbee2mqtt:latest "docker-entrypoint.s…" 12 days ago Up 1 second gladys-z2m-zigbee2mqtt````
`````

---

<div class="post-metadata">

**Author:** ![ProtZ](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/protz/32/1641_2.png) [@ProtZ](https://community.gladysassistant.com/u/ProtZ)\
**Post date:** [March 15, 2022, 12:53am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/147 "2022-03-15T00:53:54Z")

</div>

@Psoy: z2m-zigbee2mqtt runs on port 8080, can you change gladys to 8090 and let me know if it’s okay?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 15, 2022, 7:58am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/148 "2022-03-15T07:58:13Z")

</div>

> [@ProtZ](#):
>
> you can change gladys to 8090

Hello ProtZ,  
🤔 how can I do that?  
thanks

---

<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:** [March 15, 2022, 9:17am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/149 "2022-03-15T09:17:26Z")

</div>

For me there’s no connection with the Gladys port or Zigbee2MQTT

Gladys is on port 80 and the Zigbee2MQTT management interface on port 8080.

What could help is the logs of the Zigbee2MQTT container, at least we’ll see why it restarts.

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 15, 2022, 9:20am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/150 "2022-03-15T09:20:50Z")

</div>

Bonjour VonOx  
voici les logs  
Using ‘/app/data’ as data directory  
Zigbee2MQTT:info 2022-03-15 09:17:19: Logging to console and directory: ‘/app/data/log/2022-03-15.09-17-15’ filename: log.txt  
Zigbee2MQTT:info 2022-03-15 09:17:19: Starting Zigbee2MQTT version 1.24.0 (commit #7a2ddf2)  
Zigbee2MQTT:info 2022-03-15 09:17:19: Starting zigbee-herdsman (0.14.20)  
Zigbee2MQTT:error 2022-03-15 09:17:40: Error while starting zigbee-herdsman  
Zigbee2MQTT:error 2022-03-15 09:17:40: Failed to start zigbee  
Zigbee2MQTT:error 2022-03-15 09:17:40: Check [Zigbee2MQTT fails to start | Zigbee2MQTT](https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html) for possible solutions  
Zigbee2MQTT:error 2022-03-15 09:17:40: Exiting…  
Zigbee2MQTT:error 2022-03-15 09:17:40: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)  
at ZStackAdapter.start (/app/node\_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)  
at Controller.start (/app/node\_modules/zigbee-herdsman/src/controller/controller.ts:123:29)  
at Zigbee.start (/app/lib/zigbee.ts:58:27)  
at Controller.start (/app/lib/controller.ts:100:27)  
at start (/app/index.js:101:5)  
Using ‘/app/data’ as data directory

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [March 15, 2022, 9:26am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/151 "2022-03-15T09:26:13Z")

</div>

> [@Psoy](#):
>
> Zigbee2MQTT:error 2022-03-15 09:17:40: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

Maybe you changed the USB port to which you connected your dongle?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 15, 2022, 9:30am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/152 "2022-03-15T09:30:08Z")

</div>

Hello Guim31,

No, I didn’t change it, and when I refresh the port list, the Sonoff dongle does appear. I will double-check that.

---

<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:** [March 15, 2022, 9:48am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/153 "2022-03-15T09:48:26Z")

</div>

> [@Psoy](#):
>
> Zigbee2MQTT:error 2022-03-15 09:17:40: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

You have exactly the same issue as @Tlse-vins who also recently reinstalled:

> [@Zigbee2mqtt : Error SYS - Ping after 6000ms au démarrage](https://community.gladysassistant.com/t/probleme-zigbee2mqtt/7058/4?u=pierre-gilles):
>
> J’ai trouvé une explication mais je ne sais pas ce qu’il faut faire et si je dois faire quoique se soit [https://electrolama.com/radio-docs/troubleshooting/](https://electrolama.com/radio-docs/troubleshooting/)

Regression on the Zigbee2MQTT side?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [March 15, 2022, 11:34am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/154 "2022-03-15T11:34:52Z")

</div>

While discussing with @jparbel, he noticed that the Sonoff dongle did not work as well as another one (brand unknown at the moment, still being researched).  
Everything might be connected!!!

---

<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:** [March 15, 2022, 11:37am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/155 "2022-03-15T11:37:07Z")

</div>

I see similar errors on the Github Zigbee2mqtt side:

> <https://github.com/Koenkk/zigbee2mqtt/issues/11846>
>
> \### What happened?
> 
> Hi all,
> 
> i have issies to connect to my adapter.
> It is co…nnected to an RPi4, but i also tried it with my laptop power adapter.
> If i use my old stick everything is working fine, but as soon as i am switching to the new adapter (CC2652P with actual FW) it is not working anymore.
> It was working in the past, so i was the opinion maybe it is really related to the power adapter. But this is not the case.
> 
> Error is: Zigbee2MQTT:error 2022-03-14 18:22:20: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
> 
> Correct port is configured and the user has access to the port (tried the script in FAQ).
> Any hints?
> 
> Thanks,
> Ede
> 
> \### What did you expect to happen?
> 
> Adapter was recognized and Zigbee2mqtt started.
> 
> \### How to reproduce it (minimal and precise)
> 
> \_No response\_
> 
> \### Zigbee2MQTT version
> 
> newest
> 
> \### Adapter firmware version
> 
> 20211217
> 
> \### Adapter
> 
> Itead Sonoff 3.0 CC2652P
> 
> \### Debug log
> 
> debug 2022-03-14 18:21:59: Loaded state from file /opt/zigbee2mqtt/data/state.json
> info 2022-03-14 18:21:59: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2022-03-14.18-21-57' filename: log.txt
> debug 2022-03-14 18:21:59: Removing old log directory '/opt/zigbee2mqtt/data/log/2022-03-14.17-44-46'
> info 2022-03-14 18:21:59: Starting Zigbee2MQTT version 1.24.0 (commit #7a2ddf24)
> info 2022-03-14 18:21:59: Starting zigbee-herdsman (0.14.20)
> debug 2022-03-14 18:21:59: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator\_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":\[11\],"extendedPanID":\[221,221,221,221,221,221,221,221\],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/serial/by-id/usb-ITead\_Sonoff\_Zigbee\_3.0\_USB\_Dongle\_Plus\_629f0177b0c9eb118855914f1d69213e-if00-port0"}}'
> error 2022-03-14 18:22:20: Error while starting zigbee-herdsman
> error 2022-03-14 18:22:20: Failed to start zigbee
> error 2022-03-14 18:22:20: Check https://www.zigbee2mqtt.io/guide/installation/20\_zigbee2mqtt-fails-to-start.html for possible solutions
> error 2022-03-14 18:22:20: Exiting...
> error 2022-03-14 18:22:20: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
> at ZStackAdapter.start (/opt/zigbee2mqtt/node\_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
> at Controller.start (/opt/zigbee2mqtt/node\_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
> at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:58:27)
> at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:100:27)
> at start (/opt/zigbee2mqtt/index.js:101:5)

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 15, 2022, 11:37am UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/156 "2022-03-15T11:37:08Z")

</div>

After several tweaks, I finally restarted the Zigbee. The one that worked.

1. I slid the «&nbsp;Zigbee2mqtt service activation&nbsp;» switch to Off.  
Then in Putty
2. I stopped all services: ` docker stop $(docker ps -a -q)`
3. I deleted the two containers concerned: ` docker rm gladys-z2m-zigbee2mqtt` and  
` docker rm gladys-z2m-mqtt`.
4. I restarted all the containers: ` docker start $(docker ps -a -q)`  
and I reinstalled Zigbee2mqtt, just like the first time, and everything started again 🥵  
Sonoff click connection attempt 😩  
I was too happy, but I have a problem with the Sonoff click button, I installed it correctly, it appears in the logs, in the dashboard as well, but it does not transmit any values 😩

---

<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:** [March 15, 2022, 12:47pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/157 "2022-03-15T12:47:37Z")

</div>

For as long as I’ve struggled, I must have been one of the first to report this bug.  
I thought I had broken everything again!!

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 15, 2022, 9:11pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/158 "2022-03-15T21:11:12Z")

</div>

> [@Tlse-vins](#):
>
> I thought I had broken everything again!!

This is the feeling I sometimes have, after tinkering without really understanding what I’m doing.  
This is the case for my Sonoff sensor, everything was working before, and now no sound, no image 😀

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 16, 2022, 10:01pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/159 "2022-03-16T22:01:13Z")

</div>

> [@Psoy](#):
>
> This is the case for my Sonoff sensor, everything was working before. And now no sound, no image

I don’t know if Gladys is being capricious 🤫 or if zigbee2mqtt is acting up, but today my Sonoff sensor started acting up 🤪 and I also paired two Xiaomi click buttons. Today was a day with 😉  
By the way, I think we’ve already talked about this, but I confirm that the same Xiaomi click button is not handled the same way when paired with zigbee2mqtt or with the Xiaomi or Node Red integration in the first case:  
1 click = 1  
2 clicks = 2  
long press = 5  
release = release  
In the following cases:  
1 click = 1  
2 clicks = 2  
long press = 3  
release = 4  
Good evening to everyone

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [March 18, 2022, 7:37pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/160 "2022-03-18T19:37:01Z")

</div>

Hummm.  
Indeed, for the buttons, we’re still in a blur…

Otherwise, do we have other feedback regarding the integration of alarms or others?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [March 18, 2022, 9:02pm UTC](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/161 "2022-03-18T21:02:32Z")

</div>

> [@AlexTrovato](#):
>
> Indeed, for the buttons, we are still in the dark…

Good evening,  
I can confirm this to you, I have switched my 4 Xiaomi switches from the Xiaomi integration (and I also used it with Node RED) to the zigbee2mqtt integration 😉

[Previous page](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080.md?page=7)

[Next page](https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080.md?page=9)
