Matter bridge code: Sonoff

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

Thanks for the feedback @techni.info :slight_smile:

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

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

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 :joy:

I’ll keep you posted about the fix!

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

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

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.

Hi @techni.info,

Great if it’s working now :slight_smile:

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 :slight_smile:

Thanks for your feedback!

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.


1 Like

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

Hi @techni.info,

The MAC address is not exposed by your device in Matter, however the « Device ID » field seems to be sent :slight_smile:

I will display 2 new attributes in the interface:

  • Unique ID
  • Serial number

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

The PR :

1 Like

It’s live in Gladys Assistant 4.59: