arduino icon indicating copy to clipboard operation
arduino copied to clipboard

[request] Allow customisation of name attributes in BasicInformation Cluster

Open lboue opened this issue 1 year ago • 3 comments

Summary

Hello,

Would it be possible to allow customising the following values as shown in the screenshot below?

image

These attributes are part on the BasicInformation Cluster (ClusterId 40 0x0028) on Endpoint 0

Best regards Ludovic

lboue avatar May 07 '24 16:05 lboue

I found this:

image Does this change the values for the bridge or the endpoint attached to the Matter bridge?

I will check the docs for the Matter library here to try and find the information.

lboue avatar May 08 '24 10:05 lboue

I found this example in the repo: matter_lightbulb_custom_name.ino:

  // Initial display name that can be changed by the user in the client apps
  matter_bulb.set_device_name("Chell's bulb");
  // Vendor/manufacturer name - cannot be changed by users
  matter_bulb.set_vendor_name("Aperture Science");
  // Product/model name - cannot be changed by users
  matter_bulb.set_product_name("Weighted Storage Bulb");
  // Serial number - cannot be changed by users
  // Set the serial number to the chip's unique ID
  matter_bulb.set_serial_number(getDeviceUniqueIdStr().c_str());

Matter.cpp#L115 void ArduinoMatterAppliance::set_device_name(const char* device_name)

It seems to be related with BridgedDeviceBasicInformation cluster attributes but not BasicInformation Cluster (ClusterId 40 0x0028) on Endpoint 0.

lboue avatar May 08 '24 12:05 lboue

It seems to be related with BridgedDeviceBasicInformation cluster attributes but not BasicInformation Cluster (ClusterId 40 0x0028) on Endpoint 0.

I did the test with matter_lightbulb_custom_name.ino and That's exactly it. The Matter bridge attributes do not change, only those of the endpoint:

IMG_0682 IMG_0681

lboue avatar May 09 '24 07:05 lboue