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

<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:** [January 23, 2022, 9:15pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/1 "2022-01-23T21:15:21Z")

</div>

@AlexTrovato  
In the «&nbsp;Zigbee Discovery&nbsp;» screen, I have an error message that I can’t delete.  
This is about registering my siren, the second feature (Siren) is missing, hence the registration error.  
I restored old backups with no result, I also restored an old database, same thing.  
Is there a solution?

 ![decouverte_sirene](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/d88832166a43e393066e8b49ac1ff5c0d6af676d.jpeg)

---

<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:** [January 24, 2022, 11:05am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/2 "2022-01-24T11:05:23Z")

</div>

Hello, what Zigbee device are you trying to integrate?  
I can already see there is a display issue.

---

<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:** [January 24, 2022, 4:13pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/3 "2022-01-24T16:13:02Z")

</div>

@AlexTrovato  
In fact, it’s all my fault, I made a mistake (when you don’t know, you don’t touch!) but I touched it anyway!  
After updating the binaryType.js file with the siren code:

```javascript
alarm: {
      feature: {
        category: DEVICE_FEATURE_CATEGORIES.SIREN,
        type: DEVICE_FEATURE_TYPES.SIREN.BINARY,
      },
    },

```

it was correctly recognized in Gladys. However, the On/Off command did not work. I checked that it worked with the 8080 web interface, which was the case.  
I then tried to replace SIREN with SWITCH, but I may have made a typo, which is why only one feature (the battery one) is left.  
I’m stuck now, as I can’t get my siren recognized anymore.  
Thanks for your help.

---

<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:** [January 24, 2022, 4:30pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/4 "2022-01-24T16:30:44Z")

</div>

edit: I just managed to restore the situation, the error message has disappeared, my siren is well recognized, but the ON/OFF command does not work.

 ![integration_sirene](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e06fd84f234e246b548a907aabaa372a6ae93c05.jpeg)

---

<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:** [January 24, 2022, 6:21pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/5 "2022-01-24T18:21:36Z")

</div>

So, in conclusion, there is no problem?

---

<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:** [January 24, 2022, 6:47pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/6 "2022-01-24T18:47:07Z")

</div>

@AlexTrovato  
edit:

My siren is correctly recognized by Gladys with two of its features: «&nbsp;Battery&nbsp;» and «&nbsp;Siren ON/OFF&nbsp;» as can be seen in the screenshot above.  
However, I cannot control it, neither directly from the dashboard nor in a scene with a trigger.  
I confirm that the siren works well, by the way, since I can control it via the zigbee2mqtt interface on port 8080.  
Thank you for your enlightened opinion.

---

<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:** [January 29, 2022, 8:42am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/7 "2022-01-29T08:42:25Z")

</div>

I think this is related to this PR

> <https://github.com/GladysAssistant/Gladys/pull/1383>
>
> Use the device/feature property name to set value (instead of default "state" pr…operty).
> 
> Linked to: https://github.com/GladysAssistant/Gladys/issues/1333

If you have a chance to check it out 😉

---

<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:** [January 30, 2022, 4:36pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/8 "2022-01-30T16:36:06Z")

</div>

Thanks @AlexTrovato  
I tried both versions of the code:  
**zigbeeValue = value ? `ON`:`OFF`;**  
or  
**zigbeeValue = value ? `{\"state\": \"ON\"}` : `{\"state\": \"OFF\"}`;**

and I get the same error message in the z2m:8080 interface when I command the siren from Gladys:

 ![Screenshot 2022-01-30 16-41-45](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a8d6fb7b1693dd4d9324d19ad58a67e073ae47d8.png)

However, if I command the siren from the z2m interface, the siren works, Gladys receives the command and I get the confirmation log:

 ![Screenshot 2022-01-30 16-41-04](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/18d377218f7c2d9d574bfa893ecf09a8ffb16c5e.png)

If you want me to look at anything else, within the limits of my skills, I am at your disposal.

Have a good evening.

---

<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:** [February 11, 2022, 5:08pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/9 "2022-02-11T17:08:20Z")

</div>

@AlexTrovato Excuse me for coming back to you about my Tuya siren integration issue.  
Do you think there might be a long-term solution, or should I give up? I wanted to use it for a home alarm, so I really hoped it would work. It is recognized by Gladys by updating the binaryType.js file, but the ON/OFF exposure does not respond.  
Thank you.

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [February 11, 2022, 5:36pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/10 "2022-02-11T17:36:38Z")

</div>

If I read correctly, it’s ‹&nbsp;true&nbsp;› and ‹&nbsp;false&nbsp;› that you need to send (generally, 1 and 0 are equivalent)  
And even ‹&nbsp;alarm&nbsp;› 1

---

<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:** [February 11, 2022, 6:41pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/11 "2022-02-11T18:41:16Z")

</div>

That’s right, it’s a binary message (True or False)

---

<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:** [February 12, 2022, 10:45am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/12 "2022-02-12T10:45:39Z")

</div>

Sorry I didn’t have time to look but no we are not giving up. Don’t hesitate to remind me as I don’t often have time available, so I forget.

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [February 12, 2022, 12:19pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/13 "2022-02-12T12:19:31Z")

</div>

Yes, I requested to add these true/false values. I had the same issue controlling my IPX800V5, which expects true/false values. I worked around it using Node-RED!

---

<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:** [February 13, 2022, 9:36am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/14 "2022-02-13T09:36:20Z")

</div>

Hello, I just proposed a specific value management.

See here: [https://github.com/GladysAssistant/Gladys/pull/1383/commits/05332506707169b7969583681071894d41374ad6](https://github.com/GladysAssistant/Gladys/pull/1383/commits/05332506707169b7969583681071894d41374ad6)

You will need to re-add/update the device.

What I did:  
When discovering a Zigbee device, it provides the values it expects for ON/OFF.  
I therefore keep this ON/OFF mapping in a device attribute and use it when reading/writing the value.

Why:  
Each device can handle different values, and zigbee2mqtt does not perform this conversion by default, so we have to do it.  
For the TS0216 alarm, the device expects «&nbsp;true/false&nbsp;», by default it’s «&nbsp;ON/OFF&nbsp;», for others, I have even seen «&nbsp;START/STOP&nbsp;», while they are all binary devices.

@pierre-gilles I leave it to you to confirm that this operation is not disturbing in the Gladys vision.  
We could have had information at the feature level rather than on the device, but the current model does not allow that.

---

<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:** [February 13, 2022, 1:11pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/15 "2022-02-13T13:11:41Z")

</div>

@AlexTrovato Thanks Alex, I know you’re putting in a lot of effort, so no problem, the main thing is to get there, so take your time according to your availability.

Unfortunately, I will be absent for a week, so I won’t be able to test your PR right away.

Stay tuned!

---

<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:** [February 14, 2022, 9:08am UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/16 "2022-02-14T09:08:31Z")

</div>

> [@AlexTrovato](#):
>
> @pierre-gilles I’ll let you confirm that this behavior is not disturbing in the Gladys vision.

Since this is information provided by Zigbee2mqtt in the JSON, it doesn’t surprise me to store it in the params 🙂

Otherwise, if it was a manual thing, I would have stored it in the code, but indeed, if it’s automatic, the params are very good.

For a more detailed review of the PR, I would appreciate a review from someone who has also worked on this service, @cicoub13 for example 😃

---

<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 4, 2022, 6:47pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/17 "2022-03-04T18:47:10Z")

</div>

Hello @jparbel  
What is the reference of your Tuya siren?  
How did you integrate it into Gladys?  
Do you need the Tuya gateway?

---

<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 4, 2022, 6:54pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/18 "2022-03-04T18:54:10Z")

</div>

I modified it to no longer store the information because when Gladys connects to the MQTT of Zigbee, it retrieves the devices in the z2m format and stores them.  
So I reuse them, do the reverse mapping, to send the right message.  
So it stays in RAM, and we are sure to have the latest fresh information, in case the z2m devices evolve.  
@jparbel is trying to test the generated image `atrovato/gladys:zigbee2mqtt`

EDIT: Call to other motivated people to also test this new image (whether to test compatibility on new devices, or non-regression on those that already work), thank you all 🙂

---

<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, 12:32pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/19 "2022-03-07T12:32:14Z")

</div>

Is it based on the gladys dev or the prod?  
Because I’m testing the dev right now, to see if I can continue both in parallel!

---

<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 7, 2022, 6:58pm UTC](https://community.gladysassistant.com/t/message-derreur-zigbee2mqtt/6846/20 "2022-03-07T18:58:23Z")

</div>

It is based on the dev image, so with the latest upgrades.

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