Skip to content

Commit

Permalink
[Silabs] Adds changes for min and max values of refrigerator temperat…
Browse files Browse the repository at this point in the history
…ure controlled cabinet (#36592)

* Adds changes for min and max values of refrigerator temperature control cabinet

* Removed the manual  set for temperatureset-point

* Converting Fahrenheit to Celsius min max values
  • Loading branch information
shgutte committed Nov 22, 2024
1 parent e66991b commit 6b37cc9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1960,8 +1960,8 @@ endpoint 2 {

server cluster TemperatureControl {
ram attribute temperatureSetpoint;
ram attribute minTemperature;
ram attribute maxTemperature;
ram attribute minTemperature default = -18;
ram attribute maxTemperature default = -15;
ram attribute step;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down Expand Up @@ -1990,8 +1990,8 @@ endpoint 3 {

server cluster TemperatureControl {
ram attribute temperatureSetpoint;
ram attribute minTemperature;
ram attribute maxTemperature;
ram attribute minTemperature default = 0;
ram attribute maxTemperature default = 4;
ram attribute step;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3860,7 +3860,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "-18",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3876,7 +3876,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "-15",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -4207,7 +4207,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -4223,7 +4223,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "4",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1867,8 +1867,8 @@ endpoint 2 {

server cluster TemperatureControl {
ram attribute temperatureSetpoint;
ram attribute minTemperature;
ram attribute maxTemperature;
ram attribute minTemperature default = -18;
ram attribute maxTemperature default = -15;
ram attribute step;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down Expand Up @@ -1897,8 +1897,8 @@ endpoint 3 {

server cluster TemperatureControl {
ram attribute temperatureSetpoint;
ram attribute minTemperature;
ram attribute maxTemperature;
ram attribute minTemperature default = 0;
ram attribute maxTemperature default = 4;
ram attribute step;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3749,7 +3749,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "-18",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -3765,7 +3765,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "-15",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -4096,7 +4096,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -4112,7 +4112,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "4",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ void RefrigeratorManager::TempCtrlAttributeChangeHandler(EndpointId endpointId,
case TempCtrlAttr::TemperatureSetpoint::Id: {
int16_t temperatureSetpoint = ConvertToPrintableTemp(static_cast<int16_t>(*value));
mTemperatureSetpoint = temperatureSetpoint;
TempCtrlAttr::TemperatureSetpoint::Set(endpointId, temperatureSetpoint);
}
break;
default: {
Expand Down

0 comments on commit 6b37cc9

Please sign in to comment.