SiliconLabs / arduino

Arduino Core for Silicon Labs devices
82 stars 15 forks source link

[request] Allow customisation of name attributes in BasicInformation Cluster #46

Open lboue opened 5 months ago

lboue commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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