diff --git a/src/app/clusters/thermostat-server/thermostat-server-presets.cpp b/src/app/clusters/thermostat-server/thermostat-server-presets.cpp index 16ed77d251be50..0580990b93c5ee 100644 --- a/src/app/clusters/thermostat-server/thermostat-server-presets.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server-presets.cpp @@ -18,6 +18,7 @@ #include "thermostat-server-presets.h" #include "thermostat-server.h" +#include #include using namespace chip; @@ -316,6 +317,10 @@ Status ThermostatAttrAccess::SetActivePreset(EndpointId endpoint, DataModel::Nul return StatusIB(err).mStatus; } + // Notify subscribers that ActivePresetHandle has changed so that they + // receive a subscription report with the new value. + MatterReportingAttributeChangeCallback(endpoint, Thermostat::Id, ActivePresetHandle::Id); + return Status::Success; }