# 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:** 5

<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:** [May 5, 2022, 2:34pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/81 "2022-05-05T14:34:31Z")

</div>

Same here ^^

---

<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:** [May 5, 2022, 4:09pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/82 "2022-05-05T16:09:05Z")

</div>

Indeed, it’s the same for me, but I prefer that state, because to me it’s more consistent to have the icon crossed out when the door or window is closed. When my Xiaomi contact sensors were managed by the Xiaomi integration, they appeared as above, but when I switched to the Zigbee integration they ended up reversed. I think in Zigbee2MQTT they were configured the other way around.

---

<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 5, 2022, 6:16pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/83 "2022-05-05T18:16:39Z")

</div>

Ahhh I’m going to get scolded!!!

Are you sure about your move?

I admit that the «&nbsp;slashed shield&nbsp;» icon isn’t exactly clear to me.

But I may have swapped 0/1 false/true.

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [May 5, 2022, 6:21pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/84 "2022-05-05T18:21:52Z")

</div>

This ambiguous icon — we’re talking about it here just in case

> [@Affichage capteur ouverture](https://community.gladysassistant.com/t/affichage-capteur-ouverture/6989?u=spenceur):
>
> Hello ! Je me demande s’il est possible d’avoir un affichage plus clair que cette icône pour ce type de capteur. Un peux dans ce style là mais avec les mots ouvert, fermé ou bien oui/non comme indiqué sur le libellé: Mes deux portes sont bien fermé, mais une est considérée ouverte laquelle, c’est pas très explicite smiley ? Pour moi cette icône irait mieux à une alarme et encore, je préfère avoir du test armé, désa…

---

<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 5, 2022, 6:26pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/85 "2022-05-05T18:26:33Z")

</div>

Hmmm  
So I see that if the contact is made, then we have «&nbsp;true&nbsp;» as the value, but Gladys doesn’t talk about «&nbsp;contact&nbsp;» but «&nbsp;opening&nbsp;».  
The notions are therefore reversed.

Contact sensor = checks that it’s closed  
Open sensor = checks that it’s open…

Darn. I didn’t see that.

---

<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:** [May 5, 2022, 8:03pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/87 "2022-05-05T20:03:24Z")

</div>

Good evening @ Alex Trovato  
At the risk of being booed, seeing the icon crossed out when the door or window is closed is more intuitive (notion of a barrier). Moreover, leaving it like this brings us back to the same logic as the Xiaomi integration. Indeed, showing open or closed would solve the problem. 😃

---

<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, 8:39pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/88 "2022-05-05T20:39:46Z")

</div>

It’s true that these icons aren’t very clear; to me it made more sense the other way around, but that could be a long debate I think 🙂

Also, you really need to be sure about the returned value, because if we leave it like this I’ll have to redo all my scenes where I take these sensors into account

---

<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 6, 2022, 7:55am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/89 "2022-05-06T07:55:58Z")

</div>

> [@AlexTrovato](#):
>
> Ahhh I’m going to get in trouble!!!  
> Are you sure about that?

!!! 😃

Aha don’t worry it happens, and besides it’s actually a good opportunity to change those not very clear icons, we could switch to a closed / open padlock?

Open:

 ![Screenshot 2022-05-06 at 08.55.39](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/99d1cb5b3a936c4448a907618964bd4624c71256.png)

Closed:

 ![Screenshot 2022-05-06 at 08.55.36](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/6/64164aa6416329b2cddb01f99678c24a048e695d.png)

---

<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 6, 2022, 9:25am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/90 "2022-05-06T09:25:55Z")

</div>

I agree with these icons,  
When seeing an open or closed padlock, we have fewer questions, I think

---

<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:** [May 6, 2022, 2:56pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/91 "2022-05-06T14:56:37Z")

</div>

[quote=«&nbsp;\_Will\_71, post:79, topic:6846&nbsp;»]  
So I’m not sure that @l

---

<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 9, 2022, 8:04am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/92 "2022-05-09T08:04:44Z")

</div>

FYI, @AlexTrovato made a PR to fix the inverted behavior on the door open sensors!

> <https://github.com/GladysAssistant/Gladys/pull/1517>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- ~~\[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)~~
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- ~~\[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)~~
> \- ~~\[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).~~
> \- ~~\[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).~~
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Reverse z2m contact values for opening\_sensor
> https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/79?u=alextrovato
> 
> \---
> 
> Gladys z2m mapping feature now declares a "reversed" attribute to reverse true/false values.

Since he can’t test it, I’d welcome real-world feedback on this PR! I asked him to make a Docker build for you, which he will post here.

I know

---

<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 9, 2022, 8:25am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/93 "2022-05-09T08:25:05Z")

</div>

I would test tonight.

---

<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 9, 2022, 10:40am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/94 "2022-05-09T10:40:55Z")

</div>

Image currently being built.  
`atrovato/gladys:zigbee2mqtt`  
It will be available tonight 😉

---

<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 9, 2022, 8:00pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/95 "2022-05-09T20:00:52Z")

</div>

@pierre-gilles, @AlexTrovato  
I just tested and my open/close sensors have returned to how they were and my scenes are working again! 😀 👍

Here is an image with my windows/doors closed.

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

---

<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 13, 2022, 8:07am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/96 "2022-05-13T08:07:03Z")

</div>

I just merged the PR 🙂 Thanks @AlexTrovato for the fix and @_Will_71 for the tests 🙂

---

<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 13, 2022, 4:38pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/97 "2022-05-13T16:38:28Z")

</div>

Patch deployed to production! 🙂

> [@Gladys Assistant v4.8.5 est disponible, avec 2 correctifs!](https://community.gladysassistant.com/t/gladys-assistant-v4-8-5-est-disponible-avec-2-correctifs/7285):
>
> Salut à tous, J’ai déployé cet après midi Gladys Assistant v4.8.5, une mise à jour qui apporte 2 correctifs: Un fix sur l’intégration Zigbee2mqtt ou certains appareils binaires étaient inversés (Porte ouverte/fermée). Fix par @AlexTrovato [#1517](https://github.com/GladysAssistant/Gladys/pull/1517) Une migration de base de donnée pour nettoyer certaines valeurs agrégées de capteurs qui ont été sauvegardés en «&nbsp;NaN&nbsp;» dans la DB dans le passé, et qui remplissent la base de donnée inutilement. @lmilcent c’est pour toi celle là wink [#1513](https://github.com/GladysAssistant/Gladys/pull/1513) Cette …

---

<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 14, 2022, 11:05am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/98 "2022-05-14T11:05:17Z")

</div>

I confirm that it’s working again! Thanks @AlexTrovato

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [May 14, 2022, 11:14am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/99 "2022-05-14T11:14:37Z")

</div>

So it seems better but I still have the old icons, is that normal ?

I’m referring to this message (I haven’t checked whether this was part of the merge request)

> [@Message d'erreur zigbee2mqtt](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/89?u=spenceur):
>
> !!! smiley Aha tkt ça arrive, et puis c’est l’occasion justement de changer ces icônes pas super explicite, on pourrait passer à un cadenas fermé / ouvert ? Ouvert: [Screenshot 2022-05-06 at 08.55.39] Fermé: [Screenshot 2022-05-06 at 08.55.36]

---

<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 14, 2022, 1:08pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/100 "2022-05-14T13:08:33Z")

</div>

Yes, that’s normal, the fix wasn’t in the frontend as I thought but in the Zigbee2mqtt service. Alex’s PR (pull request) was only there to fix this bug as quickly as possible 🙂 My comment was just a suggestion.

---

<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 25, 2022, 8:35am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/101 "2022-05-25T08:35:18Z")

</div>

Last night I started explaining how Gladys works to my partner, with the different tabs I’ve set up, …  
I showed her the tab about the open/closed status of windows and doors, explaining the meaning of the shield.  
Her immediate reaction: «&nbsp;Wouldn’t an open or closed padlock be better?? Isn’t that more logical?&nbsp;»

I told her that there was some thought being given to this subject.

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

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