# zigbee2mqtt error message

**URL:** <https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846>\
**Category:** Configuration\
**Created:** [January 23, 2022, 9:15pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846 "2022-01-23T21:15:21Z")\
**Posts on this page:** 20\
**Page:** 4

<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:** [May 2, 2022, 9:31am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/61 "2022-05-02T09:31:55Z")

</div>

Hello everyone 🙂

I’m bumping this post to try to unblock the situation. With @lmilcent on vacation, does anyone have Zigbee at home and could test @AlexTrovato’s PR, particularly the behavior with wireless buttons?

[https://community.gladysassistant.com/t/message-derreur](https://community.gladysassistant.com/t/message-derreur)

---

<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:** [May 2, 2022, 9:46am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/62 "2022-05-02T09:46:17Z")

</div>

For my part I’d really like to, but you’d need to be able to configure your own MQTT server because when everything is in production you can’t test on another instance.

You have to admit it’s not easy to test.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [May 2, 2022, 10:09am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/63 "2022-05-02T10:09:43Z")

</div>

I admit that, like @VonOx, I don’t know where to start to test without risking breaking production for the duration of the test…

- If we shut down production for the duration of the test? Will the config be restored?
- Is it better to make a copy of the current production SSD and test?
- Does it only affect certain types of buttons? For my part I only have simple buttons / presence detectors / door tags, is it worth testing?

---

<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:** [May 2, 2022, 10:24am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/64 "2022-05-02T10:24:19Z")

</div>

Same question as Thomas.  
As for me, I only have a [SNZB 01](https://www.domadoo.fr/fr/peripheriques/5259-sonoff-interrupteur-sans-fil-zigbee-30-snzb-01.html?domid=17)

---

<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:** [May 2, 2022, 10:34am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/65 "2022-05-02T10:34:10Z")

</div>

Indeed these are real questions — if it’s hard to test, nobody tests and I completely understand you! I wouldn’t know how to answer, you’d need to check with @AlexTrovato or @cicoub13.

Would someone like to take the lead on this topic? (Set up a clear protocol for testing Zigbee2mqtt?)

To come back to the original subject, if the conclusion is that we’re not ready to release these Zigbee2mqtt improvements in the short term, I propose reverting the commit [Zigbee2mqtt : Handle custom device mappings (#1383) · GladysAssistant/Gladys@8581d2e · GitHub](https://github.com/GladysAssistant/Gladys/commit/8581d2ec70616eddb6f776ea50de844d7c6368bd) to unblock master. Then, @AlexTrovato I suggest you open a PR that includes all the Zigbee2mqtt improvements (this commit + your button fix), and that we do more intensive testing once someone here has put in place a non-breaking test protocol. We’ll merge later when it’s ready.

What do you think?

Because on my side several of you tag me on topics asking when there will be a release of various fixes, and in the meantime I’m powerless and stuck 🤷‍♂️

---

<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:** [May 2, 2022, 10:37am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/66 "2022-05-02T10:37:18Z")

</div>

And wouldn’t backing up the DB and all the devices via Gladys Plus be a solution?

---

<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:** [May 2, 2022, 10:38am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/67 "2022-05-02T10:38:13Z")

</div>

No, because the Zigbee2mqtt integration is not currently able to recover on its own after a restore.

---

<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:** [May 2, 2022, 10:48am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/68 "2022-05-02T10:48:41Z")

</div>

Yes, I’m talking about this thread.

> [@Remettre en place le fichier gladys-production.db](https://community.gladysassistant.com/t/remettre-en-place-le-fichier-gladys-production-db/7144):
>
> Bonjour, dans à la conversation : [Retours et demandes en vrac - #4 par pierre-gilles](https://community.gladysassistant.com/t/retours-et-demandes-en-vrac/6474/4) Je demandais comment sauvegarder les configs, Pierre-Giles disait : Tu vas dans le dossier où tu as sauvegardé ta configuration (regarde le volume Docker que tu as mis) Par défaut sur le site on met tout dans “/var/lib/gladysassistant” Dans ce dossier il y a un dossier SQlite: c’est la DB de Gladys qui contient toute ta configuration, tu peux le mettre de côté slight_smile Le seul truc qui sera pas gard…

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [May 2, 2022, 10:53am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/69 "2022-05-02T10:53:50Z")

</div>

Ok so, following @_Will_71’s post, you think that by just retrieving these files we’re good.

Listen, that needs to be confirmed. I’m ready to test it as well; my zigbee2mqtt setup isn’t critical at the moment.

---

<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:** [May 2, 2022, 10:55am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/70 "2022-05-02T10:55:59Z")

</div>

Maybe it would be best to create another topic to talk about that famous Zigbee2mqtt test protocol?

Can someone take the lead, and we’ll keep this topic to discuss @lmilcent’s original bug.

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [May 2, 2022, 7:45pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/71 "2022-05-02T19:45:56Z")

</div>

@AlexTrovato Did you compile a recent image?

---

<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:** [May 2, 2022, 10:59pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/72 "2022-05-02T22:59:17Z")

</div>

Good evening,

Here are the tests I carried out.

Shutdown of my RPI (Raspberry Pi) that runs Gladys in production. I then retrieved the SONOFF Zigbee dongle and plugged it into an old server running Ubuntu.  
I installed @AlexTrovato’s image (I hope it’s the right image to test) and reimported the Gladys database from my RPI as well as the zigbee2mqtt files.

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

Then I started Gladys, checked the logs and started the z2m service and I successfully recovered all my devices without needing to re-pair them.

I tested my Xiaomi button and here are the values it returns  
1 click =\> 1  
2 clicks =\> 2  
long press =\> 5

I put my Zigbee dongle back on my RPI, restarted and I get the same values on my button  
1 click =\> 1  
2 clicks =\> 2  
long press =\> 5

Let me know if you need any other tests.

---

<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:** [May 3, 2022, 5:24am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/73 "2022-05-03T05:24:02Z")

</div>

The image is atrovato/zigbee2mqtt. It contains the small fix for the click button.

Thank you!!!

---

<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:** [May 3, 2022, 8:00am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/74 "2022-05-03T08:00:52Z")

</div>

Hi @_Will_71 and thanks a lot for volunteering to test!

Great that it’s working 🙂

@AlexTrovato since this test is successful, are there any other things left to test? Are you confident that for the rest it’s safe and that there are no risks to deploy this to production now, or do you prefer the revert-the-commit + more testing approach?

---

<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:** [May 3, 2022, 10:35am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/75 "2022-05-03T10:35:36Z")

</div>

@pierre-gilles, with pleasure — I’ll try to contribute as much as I can for now 😉

---

<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:** [May 3, 2022, 11:09am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/76 "2022-05-03T11:09:28Z")

</div>

I’m fairly confident. There’s still work to do on z2m, but these changes allow all binary devices to work, since z2m provides different behavior for each device.

---

<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:** [May 3, 2022, 1:39pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/77 "2022-05-03T13:39:50Z")

</div>

Ok, I trust you then 😃

Edit: It’s merged!

---

<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:** [May 3, 2022, 7:28pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/78 "2022-05-03T19:28:22Z")

</div>

It’s deployed!

> [@Gladys Assistant v4.8.4 est disponible avec de nombreux correctifs!](https://community.gladysassistant.com/t/gladys-assistant-v4-8-4-est-disponible-avec-de-nombreux-correctifs/7244):
>
> Salut à tous, Je suis heureux de sortir aujourd’hui Gladys Assistant 4.8.4, une mise à jour qui apporte des améliorations dans tous les sens slight_smile Au niveau du Zigbee, cette PR apporte un support de nombreux appareils supplémentaires, grâce au travail de @AlexTrovato ([#1383](https://github.com/GladysAssistant/Gladys/pull/1383)) Ajout de nombreuses unités et types d’appareils dans Gladys (Monnaies, vitesse, pression, et bien plus !!) Merci @VonOx ( [#1479](https://github.com/GladysAssistant/Gladys/pull/1479)) La synchronisation avec les calendriers Caldav est plus robuste, merci @bertrandda …

---

<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:** [May 5, 2022, 11:06am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/79 "2022-05-05T11:06:22Z")

</div>

So I’m not sure that @lmilcent’s mapping issue only concerned the wireless switches. Since upgrading to v4.8.4 my contact sensors are working backwards and as a result they break my open-detection scenes.  
In the image below all my windows are closed but I have the icon showing the window open!

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

Below is the value in zigbee2mqtt

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

---

<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:** [May 5, 2022, 11:22am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/80 "2022-05-05T11:22:37Z")

</div>

Yep, me too, it’s the same as you @_Will_71  
It’s reversed.

[Previous page](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846.md?page=3)

[Next page](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846.md?page=5)
