From 2f7b94106b83377f5ce4fdd6d2997c338fff80db Mon Sep 17 00:00:00 2001
From: fesseha-eve <88329315+fessehaeve@users.noreply.github.com>
Date: Fri, 26 Jul 2024 20:47:11 +0200
Subject: [PATCH] - update constraints for LocalTemperatureCalibration (#34536)
- update yaml test
- added LocalTemperatureCalibration in all-cluster-app and updated ci-pics
---
.../all-clusters-common/all-clusters-app.matter | 1 +
.../all-clusters-common/all-clusters-app.zap | 16 ++++++++++++++++
.../suites/certification/Test_TC_TSTAT_2_1.yaml | 4 ++--
.../tests/suites/certification/ci-pics-values | 2 +-
.../zcl/data-model/chip/thermostat-cluster.xml | 2 +-
5 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index 4313908d4fcdcb..3144546a72b849 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -8645,6 +8645,7 @@ endpoint 1 {
ram attribute absMaxHeatSetpointLimit default = 0x0BB8;
ram attribute absMinCoolSetpointLimit default = 0x0640;
ram attribute absMaxCoolSetpointLimit default = 0x0C80;
+ ram attribute localTemperatureCalibration default = 0x00;
ram attribute occupiedCoolingSetpoint default = 0x0A28;
ram attribute occupiedHeatingSetpoint default = 0x07D0;
ram attribute minHeatSetpointLimit default = 0x02BC;
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
index 3c9dcb094f8eb4..2ed20d53a62605 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
@@ -16255,6 +16255,22 @@
"maxInterval": 65344,
"reportableChange": 0
},
+ {
+ "name": "LocalTemperatureCalibration",
+ "code": 16,
+ "mfgCode": null,
+ "side": "server",
+ "type": "int8s",
+ "included": 1,
+ "storageOption": "RAM",
+ "singleton": 0,
+ "bounded": 0,
+ "defaultValue": "0x00",
+ "reportable": 1,
+ "minInterval": 1,
+ "maxInterval": 65534,
+ "reportableChange": 0
+ },
{
"name": "OccupiedCoolingSetpoint",
"code": 17,
diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml
index faf34fdea43e92..2db131a5a4df55 100644
--- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml
+++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml
@@ -243,8 +243,8 @@ tests:
response:
constraints:
type: int8s
- minValue: -25
- maxValue: 25
+ minValue: -127
+ maxValue: 127
- label: "Step 13a: TH reads attribute OccupiedCoolingSetpoint from the DUT"
PICS: TSTAT.S.F01 && TSTAT.S.A0017 && TSTAT.S.A0018
diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values
index aa8fb52d289d2b..207999a74778b1 100644
--- a/src/app/tests/suites/certification/ci-pics-values
+++ b/src/app/tests/suites/certification/ci-pics-values
@@ -1926,7 +1926,7 @@ TSTAT.S.A0006=1
TSTAT.S.A0007=0
TSTAT.S.A0008=0
TSTAT.S.A0009=0
-TSTAT.S.A0010=0
+TSTAT.S.A0010=1
TSTAT.S.A0011=1
TSTAT.S.A0012=1
TSTAT.S.A0013=0
diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml
index 91a89497d7c8cc..796209999f1121 100644
--- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml
@@ -337,7 +337,7 @@ limitations under the License.
-
+
LocalTemperatureCalibration