2024-10-15 10:34 AM
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
Solved! Go to Solution.
2024-10-17 06:54 AM
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
2024-10-16 05:38 AM
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
2024-10-16 11:07 AM
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
2024-10-17 06:54 AM
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