cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 Zigbee name

vh789
Associate III

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
Ouadi
ST Employee

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

vh789
Associate III

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

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