diff --git a/components/esp_matter/data_model/esp_matter_cluster.cpp b/components/esp_matter/data_model/esp_matter_cluster.cpp index 58b3a7265..11fe1c9b5 100644 --- a/components/esp_matter/data_model/esp_matter_cluster.cpp +++ b/components/esp_matter/data_model/esp_matter_cluster.cpp @@ -2606,8 +2606,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags) namespace mode_select { const function_generic_t function_list[] = { (function_generic_t)emberAfModeSelectClusterServerInitCallback, + (function_generic_t)MatterModeSelectClusterServerPreAttributeChangedCallback, }; -const int function_flags = CLUSTER_FLAG_INIT_FUNCTION; +const int function_flags = CLUSTER_FLAG_INIT_FUNCTION | CLUSTER_FLAG_PRE_ATTRIBUTE_CHANGED_FUNCTION; cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags) {