# Matter bridge code: Sonoff

**URL:** <https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506>\
**Category:** Développement\
**Created:** [May 12, 2025, 4:03am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506 "2025-05-12T04:03:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![techni.info](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@techni.info](https://community.gladysassistant.com/u/techni.info)\
**Post date:** [May 12, 2025, 4:03am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/1 "2025-05-12T04:03:58Z")

</div>

The Sonoff ZBBridge-U bridge provides a Matter code consisting of a 21‑digit sequence and is therefore rejected by Gladys.

---

<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 12, 2025, 8:05am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/2 "2025-05-12T08:05:16Z")

</div>

Thanks for the feedback @techni.info 🙂

Indeed, I went to read the Matter documentation and the pairing code can be 21 digits! I didn’t know 😃

 ![Screenshot 2025-05-12 at 09.57.49](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/4/14d287b4e2418c0170fe48fd3873e58988b084b9.png)

In fact, the pairing code can contain the «&nbsp;vendorID&nbsp;» and «&nbsp;productID&nbsp;» which are optional:

 ![Screenshot 2025-05-12 at 10.01.45](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/5/55b649f51c56f4f896a701ea27e968c91d44cd61.png)

I’ll modify Gladys so we accept 21-digit codes, but in the meantime, if you’re feeling playful, either you recalculate the 11-digit code from the 21-digit code, or if you modify the page’s HTML you can remove the pattern required in the field — but I admit that’s a bit of a hack 😂

I’ll keep you posted about the fix!

---

<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 16, 2025, 8:28am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/3 "2025-05-16T08:28:21Z")

</div>

I just worked on the topic @techni.info, I made a PR that will be included in the next version of Gladys :

> <https://github.com/GladysAssistant/Gladys/pull/2307>
>
> \### 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)
> \- \[x\] 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 (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> Matter pairing code can be 21 characters

---

<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 16, 2025, 12:49pm UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/4 "2025-05-16T12:49:21Z")

</div>

@techni.info It’s fixed in Gladys Assistant 4.58.1 :

> [@Gladys Assistant 4.58.1 : Corrections de bugs et améliorations](https://community.gladysassistant.com/t/gladys-assistant-4-58-1-corrections-de-bugs-et-ameliorations/9522):
>
> Salut à tous ! Le lancement de l’intégration Matter est un succès, et vous avez été nombreux à faire des retours suite à [l’article de lancement](https://gladysassistant.com/fr/blog/gladys-assistant-4-58-with-matter-support/) tada Cette version corrige quelques bugs et apporte des améliorations à Gladys Assistant 4.58 : MQTT : correction d’un bug où les topics personnalisés n’étaient pas supprimés après la suppression d’une fonctionnalité. Matter : correction de l’unité pour les volets roulants ; prise en compte des codes d’appairage de 21 caractères. Intégrations : …

---

<div class="post-metadata">

**Author:** ![techni.info](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@techni.info](https://community.gladysassistant.com/u/techni.info)\
**Post date:** [May 17, 2025, 6:31am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/5 "2025-05-17T06:31:10Z")

</div>

Thank you for the quick response. The integration works perfectly and compatible modules show up correctly, the only drawback being when several appear with the same generic name followed by a number. It would be useful for the modules’ MAC addresses to be retrieved and displayed so that each one can be clearly identified, especially in the case of temperature/humidity sensors where nothing can be done to distinguish them if they all display identical data.

---

<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 19, 2025, 8:05am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/6 "2025-05-19T08:05:54Z")

</div>

Hi @techni.info,

Great if it’s working now 🙂

In the Sonoff app, do you have the ability to rename each sensor individually?

Gladys retrieves the Matter name of each device, so in principle, if you change the name in the manufacturer’s app, it should automatically be reflected in Gladys.

If that’s not the case, could you send me a screenshot of the Sonoff app so I can see what information is displayed?

And as a bonus, if you can send me that JSON file that would be great 🙂

 ![Screenshot 2025-05-19 at 10.03.39](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/a/0a483be625fcbfcb30c5ed9b44d47fbc70adf01f.png)

Thanks for your feedback!

---

<div class="post-metadata">

**Author:** ![techni.info](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@techni.info](https://community.gladysassistant.com/u/techni.info)\
**Post date:** [May 19, 2025, 9:17am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/7 "2025-05-19T09:17:40Z")

</div>

Hi Pierre-Gilles,

The modules already had an identifiable name but the information is not coming through. In the case of the JSON file the extension is not accepted here and it has more than 18,000 lines so a copy/paste would probably not be advisable.

 ![IMG_0632](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/8/f8a528c17e3cf6c2569138102609c6630d6f633d.png)  
 ![IMG_0633](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/c/cc3b421225daf147af5721ed6b654ef3d61b1b54.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 19, 2025, 9:20am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/8 "2025-05-19T09:20:44Z")

</div>

> [@techni.info](#):
>
> For the JSON file, the extension is not accepted here and

Can you upload it somewhere (for example: [https://pastebin.com/](https://pastebin.com/)) or to the cloud of your choice and send me the link privately? 🙂

---

<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 23, 2025, 1:22pm UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/9 "2025-05-23T13:22:24Z")

</div>

Hi @techni.info,

The MAC address is not exposed by your device in Matter, however the «&nbsp;Device ID&nbsp;» field seems to be sent 🙂

I will display 2 new attributes in the interface:

- Unique ID
- Serial number

 ![Screenshot 2025-05-23 at 15.08.18](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/a/ca8ad7f41f596f8d68a4c57c82df6752d4ab4b86.png)

These attributes will be hidden by default so as not to clutter the interface, but visible with a click 🙂

The PR :

> <https://github.com/GladysAssistant/Gladys/pull/2321>
>
> \### 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)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] 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 (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> Fix https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/7

---

<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 26, 2025, 8:43am UTC](https://community.gladysassistant.com/t/code-matter-pont-sonoff-zbbrigde-u-incompatible/9506/10 "2025-05-26T08:43:43Z")

</div>

It’s live in Gladys Assistant 4.59:

> [@Gladys Assistant 4.59 : Thermostat Aqara W100, Matter, Scènes!](https://community.gladysassistant.com/t/gladys-assistant-4-59-thermostat-aqara-w100-matter-scenes/9546):
>
> Salut à tous slight_smile Une nouvelle version de Gladys est disponible partying_faceradio_button Prise en charge des boutons du Thermostat Aqara W100 via Zigbee2MQTT Aqara a récemment sorti un nouveau thermostat connecté, le [Aqara W100](https://www.domadoo.fr/fr/devices-matter/7852-aqara-capteur-de-temperature-et-d-humidite-zigbee-30-et-thread-aqara-climate-sensor-w100-6975833357260.html?domid=17), compatible Zigbee, Thread et Matter. @bjm est en train de le tester et m’a fait des retours sur des boutons qui n’étaient pas encore pris en charge par Gladys,…
