Skip to main content
Associate III
October 15, 2024
Solved

STM32WB55 Zigbee name

  • October 15, 2024
  • 1 reply
  • 3019 views

Hi together,

I am working with the STM32WB55 and connecting it with different configurations to Homeassistant via Zigbee2mqtt.

The Zigbee2mqtt auto generates a config file with the available endpoints etc., that looks like this:

const definition = {
 zigbeeModel: ['STM32WB'],
 model: 'STM32WB',
 vendor: 'STMicroelectronics',
 description: 'Automatically generated definition',
 extend: [light({"color":true})],
 meta: {},
};

Since I plan to configure different MCUs with different endpoints, I need to change those identifiers to make them unique to Homeassistant. Where are those identifiers or names set? I could not find this in the documentation.

Thanks

 

Best answer by Ouadi

Hi @vh789 ,

The default basic server cluster uses a default parameters defined for STM32WB device, to change these parameters you have to perform at the initialization a ZbZclBasicServerConfigDefaults with your custom settings. 

You can have a look on this project example using this API Zigbee_OnOff_Client_SED/STM32_WPAN/App/app_zigbee.c at main -GitHub

Best regards,

Ouadi

1 reply

Technical Moderator
October 16, 2024

Hello @vh789,

The model and vendor name is defined through the basic cluster at function APP_ZIGBEE_ConfigBasicServer, To change the default name used you have to change APP_ZIGBEE_MFR_NAME and APP_ZIGBEE_CHIP_NAME.

Best regards,

Ouadi

vh789Author
Associate III
October 16, 2024

Hi Ouadi,

thanks for you answer. Where can I find this in the CubeMX generated code?

I have configured the Basic Cluster as Server/Client.

Neither in the app_zigbee.c, nor in any other project file I can find the function APP_ZIGBEE_ConfigBasicServer or its call and also none of the APP_ZIGBEE_MFR_NAME or APP_ZIGBEE_CHIP_NAME.

Thanks

OuadiBest answer
Technical Moderator
October 17, 2024

Hi @vh789 ,

The default basic server cluster uses a default parameters defined for STM32WB device, to change these parameters you have to perform at the initialization a ZbZclBasicServerConfigDefaults with your custom settings. 

You can have a look on this project example using this API Zigbee_OnOff_Client_SED/STM32_WPAN/App/app_zigbee.c at main -GitHub

Best regards,

Ouadi