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 4b5bef308bf47c..196be465723c23 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
@@ -2510,8 +2510,6 @@ server cluster LaundryWasherMode = 81 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute nullable int8u startUpMode = 2;
- attribute nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2555,8 +2553,6 @@ server cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute nullable int8u startUpMode = 2;
- attribute nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2782,8 +2778,6 @@ server cluster DishwasherMode = 89 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute nullable int8u startUpMode = 2;
- attribute nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -6708,8 +6702,6 @@ endpoint 1 {
server cluster LaundryWasherMode {
callback attribute supportedModes;
callback attribute currentMode;
- callback attribute startUpMode;
- callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
@@ -6720,8 +6712,6 @@ endpoint 1 {
server cluster RefrigeratorAndTemperatureControlledCabinetMode {
callback attribute supportedModes;
callback attribute currentMode;
- callback attribute startUpMode;
- callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
@@ -6791,8 +6781,6 @@ endpoint 1 {
server cluster DishwasherMode {
callback attribute supportedModes;
callback attribute currentMode;
- callback attribute startUpMode;
- callback attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
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 c7ccc67b4b7089..f0508239946362 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
@@ -16,6 +16,12 @@
}
],
"package": [
+ {
+ "pathRelativity": "relativeToZap",
+ "path": "../../../src/app/zap-templates/app-templates.json",
+ "type": "gen-templates-json",
+ "version": "chip-v1"
+ },
{
"pathRelativity": "relativeToZap",
"path": "../../../src/app/zap-templates/zcl/zcl-with-test-extensions.json",
@@ -23,12 +29,6 @@
"category": "matter",
"version": 1,
"description": "Matter SDK ZCL data with some extensions"
- },
- {
- "pathRelativity": "relativeToZap",
- "path": "../../../src/app/zap-templates/app-templates.json",
- "type": "gen-templates-json",
- "version": "chip-v1"
}
],
"endpointTypes": [
@@ -15099,38 +15099,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
- {
- "name": "StartUpMode",
- "code": 2,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
- {
- "name": "OnMode",
- "code": 3,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
{
"name": "GeneratedCommandList",
"code": 65528,
@@ -15331,38 +15299,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
- {
- "name": "StartUpMode",
- "code": 2,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
- {
- "name": "OnMode",
- "code": 3,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
{
"name": "GeneratedCommandList",
"code": 65528,
@@ -16656,38 +16592,6 @@
"maxInterval": 65534,
"reportableChange": 0
},
- {
- "name": "StartUpMode",
- "code": 2,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
- {
- "name": "OnMode",
- "code": 3,
- "mfgCode": null,
- "side": "server",
- "type": "int8u",
- "included": 1,
- "storageOption": "External",
- "singleton": 0,
- "bounded": 0,
- "defaultValue": "",
- "reportable": 1,
- "minInterval": 1,
- "maxInterval": 65534,
- "reportableChange": 0
- },
{
"name": "GeneratedCommandList",
"code": 65528,
@@ -35392,5 +35296,6 @@
"endpointId": 65534,
"networkId": 0
}
- ]
+ ],
+ "log": []
}
\ No newline at end of file
diff --git a/examples/all-clusters-app/all-clusters-common/src/dishwasher-mode.cpp b/examples/all-clusters-app/all-clusters-common/src/dishwasher-mode.cpp
index 607bb5578787f2..14cae43da85a66 100644
--- a/examples/all-clusters-app/all-clusters-common/src/dishwasher-mode.cpp
+++ b/examples/all-clusters-app/all-clusters-common/src/dishwasher-mode.cpp
@@ -100,7 +100,6 @@ void emberAfDishwasherModeClusterInitCallback(chip::EndpointId endpointId)
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1.
VerifyOrDie(gDishwasherModeDelegate == nullptr && gDishwasherModeInstance == nullptr);
gDishwasherModeDelegate = new DishwasherMode::DishwasherModeDelegate;
- gDishwasherModeInstance =
- new ModeBase::Instance(gDishwasherModeDelegate, 0x1, DishwasherMode::Id, chip::to_underlying(Feature::kOnOff));
+ gDishwasherModeInstance = new ModeBase::Instance(gDishwasherModeDelegate, 0x1, DishwasherMode::Id, 0x0);
gDishwasherModeInstance->Init();
}
diff --git a/examples/all-clusters-app/all-clusters-common/src/laundry-washer-mode.cpp b/examples/all-clusters-app/all-clusters-common/src/laundry-washer-mode.cpp
index 16bb21158b612b..4cfbcd2496cc8e 100644
--- a/examples/all-clusters-app/all-clusters-common/src/laundry-washer-mode.cpp
+++ b/examples/all-clusters-app/all-clusters-common/src/laundry-washer-mode.cpp
@@ -99,7 +99,6 @@ void emberAfLaundryWasherModeClusterInitCallback(chip::EndpointId endpointId)
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1.
VerifyOrDie(gLaundryWasherModeDelegate == nullptr && gLaundryWasherModeInstance == nullptr);
gLaundryWasherModeDelegate = new LaundryWasherMode::LaundryWasherModeDelegate;
- gLaundryWasherModeInstance =
- new ModeBase::Instance(gLaundryWasherModeDelegate, 0x1, LaundryWasherMode::Id, chip::to_underlying(Feature::kOnOff));
+ gLaundryWasherModeInstance = new ModeBase::Instance(gLaundryWasherModeDelegate, 0x1, LaundryWasherMode::Id, 0x0);
gLaundryWasherModeInstance->Init();
}
diff --git a/examples/all-clusters-app/all-clusters-common/src/tcc-mode.cpp b/examples/all-clusters-app/all-clusters-common/src/tcc-mode.cpp
index 8f3c865aecaf0e..df4b29500d7971 100644
--- a/examples/all-clusters-app/all-clusters-common/src/tcc-mode.cpp
+++ b/examples/all-clusters-app/all-clusters-common/src/tcc-mode.cpp
@@ -94,7 +94,6 @@ void emberAfRefrigeratorAndTemperatureControlledCabinetModeClusterInitCallback(c
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1.
VerifyOrDie(gTccModeDelegate == nullptr && gTccModeInstance == nullptr);
gTccModeDelegate = new RefrigeratorAndTemperatureControlledCabinetMode::TccModeDelegate;
- gTccModeInstance = new ModeBase::Instance(gTccModeDelegate, 0x1, RefrigeratorAndTemperatureControlledCabinetMode::Id,
- chip::to_underlying(Feature::kOnOff));
+ gTccModeInstance = new ModeBase::Instance(gTccModeDelegate, 0x1, RefrigeratorAndTemperatureControlledCabinetMode::Id, 0x0);
gTccModeInstance->Init();
}
diff --git a/scripts/tests/chiptest/__init__.py b/scripts/tests/chiptest/__init__.py
index 457ebb1d969c91..22940086b4ce38 100644
--- a/scripts/tests/chiptest/__init__.py
+++ b/scripts/tests/chiptest/__init__.py
@@ -156,7 +156,15 @@ def _GetInDevelopmentTests() -> Set[str]:
# TestEventTriggersEnabled is true, which it's not in CI.
"Test_TC_SMOKECO_2_6.yaml", # chip-repl does not support local timeout (07/20/2023) and test assumes
# TestEventTriggersEnabled is true, which it's not in CI.
- "Test_TC_S_2_4.yaml", # https://github.com/project-chip/connectedhomeip/issues/29117
+ "Test_TC_IDM_1_2.yaml", # Broken harness: https://github.com/project-chip/connectedhomeip/issues/29115
+ "Test_TC_S_2_4.yaml", # https://github.com/project-chip/connectedhomeip/issues/29117
+ "Test_TC_LWM_3_1.yaml", # Target attribute now provisional and removed from the XML
+ "Test_TC_LWM_3_2.yaml", # Target attribute now provisional and removed from the XML
+ "Test_TC_LWM_3_3.yaml", # Target attribute now provisional and removed from the XML
+ "Test_TC_TCCM_3_1.yaml", # Target attribute now provisional and removed from the XML
+ "Test_TC_TCCM_3_2.yaml", # Target attribute now provisional and removed from the XML
+ "Test_TC_TCCM_3_3.yaml" # Target attribute now provisional and removed from the XML
+ "Test_TC_S_2_4.yaml" # https://github.com/project-chip/connectedhomeip/issues/29117
}
diff --git a/src/app/tests/suites/certification/ci-pics-values b/src/app/tests/suites/certification/ci-pics-values
index 63caa7841d3ccf..74b784fa10b033 100644
--- a/src/app/tests/suites/certification/ci-pics-values
+++ b/src/app/tests/suites/certification/ci-pics-values
@@ -325,13 +325,13 @@ DISHALM.S.C01.Rsp=1
# DISHWASHER MODE CLUSTER
DISHM.S=1
-DISHM.S.F00=1
+DISHM.S.F00=0
#Server
DISHM.S.A0000=1
DISHM.S.A0001=1
-DISHM.S.A0002=1
-DISHM.S.A0003=1
+DISHM.S.A0002=0
+DISHM.S.A0003=0
#Command
DISHM.S.C00.Rsp=1
@@ -741,11 +741,11 @@ CGEN.C=1
LWM.S=1
LWM.S.A0000=1
LWM.S.A0001=1
-LWM.S.A0003=1
-LWM.S.A0002=1
+LWM.S.A0003=0
+LWM.S.A0002=0
#Feature
-LWM.S.F00=1
+LWM.S.F00=0
#Command
LWM.S.C00.Rsp=1
@@ -2474,13 +2474,13 @@ PIXIT.RVCRUNM.MODE_CHANGE_OK=1
#Refrigerator and Temperature Controlled Cabinet Mode Cluster(TCCM)
TCCM.S=1
-TCCM.S.F00=1
+TCCM.S.F00=0
#Server
TCCM.S.A0000=1
TCCM.S.A0001=1
-TCCM.S.A0002=1
-TCCM.S.A0003=1
+TCCM.S.A0002=0
+TCCM.S.A0003=0
#Commands
TCCM.S.C00.Rsp=1
@@ -2583,16 +2583,6 @@ SMOKECO.M.ManuallyControlledTest=1
SMOKECO.M.ManuallyControlledMute=1
SMOKECO.S.C00.Rsp=1
-#Temperature Controlled Cabinet Mode Cluster
-TCCM.S=1
-TCCM.S.F00=1
-TCCM.S.A0000=1
-TCCM.S.A0001=1
-TCCM.S.A0002=1
-TCCM.S.A0003=1
-TCCM.S.C00.Rsp=1
-TCCM.S.C01.Tx=1
-
#Temperature Control
TCTL.S=1
TCTL.C=1
diff --git a/src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml
index 49e4d4c86ff105..e6ee5e52ce4006 100644
--- a/src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml
@@ -36,8 +36,6 @@ limitations under the License.
SupportedModes
CurrentMode
- StartUpMode
- OnMode
diff --git a/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml
index 95eb512618f274..8d35419656a0d4 100644
--- a/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml
@@ -36,8 +36,6 @@ limitations under the License.
SupportedModes
CurrentMode
- StartUpMode
- OnMode
diff --git a/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml
index c55109379e5aa2..b593858f3f105d 100644
--- a/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml
@@ -34,8 +34,6 @@ limitations under the License.
SupportedModes
CurrentMode
- StartUpMode
- OnMode
diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json
index f3b1164762f269..ec020ca4c2360b 100644
--- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json
+++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json
@@ -316,25 +316,11 @@
"DSTOffsetListMaxSize"
],
"Temperature Control": ["SupportedTemperatureLevels"],
- "Dishwasher Mode": [
- "SupportedModes",
- "CurrentMode",
- "StartUpMode",
- "OnMode",
- "FeatureMap"
- ],
- "Laundry Washer Mode": [
- "SupportedModes",
- "CurrentMode",
- "StartUpMode",
- "OnMode",
- "FeatureMap"
- ],
+ "Dishwasher Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
+ "Laundry Washer Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
"Refrigerator And Temperature Controlled Cabinet Mode": [
"SupportedModes",
"CurrentMode",
- "StartUpMode",
- "OnMode",
"FeatureMap"
],
"RVC Clean Mode": [
diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json
index c6de8dc8cf24c6..0ea20551ffeb66 100644
--- a/src/app/zap-templates/zcl/zcl.json
+++ b/src/app/zap-templates/zcl/zcl.json
@@ -314,25 +314,11 @@
"DSTOffsetListMaxSize"
],
"Temperature Control": ["SupportedTemperatureLevels"],
- "Dishwasher Mode": [
- "SupportedModes",
- "CurrentMode",
- "StartUpMode",
- "OnMode",
- "FeatureMap"
- ],
- "Laundry Washer Mode": [
- "SupportedModes",
- "CurrentMode",
- "StartUpMode",
- "OnMode",
- "FeatureMap"
- ],
+ "Dishwasher Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
+ "Laundry Washer Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
"Refrigerator And Temperature Controlled Cabinet Mode": [
"SupportedModes",
"CurrentMode",
- "StartUpMode",
- "OnMode",
"FeatureMap"
],
"RVC Clean Mode": [
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 5d9ec2b27415b7..fd549ad43c871c 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -2818,8 +2818,6 @@ client cluster LaundryWasherMode = 81 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2865,8 +2863,6 @@ client cluster RefrigeratorAndTemperatureControlledCabinetMode = 82 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3103,8 +3099,6 @@ client cluster DishwasherMode = 89 {
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
index 002fe71784dfc5..ddbc85e568a053 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
@@ -6228,8 +6228,6 @@ public long getID() {
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -6350,8 +6348,6 @@ public long getID() {
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -7048,8 +7044,6 @@ public long getID() {
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
index 43e73e97980866..18f7aa6e665d68 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
@@ -6112,28 +6112,6 @@ private static Map readLaundryWasherModeInteractionInfo
readLaundryWasherModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readLaundryWasherModeCurrentModeAttributeInteractionInfo);
- Map readLaundryWasherModeStartUpModeCommandParams = new LinkedHashMap();
- InteractionInfo readLaundryWasherModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.LaundryWasherModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.LaundryWasherModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedLaundryWasherModeClusterStartUpModeAttributeCallback(),
- readLaundryWasherModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readLaundryWasherModeStartUpModeAttributeInteractionInfo);
- Map readLaundryWasherModeOnModeCommandParams = new LinkedHashMap();
- InteractionInfo readLaundryWasherModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.LaundryWasherModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.LaundryWasherModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedLaundryWasherModeClusterOnModeAttributeCallback(),
- readLaundryWasherModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readLaundryWasherModeOnModeAttributeInteractionInfo);
Map readLaundryWasherModeGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readLaundryWasherModeGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -6226,28 +6204,6 @@ private static Map readRefrigeratorAndTemperatureContro
readRefrigeratorAndTemperatureControlledCabinetModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readRefrigeratorAndTemperatureControlledCabinetModeCurrentModeAttributeInteractionInfo);
- Map readRefrigeratorAndTemperatureControlledCabinetModeStartUpModeCommandParams = new LinkedHashMap();
- InteractionInfo readRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedRefrigeratorAndTemperatureControlledCabinetModeClusterStartUpModeAttributeCallback(),
- readRefrigeratorAndTemperatureControlledCabinetModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeInteractionInfo);
- Map readRefrigeratorAndTemperatureControlledCabinetModeOnModeCommandParams = new LinkedHashMap();
- InteractionInfo readRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedRefrigeratorAndTemperatureControlledCabinetModeClusterOnModeAttributeCallback(),
- readRefrigeratorAndTemperatureControlledCabinetModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeInteractionInfo);
Map readRefrigeratorAndTemperatureControlledCabinetModeGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readRefrigeratorAndTemperatureControlledCabinetModeGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -6921,28 +6877,6 @@ private static Map readDishwasherModeInteractionInfo()
readDishwasherModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readDishwasherModeCurrentModeAttributeInteractionInfo);
- Map readDishwasherModeStartUpModeCommandParams = new LinkedHashMap();
- InteractionInfo readDishwasherModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DishwasherModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.DishwasherModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedDishwasherModeClusterStartUpModeAttributeCallback(),
- readDishwasherModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readDishwasherModeStartUpModeAttributeInteractionInfo);
- Map readDishwasherModeOnModeCommandParams = new LinkedHashMap();
- InteractionInfo readDishwasherModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DishwasherModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.DishwasherModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedDishwasherModeClusterOnModeAttributeCallback(),
- readDishwasherModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readDishwasherModeOnModeAttributeInteractionInfo);
Map readDishwasherModeGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readDishwasherModeGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
index 5df865adc76614..f9619e76d42ff4 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
@@ -771,96 +771,8 @@ public Map> getWriteAttributeMap() {
writeModeSelectInteractionInfo.put("writeOnModeAttribute", writeModeSelectOnModeAttributeInteractionInfo);
writeAttributeMap.put("modeSelect", writeModeSelectInteractionInfo);
Map writeLaundryWasherModeInteractionInfo = new LinkedHashMap<>();
- Map writeLaundryWasherModeStartUpModeCommandParams = new LinkedHashMap();
- CommandParameterInfo laundryWasherModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeLaundryWasherModeStartUpModeCommandParams.put(
- "value",
- laundryWasherModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeLaundryWasherModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.LaundryWasherModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeLaundryWasherModeStartUpModeCommandParams
- );
- writeLaundryWasherModeInteractionInfo.put("writeStartUpModeAttribute", writeLaundryWasherModeStartUpModeAttributeInteractionInfo);
- Map writeLaundryWasherModeOnModeCommandParams = new LinkedHashMap();
- CommandParameterInfo laundryWasherModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeLaundryWasherModeOnModeCommandParams.put(
- "value",
- laundryWasherModeonModeCommandParameterInfo
- );
- InteractionInfo writeLaundryWasherModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.LaundryWasherModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeLaundryWasherModeOnModeCommandParams
- );
- writeLaundryWasherModeInteractionInfo.put("writeOnModeAttribute", writeLaundryWasherModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("laundryWasherMode", writeLaundryWasherModeInteractionInfo);
Map writeRefrigeratorAndTemperatureControlledCabinetModeInteractionInfo = new LinkedHashMap<>();
- Map writeRefrigeratorAndTemperatureControlledCabinetModeStartUpModeCommandParams = new LinkedHashMap();
- CommandParameterInfo refrigeratorAndTemperatureControlledCabinetModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeRefrigeratorAndTemperatureControlledCabinetModeStartUpModeCommandParams.put(
- "value",
- refrigeratorAndTemperatureControlledCabinetModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeRefrigeratorAndTemperatureControlledCabinetModeStartUpModeCommandParams
- );
- writeRefrigeratorAndTemperatureControlledCabinetModeInteractionInfo.put("writeStartUpModeAttribute", writeRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeInteractionInfo);
- Map writeRefrigeratorAndTemperatureControlledCabinetModeOnModeCommandParams = new LinkedHashMap();
- CommandParameterInfo refrigeratorAndTemperatureControlledCabinetModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeRefrigeratorAndTemperatureControlledCabinetModeOnModeCommandParams.put(
- "value",
- refrigeratorAndTemperatureControlledCabinetModeonModeCommandParameterInfo
- );
- InteractionInfo writeRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeRefrigeratorAndTemperatureControlledCabinetModeOnModeCommandParams
- );
- writeRefrigeratorAndTemperatureControlledCabinetModeInteractionInfo.put("writeOnModeAttribute", writeRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("refrigeratorAndTemperatureControlledCabinetMode", writeRefrigeratorAndTemperatureControlledCabinetModeInteractionInfo);
Map writeLaundryWasherControlsInteractionInfo = new LinkedHashMap<>();
Map writeLaundryWasherControlsSpinSpeedCurrentCommandParams = new LinkedHashMap();
@@ -1005,50 +917,6 @@ public Map> getWriteAttributeMap() {
Map writeRefrigeratorAlarmInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("refrigeratorAlarm", writeRefrigeratorAlarmInteractionInfo);
Map writeDishwasherModeInteractionInfo = new LinkedHashMap<>();
- Map writeDishwasherModeStartUpModeCommandParams = new LinkedHashMap();
- CommandParameterInfo dishwasherModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeDishwasherModeStartUpModeCommandParams.put(
- "value",
- dishwasherModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeDishwasherModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DishwasherModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeDishwasherModeStartUpModeCommandParams
- );
- writeDishwasherModeInteractionInfo.put("writeStartUpModeAttribute", writeDishwasherModeStartUpModeAttributeInteractionInfo);
- Map writeDishwasherModeOnModeCommandParams = new LinkedHashMap();
- CommandParameterInfo dishwasherModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeDishwasherModeOnModeCommandParams.put(
- "value",
- dishwasherModeonModeCommandParameterInfo
- );
- InteractionInfo writeDishwasherModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DishwasherModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeDishwasherModeOnModeCommandParams
- );
- writeDishwasherModeInteractionInfo.put("writeOnModeAttribute", writeDishwasherModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("dishwasherMode", writeDishwasherModeInteractionInfo);
Map writeAirQualityInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("airQuality", writeAirQualityInteractionInfo);
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index 6faa72db2086ba..e4f3426260bf38 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -13038,52 +13038,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -13354,52 +13308,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -14929,52 +14837,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- if (cppValue.IsNull())
- {
- value = nullptr;
- }
- else
- {
- std::string valueClassName = "java/lang/Integer";
- std::string valueCtorSignature = "(I)V";
- jint jnivalue = static_cast(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
diff --git a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
index 9a97be24f17b40..2aac01397283b6 100644
--- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
+++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
@@ -2342,248 +2342,6 @@ JNI_METHOD(void, ModeSelectCluster, writeOnModeAttribute)
onFailure.release();
}
-JNI_METHOD(void, LaundryWasherModeCluster, writeStartUpModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::LaundryWasherMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- LaundryWasherModeCluster * cppCluster = reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
-JNI_METHOD(void, LaundryWasherModeCluster, writeOnModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::LaundryWasherMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- LaundryWasherModeCluster * cppCluster = reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
-JNI_METHOD(void, RefrigeratorAndTemperatureControlledCabinetModeCluster, writeStartUpModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- RefrigeratorAndTemperatureControlledCabinetModeCluster * cppCluster =
- reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
-JNI_METHOD(void, RefrigeratorAndTemperatureControlledCabinetModeCluster, writeOnModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::RefrigeratorAndTemperatureControlledCabinetMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- RefrigeratorAndTemperatureControlledCabinetModeCluster * cppCluster =
- reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
JNI_METHOD(void, LaundryWasherControlsCluster, writeSpinSpeedCurrentAttribute)
(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
{
@@ -2936,126 +2694,6 @@ JNI_METHOD(void, RvcCleanModeCluster, writeOnModeAttribute)
onFailure.release();
}
-JNI_METHOD(void, DishwasherModeCluster, writeStartUpModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::DishwasherMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- DishwasherModeCluster * cppCluster = reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
-JNI_METHOD(void, DishwasherModeCluster, writeOnModeAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::DishwasherMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- if (value == nullptr)
- {
- cppValue.SetNull();
- }
- else
- {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = static_cast>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(value));
- }
-
- std::unique_ptr onSuccess(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onSuccess.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY));
-
- std::unique_ptr onFailure(
- Platform::New(callback), Platform::Delete);
- VerifyOrReturn(onFailure.get() != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY));
-
- CHIP_ERROR err = CHIP_NO_ERROR;
- DishwasherModeCluster * cppCluster = reinterpret_cast(clusterPtr);
- VerifyOrReturn(cppCluster != nullptr,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(
- env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE));
-
- auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel());
- auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel());
-
- if (timedWriteTimeoutMs == nullptr)
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall);
- }
- else
- {
- err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall,
- chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs));
- }
- VerifyOrReturn(
- err == CHIP_NO_ERROR,
- chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err));
-
- onSuccess.release();
- onFailure.release();
-}
-
JNI_METHOD(void, SmokeCoAlarmCluster, writeSmokeSensitivityLevelAttribute)
(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
{
diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
index 47ecaa3c2c3b74..0c5402a1bd135e 100644
--- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
+++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
@@ -20262,139 +20262,6 @@ void CHIPLaundryWasherModeSupportedModesAttributeCallback::CallbackFn(
env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
}
-CHIPLaundryWasherModeStartUpModeAttributeCallback::CHIPLaundryWasherModeStartUpModeAttributeCallback(jobject javaCallback,
- bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this),
- keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPLaundryWasherModeStartUpModeAttributeCallback::~CHIPLaundryWasherModeStartUpModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPLaundryWasherModeStartUpModeAttributeCallback::CallbackFn(void * context,
- const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
-CHIPLaundryWasherModeOnModeAttributeCallback::CHIPLaundryWasherModeOnModeAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPLaundryWasherModeOnModeAttributeCallback::~CHIPLaundryWasherModeOnModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPLaundryWasherModeOnModeAttributeCallback::CallbackFn(void * context, const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
CHIPLaundryWasherModeGeneratedCommandListAttributeCallback::CHIPLaundryWasherModeGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -20842,148 +20709,6 @@ void CHIPRefrigeratorAndTemperatureControlledCabinetModeSupportedModesAttributeC
env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
}
-CHIPRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeCallback::
- CHIPRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn,
- this),
- keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeCallback::
- ~CHIPRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPRefrigeratorAndTemperatureControlledCabinetModeStartUpModeAttributeCallback::CallbackFn(
- void * context, const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr
- cppCallback(reinterpret_cast(context),
- maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
-CHIPRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeCallback::
- CHIPRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn,
- this),
- keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeCallback::
- ~CHIPRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPRefrigeratorAndTemperatureControlledCabinetModeOnModeAttributeCallback::CallbackFn(
- void * context, const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr
- cppCallback(reinterpret_cast(context),
- maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
CHIPRefrigeratorAndTemperatureControlledCabinetModeGeneratedCommandListAttributeCallback::
CHIPRefrigeratorAndTemperatureControlledCabinetModeGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(
@@ -23699,139 +23424,6 @@ void CHIPDishwasherModeSupportedModesAttributeCallback::CallbackFn(
env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
}
-CHIPDishwasherModeStartUpModeAttributeCallback::CHIPDishwasherModeStartUpModeAttributeCallback(jobject javaCallback,
- bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this),
- keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPDishwasherModeStartUpModeAttributeCallback::~CHIPDishwasherModeStartUpModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPDishwasherModeStartUpModeAttributeCallback::CallbackFn(void * context,
- const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
-CHIPDishwasherModeOnModeAttributeCallback::CHIPDishwasherModeOnModeAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive)
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- return;
- }
-
- javaCallbackRef = env->NewGlobalRef(javaCallback);
- if (javaCallbackRef == nullptr)
- {
- ChipLogError(Zcl, "Could not create global reference for Java callback");
- }
-}
-
-CHIPDishwasherModeOnModeAttributeCallback::~CHIPDishwasherModeOnModeAttributeCallback()
-{
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- if (env == nullptr)
- {
- ChipLogError(Zcl, "Could not delete global reference for Java callback");
- return;
- }
- env->DeleteGlobalRef(javaCallbackRef);
-}
-
-void CHIPDishwasherModeOnModeAttributeCallback::CallbackFn(void * context, const chip::app::DataModel::Nullable & value)
-{
- chip::DeviceLayer::StackUnlock unlock;
- CHIP_ERROR err = CHIP_NO_ERROR;
- JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
- jobject javaCallbackRef;
-
- VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
-
- // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
- javaCallbackRef = cppCallback.get()->javaCallbackRef;
- VerifyOrReturn(javaCallbackRef != nullptr,
- ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
-
- jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod);
- VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
-
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
- {
- std::string javaValueClassName = "java/lang/Integer";
- std::string javaValueCtorSignature = "(I)V";
- jint jnijavaValue = static_cast(value.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- jnijavaValue, javaValue);
- }
-
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
-}
-
CHIPDishwasherModeGeneratedCommandListAttributeCallback::CHIPDishwasherModeGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
index a3df84a30dd9bc..2d126cef2e9e6e 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
@@ -13974,16 +13974,6 @@ public interface SupportedModesAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
- public interface StartUpModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
- public interface OnModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -14029,44 +14019,6 @@ public void subscribeCurrentModeAttribute(
subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ) {
- readStartUpModeAttribute(chipClusterPtr, callback);
- }
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback
- ) {
- readOnModeAttribute(chipClusterPtr, callback);
- }
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -14153,24 +14105,6 @@ private native void subscribeCurrentModeAttribute(long chipClusterPtr,
IntegerAttributeCallback callback
, int minInterval, int maxInterval);
- private native void readStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- );
-
- private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
- private native void readOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- );
-
- private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -14249,16 +14183,6 @@ public interface SupportedModesAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
- public interface StartUpModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
- public interface OnModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -14304,44 +14228,6 @@ public void subscribeCurrentModeAttribute(
subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ) {
- readStartUpModeAttribute(chipClusterPtr, callback);
- }
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback
- ) {
- readOnModeAttribute(chipClusterPtr, callback);
- }
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -14428,24 +14314,6 @@ private native void subscribeCurrentModeAttribute(long chipClusterPtr,
IntegerAttributeCallback callback
, int minInterval, int maxInterval);
- private native void readStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- );
-
- private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
- private native void readOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- );
-
- private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -15811,16 +15679,6 @@ public interface SupportedModesAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
- public interface StartUpModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
- public interface OnModeAttributeCallback {
- void onSuccess(@Nullable Integer value);
- void onError(Exception ex);
- default void onSubscriptionEstablished(long subscriptionId) {}
- }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -15866,44 +15724,6 @@ public void subscribeCurrentModeAttribute(
subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ) {
- readStartUpModeAttribute(chipClusterPtr, callback);
- }
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback
- ) {
- readOnModeAttribute(chipClusterPtr, callback);
- }
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback
- ,
- int minInterval, int maxInterval) {
- subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -15990,24 +15810,6 @@ private native void subscribeCurrentModeAttribute(long chipClusterPtr,
IntegerAttributeCallback callback
, int minInterval, int maxInterval);
- private native void readStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- );
-
- private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeStartUpModeAttribute(long chipClusterPtr,
- StartUpModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
- private native void readOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- );
-
- private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs);
- private native void subscribeOnModeAttribute(long chipClusterPtr,
- OnModeAttributeCallback callback
- , int minInterval, int maxInterval);
-
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
index 2c20053185065f..55018fe22ae937 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
@@ -6071,44 +6071,6 @@ public void onError(Exception ex) {
callback.onFailure(ex);
}
}
- public static class DelegatedLaundryWasherModeClusterStartUpModeAttributeCallback implements ChipClusters.LaundryWasherModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
- public static class DelegatedLaundryWasherModeClusterOnModeAttributeCallback implements ChipClusters.LaundryWasherModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
public static class DelegatedLaundryWasherModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.LaundryWasherModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -6228,44 +6190,6 @@ public void onError(Exception ex) {
callback.onFailure(ex);
}
}
- public static class DelegatedRefrigeratorAndTemperatureControlledCabinetModeClusterStartUpModeAttributeCallback implements ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
- public static class DelegatedRefrigeratorAndTemperatureControlledCabinetModeClusterOnModeAttributeCallback implements ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
public static class DelegatedRefrigeratorAndTemperatureControlledCabinetModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.RefrigeratorAndTemperatureControlledCabinetModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -7006,44 +6930,6 @@ public void onError(Exception ex) {
callback.onFailure(ex);
}
}
- public static class DelegatedDishwasherModeClusterStartUpModeAttributeCallback implements ChipClusters.DishwasherModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
- public static class DelegatedDishwasherModeClusterOnModeAttributeCallback implements ChipClusters.DishwasherModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
-@Override
- public void onSuccess(@Nullable Integer value) {
- Map responseValues = new LinkedHashMap<>();
- CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer");
- responseValues.put(commandResponseInfo, value);
- callback.onSuccess(responseValues);
- }
- @Override
- public void onError(Exception ex) {
- callback.onFailure(ex);
- }
- }
public static class DelegatedDishwasherModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.DishwasherModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py
index 434296a3c1761d..7c6ce01beb2aa1 100644
--- a/src/controller/python/chip/clusters/CHIPClusters.py
+++ b/src/controller/python/chip/clusters/CHIPClusters.py
@@ -4400,20 +4400,6 @@ class ChipClusters:
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
0x0000FFF8: {
"attributeName": "GeneratedCommandList",
"attributeId": 0x0000FFF8,
@@ -4477,20 +4463,6 @@ class ChipClusters:
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
0x0000FFF8: {
"attributeName": "GeneratedCommandList",
"attributeId": 0x0000FFF8,
@@ -4928,20 +4900,6 @@ class ChipClusters:
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
0x0000FFF8: {
"attributeName": "GeneratedCommandList",
"attributeId": 0x0000FFF8,
diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py
index 39a3294b0470da..2a6278f2a94275 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -15236,8 +15236,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[LaundryWasherMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]),
@@ -15248,8 +15246,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
supportedModes: 'typing.List[LaundryWasherMode.Structs.ModeOptionStruct]' = None
currentMode: 'uint' = None
- startUpMode: 'typing.Union[None, Nullable, uint]' = None
- onMode: 'typing.Union[None, Nullable, uint]' = None
generatedCommandList: 'typing.List[uint]' = None
acceptedCommandList: 'typing.List[uint]' = None
eventList: 'typing.List[uint]' = None
@@ -15370,38 +15366,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
value: 'uint' = 0
- @dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000051
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000051
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
@dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
@@ -15509,8 +15473,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[RefrigeratorAndTemperatureControlledCabinetMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]),
@@ -15521,8 +15483,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
supportedModes: 'typing.List[RefrigeratorAndTemperatureControlledCabinetMode.Structs.ModeOptionStruct]' = None
currentMode: 'uint' = None
- startUpMode: 'typing.Union[None, Nullable, uint]' = None
- onMode: 'typing.Union[None, Nullable, uint]' = None
generatedCommandList: 'typing.List[uint]' = None
acceptedCommandList: 'typing.List[uint]' = None
eventList: 'typing.List[uint]' = None
@@ -15641,38 +15601,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
value: 'uint' = 0
- @dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000052
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000052
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
@dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
@@ -17015,8 +16943,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[DishwasherMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]),
@@ -17027,8 +16953,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
supportedModes: 'typing.List[DishwasherMode.Structs.ModeOptionStruct]' = None
currentMode: 'uint' = None
- startUpMode: 'typing.Union[None, Nullable, uint]' = None
- onMode: 'typing.Union[None, Nullable, uint]' = None
generatedCommandList: 'typing.List[uint]' = None
acceptedCommandList: 'typing.List[uint]' = None
eventList: 'typing.List[uint]' = None
@@ -17148,38 +17072,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
value: 'uint' = 0
- @dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000059
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x00000059
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: 'typing.Union[None, Nullable, uint]' = None
-
@dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
index 3f725fa73972b2..fecad511b69530 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
@@ -1959,12 +1959,6 @@ static BOOL AttributeIsSpecifiedInLaundryWasherModeCluster(AttributeId aAttribut
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
@@ -1998,12 +1992,6 @@ static BOOL AttributeIsSpecifiedInRefrigeratorAndTemperatureControlledCabinetMod
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
@@ -2235,12 +2223,6 @@ static BOOL AttributeIsSpecifiedInDishwasherModeCluster(AttributeId aAttributeId
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
index 429b109c7de8bb..794259e7206d2b 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
@@ -5368,40 +5368,6 @@ static id _Nullable DecodeAttributeValueForLaundryWasherModeCluster(AttributeId
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
#endif // MTR_ENABLE_PROVISIONAL
default: {
break;
@@ -5484,40 +5450,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAndTemperatureControlledC
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
#endif // MTR_ENABLE_PROVISIONAL
default: {
break;
@@ -6096,40 +6028,6 @@ static id _Nullable DecodeAttributeValueForDishwasherModeCluster(AttributeId aAt
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nullable value;
- if (cppValue.IsNull()) {
- value = nil;
- } else {
- value = [NSNumber numberWithUnsignedChar:cppValue.Value()];
- }
- return value;
- }
#endif // MTR_ENABLE_PROVISIONAL
default: {
break;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
index a57d1e9eb588c5..ed4bd84efc5604 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
@@ -4696,22 +4696,6 @@ MTR_PROVISIONALLY_AVAILABLE
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
@@ -4789,22 +4773,6 @@ MTR_PROVISIONALLY_AVAILABLE
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
@@ -5328,22 +5296,6 @@ MTR_PROVISIONALLY_AVAILABLE
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
index 5ad02e36b99362..ca73efda78fa36 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
@@ -42515,160 +42515,6 @@ + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheConta
});
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = LaundryWasherMode::Attributes::StartUpMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = LaundryWasherMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = LaundryWasherMode::Attributes::StartUpMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = LaundryWasherMode::Attributes::StartUpMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = LaundryWasherMode::Attributes::OnMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = LaundryWasherMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = LaundryWasherMode::Attributes::OnMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = LaundryWasherMode::Attributes::OnMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
MTRReadParams * params = [[MTRReadParams alloc] init];
@@ -43020,160 +42866,6 @@ + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheConta
});
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::StartUpMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::StartUpMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::StartUpMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::OnMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::OnMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = RefrigeratorAndTemperatureControlledCabinetMode::Attributes::OnMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
MTRReadParams * params = [[MTRReadParams alloc] init];
@@ -45877,160 +45569,6 @@ + (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheConta
});
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = DishwasherMode::Attributes::StartUpMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = DishwasherMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = DishwasherMode::Attributes::StartUpMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = DishwasherMode::Attributes::StartUpMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = DishwasherMode::Attributes::OnMode::TypeInfo;
- return MTRReadAttribute(params, completion, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- value = [value copy];
-
- auto * bridge = new MTRDefaultSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable ignored, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- chip::Optional timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil) {
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = DishwasherMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = DishwasherMode::Attributes::OnMode::TypeInfo;
- MTRSubscribeAttribute(params, subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self.endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRNullableInt8uAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(clusterStateCacheContainer.baseDevice, ^(NullableInt8uAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = DishwasherMode::Attributes::OnMode::TypeInfo;
- path.mEndpointId = static_cast([endpoint unsignedShortValue]);
- path.mClusterId = TypeInfo::GetClusterId();
- path.mAttributeId = TypeInfo::GetAttributeId();
- TypeInfo::DecodableType value;
- CHIP_ERROR err = clusterStateCacheContainer.cppClusterStateCache->Get(path, value);
- if (err == CHIP_NO_ERROR) {
- successCb(bridge, value);
- }
- return err;
- }
- return CHIP_ERROR_NOT_FOUND;
- });
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
MTRReadParams * params = [[MTRReadParams alloc] init];
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
index 201b64e18e786f..6dcded3147200d 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
@@ -2296,8 +2296,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) {
// Cluster LaundryWasherMode attributes
MTRAttributeIDTypeClusterLaundryWasherModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterLaundryWasherModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterLaundryWasherModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterLaundryWasherModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterLaundryWasherModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterLaundryWasherModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterLaundryWasherModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
@@ -2308,8 +2306,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) {
// Cluster RefrigeratorAndTemperatureControlledCabinetMode attributes
MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterRefrigeratorAndTemperatureControlledCabinetModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
@@ -2381,8 +2377,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) {
// Cluster DishwasherMode attributes
MTRAttributeIDTypeClusterDishwasherModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterDishwasherModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterDishwasherModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterDishwasherModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterDishwasherModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterDishwasherModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterDishwasherModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
index 42ed1c52ed775b..4fc476e3f91604 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
@@ -2102,14 +2102,6 @@ MTR_PROVISIONALLY_AVAILABLE
- (NSDictionary *)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary *)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary *)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary *)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary *)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
@@ -2148,14 +2140,6 @@ MTR_PROVISIONALLY_AVAILABLE
- (NSDictionary *)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary *)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary *)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary *)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary *)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
@@ -2414,14 +2398,6 @@ MTR_PROVISIONALLY_AVAILABLE
- (NSDictionary *)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary *)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary *)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary *)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary *)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
index 7fdbe9367c7ece..cb64b63c5c64e3 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
@@ -7872,38 +7872,6 @@ - (void)changeToModeWithParams:(MTRLaundryWasherModeClusterChangeToModeParams *)
return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeLaundryWasherModeID) attributeID:@(MTRAttributeIDTypeClusterLaundryWasherModeAttributeCurrentModeID) params:params];
}
-- (NSDictionary *)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeLaundryWasherModeID) attributeID:@(MTRAttributeIDTypeClusterLaundryWasherModeAttributeStartUpModeID) params:params];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary