Add Zigbee2Mqtt ID to device configuration

Description
Add the Zigbee2Mqtt ID to the device configuration.

Benefit
Make it easier to find the device in Zigbee2Mqtt when they haven’t been renamed or have been renamed differently from Gladys.

Proposal
We could add it in a block of the same type as « Name » + its input but disabled so as not to allow modification of the ID:

Even better, it would be great to have a link pointing directly to the device in Zigbee2Mqtt :slight_smile:

I don’t have any votes left but I second that, and especially with the link! (like in matterbridge :wink: )

1 Like

Hello @mutmut

The link to the Z2M interface should be modular depending on the host (Gladys and Z2M do not necessarily run on the same machine …).

Here’s what I propose
image

For the link there are two cases.
Either it’s an installation by Gladys and the link’s IP address will use Gladys’s address.

Or it’s an external installation and in that case the address is not known.
For this case I added the property to provide the IP address+port of zigbee2mqtt

image
If the address is not provided then the link will not be displayed.

I took the liberty of improving the appearance of the Edit button.
image
On a small phone screen
image

3 Likes

Hi @Will_71 !

Very nice!

For the Zigbee2mqtt logo, consider using a PNG logo to avoid the white background in dark mode :wink:

Ok, not a bad idea!

Nice!

1 Like

Yes, for the icon I used the existing one but I didn’t look any further for now because it was already late last night
I’ll modify that over the weekend

2 Likes

Here it is with the icon and transparent background

As a result, it changed the one on the configuration page because I simply replaced the logo in the folder front/src/assets/integrations/logos

I also added the IEEE address and the link on the Zigbee Discovery page.

The update is not automatic, I used the existing method and for all devices already added you need to press the « Update » button to apply the saved IEEE address in the database and for the address to be placed in the box on the Devices tab.

I cannot perform an automatic migration at startup because the address discovery happens during the device discovery phase.

On request I will add an image for those who want to test.

1 Like

Great @Will_71 !
OT: will this also change the Editer button in the MQTT integration?

No, but I could make a PR to change it as well

1 Like

Are you sure we can’t do it another way, for example not store this address and actually just link the data coming from Zigbee2mqtt with the data coming from Gladys, to display « enriched » information in the list?

That’s what we do on the Matter integration, for example!

I’ll look into the matter