Skip to content

Commit

Permalink
Allow modifying the thermostat cluster attrs from the M5Stack (#16330)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-apple authored and pull[bot] committed Apr 25, 2022
1 parent a838120 commit 1147627
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,21 @@ class EditAttributeListModel : public TouchesMatterStackModel
ESP_LOGI(TAG, "Humidity changed to : %d", n);
app::Clusters::RelativeHumidityMeasurement::Attributes::MeasuredValue::Set(1, static_cast<int16_t>(n * 100));
}
else if (name == "OccupiedCoolingSetpoint")
{
ESP_LOGI(TAG, "OccupiedCoolingSetpoint changed to : %d", n);
app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast<int16_t>(n * 100));
}
else if (name == "OccupiedHeatingSetpoint")
{
ESP_LOGI(TAG, "OccupiedHeatingSetpoint changed to : %d", n);
app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Set(1, static_cast<int16_t>(n * 100));
}
else if (name == "SystemMode")
{
ESP_LOGI(TAG, "SystemMode changed to : %d", n);
app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Set(1, n);
}
value = buffer;
}
else if (IsBooleanAttribute())
Expand Down

0 comments on commit 1147627

Please sign in to comment.