mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components/esp-matter: conformance fixes for thermostat cluster
- moved cluster revision from 8 to 9 - thermostat cluster has schedule and preset attributes with quality T i.e. atomic. It requires the cluster to implement atomic-request and atomic-response command.
This commit is contained in:
@@ -1342,6 +1342,13 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
/* Commands */
|
||||
command::create_setpoint_raise_lower(cluster);
|
||||
|
||||
// matter_schedule_configuration and presets contains the attributes with T i.e. atomic quality
|
||||
// hence, we need to create the atomic request and response commands
|
||||
if (has(feature::matter_schedule_configuration::get_id()) || has(feature::presets::get_id())) {
|
||||
command::create_atomic_request(cluster);
|
||||
command::create_atomic_response(cluster);
|
||||
}
|
||||
|
||||
return cluster;
|
||||
}
|
||||
} /* thermostat */
|
||||
|
||||
Reference in New Issue
Block a user