mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components/esp_matter: Fix conformance of color control cluster.
This commit is contained in:
@@ -1145,7 +1145,6 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
}
|
||||
|
||||
/* Attributes managed internally */
|
||||
attribute::create_remaining_time(cluster, 0);
|
||||
for (uint8_t idx = 1; idx <= config->number_of_primaries.value_or(0); ++idx) {
|
||||
attribute::create_primary_n_x(cluster, 0, idx);
|
||||
attribute::create_primary_n_y(cluster, 0, idx);
|
||||
|
||||
@@ -300,6 +300,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config)
|
||||
cluster_t *color_control_cluster = color_control::create(endpoint, &(config->color_control), CLUSTER_FLAG_SERVER);
|
||||
color_control::feature::color_temperature::add(color_control_cluster, &(config->color_control_color_temperature));
|
||||
color_control::attribute::create_remaining_time(color_control_cluster, config->color_control_remaining_time);
|
||||
color_control::command::create_stop_move_step(color_control_cluster);
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
@@ -340,6 +341,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config)
|
||||
color_control::feature::color_temperature::add(color_control_cluster, &(config->color_control_color_temperature));
|
||||
color_control::feature::xy::add(color_control_cluster, &(config->color_control_xy));
|
||||
color_control::attribute::create_remaining_time(color_control_cluster, config->color_control_remaining_time);
|
||||
color_control::command::create_stop_move_step(color_control_cluster);
|
||||
return ESP_OK;
|
||||
}
|
||||
} /* extended_color_light */
|
||||
|
||||
Reference in New Issue
Block a user