diff --git a/src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml b/src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml
index 3a3215addba19f..da478ae2347961 100644
--- a/src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml
@@ -28,16 +28,9 @@ limitations under the License.
REFRIGERATOR_ALARM
true
true
- Mask
- Latch
+ Mask
State
-
- Reset alarm
-
-
-
-
Notify
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 19f577e8471c12..180be3a667215a 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -3123,8 +3123,7 @@ client cluster RefrigeratorAlarm = 87 {
AlarmMap mask = 3;
}
- attribute AlarmMap mask = 0;
- readonly attribute AlarmMap latch = 1;
+ readonly attribute AlarmMap mask = 0;
readonly attribute AlarmMap state = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
@@ -3132,14 +3131,6 @@ client cluster RefrigeratorAlarm = 87 {
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
-
- request struct ResetRequest {
- AlarmMap alarms = 0;
- optional AlarmMap mask = 1;
- }
-
- /** Reset alarm */
- command Reset(ResetRequest): DefaultSuccess = 0;
}
/** This cluster is an alias of the Mode Select cluster, defining additional semantics and
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
index a05150d423efa4..83714b747ae65e 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
@@ -7026,7 +7026,6 @@ public long getID() {
public enum Attribute {
Mask(0L),
- Latch(1L),
State(2L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
@@ -7074,8 +7073,7 @@ public static Event value(long id) throws NoSuchFieldError {
}
}
- public enum Command {
- Reset(0L),;
+ public enum Command {;
private final long id;
Command(long id) {
this.id = id;
@@ -7093,24 +7091,7 @@ public static Command value(long id) throws NoSuchFieldError {
}
throw new NoSuchFieldError();
}
- }public enum ResetCommandField {Alarms(0),Mask(1),;
- private final int id;
- ResetCommandField(int id) {
- this.id = id;
- }
-
- public int getID() {
- return id;
- }
- public static ResetCommandField value(int id) throws NoSuchFieldError {
- for (ResetCommandField field : ResetCommandField.values()) {
- if (field.getID() == id) {
- return field;
- }
- }
- throw new NoSuchFieldError();
- }
- }@Override
+ }@Override
public String getAttributeName(long id) throws NoSuchFieldError {
return Attribute.value(id).toString();
}
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
index 09b72fc3a9fc94..89f5815615e758 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
@@ -6704,17 +6704,6 @@ private static Map readRefrigeratorAlarmInteractionInfo
readRefrigeratorAlarmMaskCommandParams
);
result.put("readMaskAttribute", readRefrigeratorAlarmMaskAttributeInteractionInfo);
- Map readRefrigeratorAlarmLatchCommandParams = new LinkedHashMap();
- InteractionInfo readRefrigeratorAlarmLatchAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAlarmCluster) cluster).readLatchAttribute(
- (ChipClusters.LongAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedLongAttributeCallback(),
- readRefrigeratorAlarmLatchCommandParams
- );
- result.put("readLatchAttribute", readRefrigeratorAlarmLatchAttributeInteractionInfo);
Map readRefrigeratorAlarmStateCommandParams = new LinkedHashMap();
InteractionInfo readRefrigeratorAlarmStateAttributeInteractionInfo = 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 b521ff51fc9d27..226e4b5ff522e1 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
@@ -957,28 +957,6 @@ public Map> getWriteAttributeMap() {
Map writeTemperatureControlInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("temperatureControl", writeTemperatureControlInteractionInfo);
Map writeRefrigeratorAlarmInteractionInfo = new LinkedHashMap<>();
- Map writeRefrigeratorAlarmMaskCommandParams = new LinkedHashMap();
- CommandParameterInfo refrigeratorAlarmmaskCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Long.class,
- Long.class
- );
- writeRefrigeratorAlarmMaskCommandParams.put(
- "value",
- refrigeratorAlarmmaskCommandParameterInfo
- );
- InteractionInfo writeRefrigeratorAlarmMaskAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAlarmCluster) cluster).writeMaskAttribute(
- (DefaultClusterCallback) callback,
- (Long) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeRefrigeratorAlarmMaskCommandParams
- );
- writeRefrigeratorAlarmInteractionInfo.put("writeMaskAttribute", writeRefrigeratorAlarmMaskAttributeInteractionInfo);
writeAttributeMap.put("refrigeratorAlarm", writeRefrigeratorAlarmInteractionInfo);
Map writeDishwasherModeSelectInteractionInfo = new LinkedHashMap<>();
Map writeDishwasherModeSelectStartUpModeCommandParams = new LinkedHashMap();
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index 5c62b14e605930..535f5cda1d496d 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -13793,21 +13793,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
cppValue.Raw(), value);
return value;
}
- case Attributes::Latch::Id: {
- using TypeInfo = Attributes::Latch::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = app::DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR)
- {
- return nullptr;
- }
- jobject value;
- std::string valueClassName = "java/lang/Long";
- std::string valueCtorSignature = "(J)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(),
- cppValue.Raw(), value);
- return value;
- }
case Attributes::State::Id: {
using TypeInfo = Attributes::State::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 03a3abef32a391..ddd219dd1befaf 100644
--- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
+++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
@@ -2824,58 +2824,6 @@ JNI_METHOD(void, RvcCleanModeSelectCluster, writeOnModeAttribute)
onFailure.release();
}
-JNI_METHOD(void, RefrigeratorAlarmCluster, writeMaskAttribute)
-(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
-{
- chip::DeviceLayer::StackLock lock;
- ListFreer listFreer;
- using TypeInfo = chip::app::Clusters::RefrigeratorAlarm::Attributes::Mask::TypeInfo;
- TypeInfo::Type cppValue;
-
- std::vector> cleanupByteArrays;
- std::vector> cleanupStrings;
-
- cppValue.SetRaw(static_cast::IntegerType>(
- chip::JniReferences::GetInstance().LongToPrimitive(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;
- RefrigeratorAlarmCluster * 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, DishwasherModeSelectCluster, writeStartUpModeAttribute)
(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs)
{
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
index 4c97e2f64ea6ae..ab5668bb585a8a 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
@@ -15239,20 +15239,6 @@ public RefrigeratorAlarmCluster(long devicePtr, int endpointId) {
@Override
public native long initWithDevice(long devicePtr, int endpointId);
- public void reset(DefaultClusterCallback callback
- , Long alarms, Optional mask) {
- reset(chipClusterPtr, callback, alarms, mask, null);
- }
-
- public void reset(DefaultClusterCallback callback
- , Long alarms, Optional mask
- , int timedInvokeTimeoutMs) {
- reset(chipClusterPtr, callback, alarms, mask, timedInvokeTimeoutMs);
- }
- private native void reset(long chipClusterPtr, DefaultClusterCallback Callback
- , Long alarms, Optional mask
- , @Nullable Integer timedInvokeTimeoutMs);
-
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -15279,13 +15265,6 @@ public void readMaskAttribute(
) {
readMaskAttribute(chipClusterPtr, callback);
}
- public void writeMaskAttribute(DefaultClusterCallback callback, Long value) {
- writeMaskAttribute(chipClusterPtr, callback, value, null);
- }
-
- public void writeMaskAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) {
- writeMaskAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs);
- }
public void subscribeMaskAttribute(
LongAttributeCallback callback
,
@@ -15293,18 +15272,6 @@ public void subscribeMaskAttribute(
subscribeMaskAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
- public void readLatchAttribute(
- LongAttributeCallback callback
- ) {
- readLatchAttribute(chipClusterPtr, callback);
- }
- public void subscribeLatchAttribute(
- LongAttributeCallback callback
-,
- int minInterval, int maxInterval) {
- subscribeLatchAttribute(chipClusterPtr, callback, minInterval, maxInterval);
- }
-
public void readStateAttribute(
LongAttributeCallback callback
) {
@@ -15392,19 +15359,10 @@ public void subscribeClusterRevisionAttribute(
private native void readMaskAttribute(long chipClusterPtr,
LongAttributeCallback callback
);
-
- private native void writeMaskAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs);
private native void subscribeMaskAttribute(long chipClusterPtr,
LongAttributeCallback callback
, int minInterval, int maxInterval);
- private native void readLatchAttribute(long chipClusterPtr,
- LongAttributeCallback callback
- );
- private native void subscribeLatchAttribute(long chipClusterPtr,
- LongAttributeCallback callback
-, int minInterval, int maxInterval);
-
private native void readStateAttribute(long chipClusterPtr,
LongAttributeCallback callback
);
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java
index c66c5671540094..b5196f7354ddb3 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipIdLookup.java
@@ -2355,9 +2355,6 @@ public static String attributeIdToName(long clusterId, long attributeId) {
if (attributeId == 0L) {
return "Mask";
}
- if (attributeId == 1L) {
- return "Latch";
- }
if (attributeId == 2L) {
return "State";
}
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
index 938f6eecae2db5..79c3ce862aaa5d 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
@@ -22169,28 +22169,6 @@ public Map> getCommandMap() {
Map temperatureControlClusterInteractionInfoMap = new LinkedHashMap<>();
commandMap.put("temperatureControl", temperatureControlClusterInteractionInfoMap);
Map refrigeratorAlarmClusterInteractionInfoMap = new LinkedHashMap<>();
- Map refrigeratorAlarmresetCommandParams = new LinkedHashMap();
- CommandParameterInfo refrigeratorAlarmresetalarmsCommandParameterInfo = new CommandParameterInfo("alarms", Long.class, Long.class);
- refrigeratorAlarmresetCommandParams.put("alarms",refrigeratorAlarmresetalarmsCommandParameterInfo);
-
- CommandParameterInfo refrigeratorAlarmresetmaskCommandParameterInfo = new CommandParameterInfo("mask", Optional.class, Long.class);
- refrigeratorAlarmresetCommandParams.put("mask",refrigeratorAlarmresetmaskCommandParameterInfo);
-
- InteractionInfo refrigeratorAlarmresetInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.RefrigeratorAlarmCluster) cluster)
- .reset((DefaultClusterCallback) callback
- , (Long)
- commandArguments.get("alarms")
- , (Optional)
- commandArguments.get("mask")
-
- );
- },
- () -> new DelegatedDefaultClusterCallback(),
- refrigeratorAlarmresetCommandParams
- );
- refrigeratorAlarmClusterInteractionInfoMap.put("reset", refrigeratorAlarmresetInteractionInfo);
commandMap.put("refrigeratorAlarm", refrigeratorAlarmClusterInteractionInfoMap);
Map dishwasherModeSelectClusterInteractionInfoMap = new LinkedHashMap<>();
Map dishwasherModeSelectchangeToModeCommandParams = new LinkedHashMap();
diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py
index c2c14aad29bf99..18e277d585efc6 100644
--- a/src/controller/python/chip/clusters/CHIPClusters.py
+++ b/src/controller/python/chip/clusters/CHIPClusters.py
@@ -4816,14 +4816,6 @@ class ChipClusters:
"clusterName": "RefrigeratorAlarm",
"clusterId": 0x00000057,
"commands": {
- 0x00000000: {
- "commandId": 0x00000000,
- "commandName": "Reset",
- "args": {
- "alarms": "int",
- "mask": "int",
- },
- },
},
"attributes": {
0x00000000: {
@@ -4831,13 +4823,6 @@ class ChipClusters:
"attributeId": 0x00000000,
"type": "int",
"reportable": True,
- "writable": True,
- },
- 0x00000001: {
- "attributeName": "Latch",
- "attributeId": 0x00000001,
- "type": "int",
- "reportable": True,
},
0x00000002: {
"attributeName": "State",
diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py
index 4ceed3686093c9..895dc2e2ea1ce4 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -16738,7 +16738,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
return ClusterObjectDescriptor(
Fields=[
ClusterObjectFieldDescriptor(Label="mask", Tag=0x00000000, Type=uint),
- ClusterObjectFieldDescriptor(Label="latch", Tag=0x00000001, Type=uint),
ClusterObjectFieldDescriptor(Label="state", Tag=0x00000002, Type=uint),
ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]),
ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]),
@@ -16749,7 +16748,6 @@ def descriptor(cls) -> ClusterObjectDescriptor:
])
mask: 'uint' = None
- latch: 'uint' = None
state: 'uint' = None
generatedCommandList: 'typing.List[uint]' = None
acceptedCommandList: 'typing.List[uint]' = None
@@ -16762,25 +16760,6 @@ class Bitmaps:
class AlarmMap(IntFlag):
kDoorOpen = 0x1
- class Commands:
- @dataclass
- class Reset(ClusterCommand):
- cluster_id: typing.ClassVar[int] = 0x0057
- command_id: typing.ClassVar[int] = 0x00000000
- is_client: typing.ClassVar[bool] = True
- response_type: typing.ClassVar[str] = None
-
- @ChipUtility.classproperty
- def descriptor(cls) -> ClusterObjectDescriptor:
- return ClusterObjectDescriptor(
- Fields=[
- ClusterObjectFieldDescriptor(Label="alarms", Tag=0, Type=uint),
- ClusterObjectFieldDescriptor(Label="mask", Tag=1, Type=typing.Optional[uint]),
- ])
-
- alarms: 'uint' = 0
- mask: 'typing.Optional[uint]' = None
-
class Attributes:
@dataclass
class Mask(ClusterAttributeDescriptor):
@@ -16798,22 +16777,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor:
value: 'uint' = 0
- @dataclass
- class Latch(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0057
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000001
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=uint)
-
- value: 'uint' = 0
-
@dataclass
class State(ClusterAttributeDescriptor):
@ChipUtility.classproperty
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
index 827908ec02f779..06e181722442f6 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
@@ -2022,9 +2022,6 @@ static BOOL AttributeIsSpecifiedInRefrigeratorAlarmCluster(AttributeId aAttribut
case Attributes::Mask::Id: {
return YES;
}
- case Attributes::Latch::Id: {
- return YES;
- }
case Attributes::State::Id: {
return YES;
}
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
index 474ddd74175abf..5dc9f24ed4b93b 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
@@ -10551,17 +10551,6 @@ static id _Nullable DecodeAttributeValueForRefrigeratorAlarmCluster(
value = [NSNumber numberWithUnsignedInt:cppValue.Raw()];
return value;
}
- case Attributes::Latch::Id: {
- using TypeInfo = Attributes::Latch::TypeInfo;
- TypeInfo::DecodableType cppValue;
- *aError = DataModel::Decode(aReader, cppValue);
- if (*aError != CHIP_NO_ERROR) {
- return nil;
- }
- NSNumber * _Nonnull value;
- value = [NSNumber numberWithUnsignedInt:cppValue.Raw()];
- return value;
- }
case Attributes::State::Id: {
using TypeInfo = Attributes::State::TypeInfo;
TypeInfo::DecodableType cppValue;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
index b2f1787777cd87..411cade51a104a 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
@@ -8821,20 +8821,8 @@ MTR_NEWLY_AVAILABLE
endpointID:(NSNumber *)endpointID
queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_NEWLY_AVAILABLE;
-/**
- * Command Reset
- *
- * Reset alarm
- */
-- (void)resetWithParams:(MTRRefrigeratorAlarmClusterResetParams *)params
- completion:(MTRStatusCompletion)completion MTR_NEWLY_AVAILABLE;
-
- (void)readAttributeMaskWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
MTR_NEWLY_AVAILABLE;
-- (void)writeAttributeMaskWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_NEWLY_AVAILABLE;
-- (void)writeAttributeMaskWithValue:(NSNumber * _Nonnull)value
- params:(MTRWriteParams * _Nullable)params
- completion:(MTRStatusCompletion)completion MTR_NEWLY_AVAILABLE;
- (void)subscribeAttributeMaskWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
@@ -8845,18 +8833,6 @@ MTR_NEWLY_AVAILABLE
completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
MTR_NEWLY_AVAILABLE;
-- (void)readAttributeLatchWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
- MTR_NEWLY_AVAILABLE;
-- (void)subscribeAttributeLatchWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
- MTR_NEWLY_AVAILABLE;
-+ (void)readAttributeLatchWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer
- endpoint:(NSNumber *)endpoint
- queue:(dispatch_queue_t)queue
- completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
- MTR_NEWLY_AVAILABLE;
-
- (void)readAttributeStateWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
MTR_NEWLY_AVAILABLE;
- (void)subscribeAttributeStateWithParams:(MTRSubscribeParams *)params
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
index 09ba8a2093b654..21a73c911a86a8 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
@@ -51119,46 +51119,6 @@ - (instancetype)initWithDevice:(MTRBaseDevice *)device endpointID:(NSNumber *)en
return self;
}
-- (void)resetWithParams:(MTRRefrigeratorAlarmClusterResetParams *)params completion:(MTRStatusCompletion)completion
-{
- // Make a copy of params before we go async.
- params = [params copy];
- auto * bridge = new MTRCommandSuccessCallbackBridge(
- self.callbackQueue,
- ^(id _Nullable value, NSError * _Nullable error) {
- completion(error);
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, CommandSuccessCallbackType successCb,
- MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- auto * typedBridge = static_cast(bridge);
- Optional timedInvokeTimeoutMs;
- Optional invokeTimeout;
- ListFreer listFreer;
- RefrigeratorAlarm::Commands::Reset::Type request;
- if (params != nil) {
- if (params.timedInvokeTimeoutMs != nil) {
- params.timedInvokeTimeoutMs = MTRClampedNumber(params.timedInvokeTimeoutMs, @(1), @(UINT16_MAX));
- timedInvokeTimeoutMs.SetValue(params.timedInvokeTimeoutMs.unsignedShortValue);
- }
- if (params.serverSideProcessingTimeout != nil) {
- // Clamp to a number of seconds that will not overflow 32-bit
- // int when converted to ms.
- auto * serverSideProcessingTimeout = MTRClampedNumber(params.serverSideProcessingTimeout, @(0), @(UINT16_MAX));
- invokeTimeout.SetValue(Seconds16(serverSideProcessingTimeout.unsignedShortValue));
- }
- }
- request.alarms = static_cast>(params.alarms.unsignedIntValue);
- if (params.mask != nil) {
- auto & definedValue_0 = request.mask.Emplace();
- definedValue_0 = static_cast>(params.mask.unsignedIntValue);
- }
-
- return MTRStartInvokeInteraction(typedBridge, request, exchangeManager, session, successCb, failureCb, self->_endpoint,
- timedInvokeTimeoutMs, invokeTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
- (void)readAttributeMaskWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
{
MTRReadParams * params = [[MTRReadParams alloc] init];
@@ -51167,43 +51127,6 @@ - (void)readAttributeMaskWithCompletion:(void (^)(NSNumber * _Nullable value, NS
params, completion, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
}
-- (void)writeAttributeMaskWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeMaskWithValue:(NSNumber * _Nonnull) value params:nil completion:completion];
-}
-- (void)writeAttributeMaskWithValue:(NSNumber * _Nonnull)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 = RefrigeratorAlarm::Attributes::Mask::TypeInfo;
- TypeInfo::Type cppValue;
- cppValue = static_cast>(value.unsignedIntValue);
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self->_endpoint);
- return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
- });
- std::move(*bridge).DispatchAction(self.device);
-}
-
- (void)subscribeAttributeMaskWithParams:(MTRSubscribeParams * _Nonnull)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
@@ -51239,49 +51162,6 @@ + (void)readAttributeMaskWithClusterStateCache:(MTRClusterStateCacheContainer *)
});
}
-- (void)readAttributeLatchWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- MTRReadParams * params = [[MTRReadParams alloc] init];
- using TypeInfo = RefrigeratorAlarm::Attributes::Latch::TypeInfo;
- return MTRReadAttribute(
- params, completion, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(), TypeInfo::GetAttributeId());
-}
-
-- (void)subscribeAttributeLatchWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = RefrigeratorAlarm::Attributes::Latch::TypeInfo;
- MTRSubscribeAttribute(params,
- subscriptionEstablished, reportHandler, self.callbackQueue, self.device, self->_endpoint, TypeInfo::GetClusterId(),
- TypeInfo::GetAttributeId());
-}
-
-+ (void)readAttributeLatchWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer
- endpoint:(NSNumber *)endpoint
- queue:(dispatch_queue_t)queue
- completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- auto * bridge = new MTRRefrigeratorAlarmLatchAttributeCallbackBridge(queue, completion);
- std::move(*bridge).DispatchLocalAction(
- clusterStateCacheContainer.baseDevice, ^(RefrigeratorAlarmLatchAttributeCallback successCb, MTRErrorCallback failureCb) {
- if (clusterStateCacheContainer.cppClusterStateCache) {
- chip::app::ConcreteAttributePath path;
- using TypeInfo = RefrigeratorAlarm::Attributes::Latch::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)readAttributeStateWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
{
MTRReadParams * params = [[MTRReadParams alloc] init];
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
index 89a4fa61e0a908..cc5adf9f51ffa4 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h
@@ -1697,7 +1697,6 @@ typedef void (*TemperatureControlEventListListAttributeCallback)(void * context,
typedef void (*TemperatureControlAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*RefrigeratorAlarmMaskAttributeCallback)(void *, chip::BitMask);
-typedef void (*RefrigeratorAlarmLatchAttributeCallback)(void *, chip::BitMask);
typedef void (*RefrigeratorAlarmStateAttributeCallback)(void *, chip::BitMask);
typedef void (*RefrigeratorAlarmGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
@@ -10421,36 +10420,6 @@ class MTRRefrigeratorAlarmMaskAttributeCallbackSubscriptionBridge : public MTRRe
MTRSubscriptionEstablishedHandler mEstablishedHandler;
};
-class MTRRefrigeratorAlarmLatchAttributeCallbackBridge : public MTRCallbackBridge
-{
-public:
- MTRRefrigeratorAlarmLatchAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler) :
- MTRCallbackBridge(queue, handler, OnSuccessFn){};
-
- MTRRefrigeratorAlarmLatchAttributeCallbackBridge(dispatch_queue_t queue, ResponseHandler handler, MTRActionBlock action) :
- MTRCallbackBridge(queue, handler, action, OnSuccessFn){};
-
- static void OnSuccessFn(void * context, chip::BitMask value);
-};
-
-class MTRRefrigeratorAlarmLatchAttributeCallbackSubscriptionBridge : public MTRRefrigeratorAlarmLatchAttributeCallbackBridge
-{
-public:
- MTRRefrigeratorAlarmLatchAttributeCallbackSubscriptionBridge(dispatch_queue_t queue, ResponseHandler handler,
- MTRActionBlock action,
- MTRSubscriptionEstablishedHandler establishedHandler) :
- MTRRefrigeratorAlarmLatchAttributeCallbackBridge(queue, handler, action),
- mEstablishedHandler(establishedHandler)
- {}
-
- void OnSubscriptionEstablished();
- using MTRRefrigeratorAlarmLatchAttributeCallbackBridge::KeepAliveOnCallback;
- using MTRRefrigeratorAlarmLatchAttributeCallbackBridge::OnDone;
-
-private:
- MTRSubscriptionEstablishedHandler mEstablishedHandler;
-};
-
class MTRRefrigeratorAlarmStateAttributeCallbackBridge : public MTRCallbackBridge
{
public:
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
index eee827df8e1982..59a40c50754d21 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm
@@ -9366,29 +9366,6 @@
}
}
-void MTRRefrigeratorAlarmLatchAttributeCallbackBridge::OnSuccessFn(
- void * context, chip::BitMask value)
-{
- NSNumber * _Nonnull objCValue;
- objCValue = [NSNumber numberWithUnsignedInt:value.Raw()];
- DispatchSuccess(context, objCValue);
-};
-
-void MTRRefrigeratorAlarmLatchAttributeCallbackSubscriptionBridge::OnSubscriptionEstablished()
-{
- if (!mQueue) {
- return;
- }
-
- if (mEstablishedHandler != nil) {
- dispatch_async(mQueue, mEstablishedHandler);
- // On failure, mEstablishedHandler will be cleaned up by our destructor,
- // but we can clean it up earlier on successful subscription
- // establishment.
- mEstablishedHandler = nil;
- }
-}
-
void MTRRefrigeratorAlarmStateAttributeCallbackBridge::OnSuccessFn(
void * context, chip::BitMask value)
{
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
index 1dad329c8587c2..ac1d50df6c3b0a 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
@@ -3877,7 +3877,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) {
// Cluster RefrigeratorAlarm attributes
MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeMaskID MTR_NEWLY_AVAILABLE = 0x00000000,
- MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeLatchID MTR_NEWLY_AVAILABLE = 0x00000001,
MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeStateID MTR_NEWLY_AVAILABLE = 0x00000002,
MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeGeneratedCommandListID MTR_NEWLY_AVAILABLE
= MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
@@ -10320,9 +10319,6 @@ typedef NS_ENUM(uint32_t, MTRCommandIDType) {
// Cluster TemperatureControl commands
MTRCommandIDTypeClusterTemperatureControlCommandSetTemperatureID MTR_NEWLY_AVAILABLE = 0x00000000,
- // Cluster RefrigeratorAlarm commands
- MTRCommandIDTypeClusterRefrigeratorAlarmCommandResetID MTR_NEWLY_AVAILABLE = 0x00000000,
-
// Cluster DishwasherModeSelect commands
MTRCommandIDTypeClusterDishwasherModeSelectCommandChangeToModeID MTR_NEWLY_AVAILABLE = 0x00000000,
MTRCommandIDTypeClusterDishwasherModeSelectCommandChangeToModeWithStatusID MTR_NEWLY_AVAILABLE = 0x00000001,
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
index a3eb25e438d75a..3af0c629c6ecad 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
@@ -3106,19 +3106,7 @@ MTR_NEWLY_AVAILABLE
endpointID:(NSNumber *)endpointID
queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER MTR_NEWLY_AVAILABLE;
-- (void)resetWithParams:(MTRRefrigeratorAlarmClusterResetParams *)params
- expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries
- expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs
- completion:(MTRStatusCompletion)completion MTR_NEWLY_AVAILABLE;
-
- (NSDictionary *)readAttributeMaskWithParams:(MTRReadParams * _Nullable)params MTR_NEWLY_AVAILABLE;
-- (void)writeAttributeMaskWithValue:(NSDictionary *)dataValueDictionary
- expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_NEWLY_AVAILABLE;
-- (void)writeAttributeMaskWithValue:(NSDictionary *)dataValueDictionary
- expectedValueInterval:(NSNumber *)expectedValueIntervalMs
- params:(MTRWriteParams * _Nullable)params MTR_NEWLY_AVAILABLE;
-
-- (NSDictionary *)readAttributeLatchWithParams:(MTRReadParams * _Nullable)params MTR_NEWLY_AVAILABLE;
- (NSDictionary *)readAttributeStateWithParams:(MTRReadParams * _Nullable)params MTR_NEWLY_AVAILABLE;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
index ed4e065fd5abbe..3fa25fecb396ea 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
@@ -14345,78 +14345,6 @@ - (instancetype)initWithDevice:(MTRDevice *)device endpointID:(NSNumber *)endpoi
return self;
}
-- (void)resetWithParams:(MTRRefrigeratorAlarmClusterResetParams *)params
- expectedValues:(NSArray *> *)expectedValues
- expectedValueInterval:(NSNumber *)expectedValueIntervalMs
- completion:(MTRStatusCompletion)completion
-{
- NSString * logPrefix = [NSString stringWithFormat:@"MTRDevice command %u %u %u %u", self.device.deviceController.fabricIndex,
- _endpoint, (unsigned int) MTRClusterIDTypeRefrigeratorAlarmID,
- (unsigned int) MTRCommandIDTypeClusterRefrigeratorAlarmCommandResetID];
- // Make a copy of params before we go async.
- params = [params copy];
- NSNumber * timedInvokeTimeoutMsParam = params.timedInvokeTimeoutMs;
- if (timedInvokeTimeoutMsParam) {
- timedInvokeTimeoutMsParam = MTRClampedNumber(timedInvokeTimeoutMsParam, @(1), @(UINT16_MAX));
- }
- MTRAsyncCallbackQueueWorkItem * workItem = [[MTRAsyncCallbackQueueWorkItem alloc] initWithQueue:self.device.queue];
- MTRAsyncCallbackReadyHandler readyHandler = ^(MTRDevice * device, NSUInteger retryCount) {
- MTRClustersLogDequeue(logPrefix, self.device.asyncCallbackWorkQueue);
- MTRBaseDevice * baseDevice = [[MTRBaseDevice alloc] initWithNodeID:self.device.nodeID
- controller:self.device.deviceController];
- auto * bridge = new MTRCommandSuccessCallbackBridge(
- self.device.queue,
- ^(id _Nullable value, NSError * _Nullable error) {
- MTRClustersLogCompletion(logPrefix, value, error);
- dispatch_async(self.callbackQueue, ^{
- completion(error);
- });
- [workItem endWork];
- },
- ^(ExchangeManager & exchangeManager, const SessionHandle & session, CommandSuccessCallbackType successCb,
- MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) {
- auto * typedBridge = static_cast(bridge);
- Optional timedInvokeTimeoutMs;
- Optional invokeTimeout;
- ListFreer listFreer;
- RefrigeratorAlarm::Commands::Reset::Type request;
- if (timedInvokeTimeoutMsParam != nil) {
- timedInvokeTimeoutMs.SetValue(timedInvokeTimeoutMsParam.unsignedShortValue);
- }
- if (params != nil) {
- if (params.serverSideProcessingTimeout != nil) {
- // Clamp to a number of seconds that will not overflow 32-bit
- // int when converted to ms.
- auto * serverSideProcessingTimeout
- = MTRClampedNumber(params.serverSideProcessingTimeout, @(0), @(UINT16_MAX));
- invokeTimeout.SetValue(Seconds16(serverSideProcessingTimeout.unsignedShortValue));
- }
- }
- request.alarms = static_cast>(params.alarms.unsignedIntValue);
- if (params.mask != nil) {
- auto & definedValue_0 = request.mask.Emplace();
- definedValue_0 = static_cast>(params.mask.unsignedIntValue);
- }
-
- return MTRStartInvokeInteraction(typedBridge, request, exchangeManager, session, successCb, failureCb,
- self->_endpoint, timedInvokeTimeoutMs, invokeTimeout);
- });
- std::move(*bridge).DispatchAction(baseDevice);
- };
- workItem.readyHandler = readyHandler;
- MTRClustersLogEnqueue(logPrefix, self.device.asyncCallbackWorkQueue);
- [self.device.asyncCallbackWorkQueue enqueueWorkItem:workItem];
-
- if (!expectedValueIntervalMs || ([expectedValueIntervalMs compare:@(0)] == NSOrderedAscending)) {
- expectedValues = nil;
- } else {
- expectedValueIntervalMs = MTRClampedNumber(expectedValueIntervalMs, @(1), @(UINT32_MAX));
- }
- if (expectedValues) {
- [self.device setExpectedValues:expectedValues expectedValueInterval:expectedValueIntervalMs];
- }
-}
-
- (NSDictionary *)readAttributeMaskWithParams:(MTRReadParams * _Nullable)params
{
return [self.device readAttributeWithEndpointID:@(_endpoint)
@@ -14425,33 +14353,6 @@ - (void)resetWithParams:(MTRRefrigeratorAlarmClusterResetParams *)params
params:params];
}
-- (void)writeAttributeMaskWithValue:(NSDictionary *)dataValueDictionary
- expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeMaskWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeMaskWithValue:(NSDictionary *)dataValueDictionary
- expectedValueInterval:(NSNumber *)expectedValueIntervalMs
- params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:@(_endpoint)
- clusterID:@(MTRClusterIDTypeRefrigeratorAlarmID)
- attributeID:@(MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeMaskID)
- value:dataValueDictionary
- expectedValueInterval:expectedValueIntervalMs
- timedWriteTimeout:timedWriteTimeout];
-}
-
-- (NSDictionary *)readAttributeLatchWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:@(_endpoint)
- clusterID:@(MTRClusterIDTypeRefrigeratorAlarmID)
- attributeID:@(MTRAttributeIDTypeClusterRefrigeratorAlarmAttributeLatchID)
- params:params];
-}
-
- (NSDictionary *)readAttributeStateWithParams:(MTRReadParams * _Nullable)params
{
return [self.device readAttributeWithEndpointID:@(_endpoint)
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h
index 9f480341bb0aa4..485f8eca38b239 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h
@@ -4482,38 +4482,6 @@ MTR_NEWLY_AVAILABLE
@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout;
@end
-MTR_NEWLY_AVAILABLE
-@interface MTRRefrigeratorAlarmClusterResetParams : NSObject
-
-@property (nonatomic, copy) NSNumber * _Nonnull alarms MTR_NEWLY_AVAILABLE;
-
-@property (nonatomic, copy) NSNumber * _Nullable mask MTR_NEWLY_AVAILABLE;
-/**
- * Controls whether the command is a timed command (using Timed Invoke).
- *
- * If nil (the default value), a regular invoke is done for commands that do
- * not require a timed invoke and a timed invoke with some default timed request
- * timeout is done for commands that require a timed invoke.
- *
- * If not nil, a timed invoke is done, with the provided value used as the timed
- * request timeout. The value should be chosen small enough to provide the
- * desired security properties but large enough that it will allow a round-trip
- * from the sever to the client (for the status response and actual invoke
- * request) within the timeout window.
- *
- */
-@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs;
-
-/**
- * Controls how much time, in seconds, we will allow for the server to process the command.
- *
- * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes.
- *
- * If nil, the framework will try to select an appropriate timeout value itself.
- */
-@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout;
-@end
-
MTR_NEWLY_AVAILABLE
@interface MTRDishwasherModeSelectClusterChangeToModeParams : NSObject
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm
index b4d0b6a5bdde60..20c8fec44088c0 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm
@@ -7215,40 +7215,6 @@ - (NSString *)description
return descriptionString;
}
-@end
-@implementation MTRRefrigeratorAlarmClusterResetParams
-- (instancetype)init
-{
- if (self = [super init]) {
-
- _alarms = @(0);
-
- _mask = nil;
- _timedInvokeTimeoutMs = nil;
- _serverSideProcessingTimeout = nil;
- }
- return self;
-}
-
-- (id)copyWithZone:(NSZone * _Nullable)zone;
-{
- auto other = [[MTRRefrigeratorAlarmClusterResetParams alloc] init];
-
- other.alarms = self.alarms;
- other.mask = self.mask;
- other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs;
- other.serverSideProcessingTimeout = self.serverSideProcessingTimeout;
-
- return other;
-}
-
-- (NSString *)description
-{
- NSString * descriptionString =
- [NSString stringWithFormat:@"<%@: alarms:%@; mask:%@; >", NSStringFromClass([self class]), _alarms, _mask];
- return descriptionString;
-}
-
@end
@implementation MTRDishwasherModeSelectClusterChangeToModeParams
- (instancetype)init
diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
index 7cccc68ca15d07..b97be5c7d12f6b 100644
--- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
+++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp
@@ -8449,37 +8449,6 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask * value)
-{
- using Traits = NumericAttributeTraits>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::RefrigeratorAlarm::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status);
- if (!Traits::CanRepresentValue(/* isNullable = */ false, temp))
- {
- return EMBER_ZCL_STATUS_CONSTRAINT_ERROR;
- }
- *value = Traits::StorageToWorking(temp);
- return status;
-}
-EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value)
-{
- using Traits = NumericAttributeTraits>;
- if (!Traits::CanRepresentValue(/* isNullable = */ false, value))
- {
- return EMBER_ZCL_STATUS_CONSTRAINT_ERROR;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::RefrigeratorAlarm::Id, Id, writable, ZCL_BITMAP32_ATTRIBUTE_TYPE);
-}
-
-} // namespace Latch
-
namespace State {
EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value)
diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
index 2e2afc01f0bf80..3ed6ac79097601 100644
--- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
+++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h
@@ -1591,11 +1591,6 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask value);
} // namespace Mask
-namespace Latch {
-EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value); // AlarmMap
-EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value);
-} // namespace Latch
-
namespace State {
EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value); // AlarmMap
EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value);
diff --git a/zzz_generated/app-common/app-common/zap-generated/callback.h b/zzz_generated/app-common/app-common/zap-generated/callback.h
index 166914a3b367b1..01c4b64102d471 100644
--- a/zzz_generated/app-common/app-common/zap-generated/callback.h
+++ b/zzz_generated/app-common/app-common/zap-generated/callback.h
@@ -11602,12 +11602,6 @@ bool emberAfRvcCleanModeSelectClusterChangeToModeWithStatusCallback(
bool emberAfTemperatureControlClusterSetTemperatureCallback(
chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
const chip::app::Clusters::TemperatureControl::Commands::SetTemperature::DecodableType & commandData);
-/**
- * @brief Refrigerator Alarm Cluster Reset Command callback (from client)
- */
-bool emberAfRefrigeratorAlarmClusterResetCallback(
- chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath,
- const chip::app::Clusters::RefrigeratorAlarm::Commands::Reset::DecodableType & commandData);
/**
* @brief Dishwasher Mode Select Cluster ChangeToMode Command callback (from client)
*/
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
index f7d66afebb9b7b..fd477e9981f522 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp
@@ -12333,49 +12333,7 @@ namespace Events {} // namespace Events
} // namespace TemperatureControl
namespace RefrigeratorAlarm {
-namespace Commands {
-namespace Reset {
-CHIP_ERROR Type::Encode(TLV::TLVWriter & writer, TLV::Tag tag) const
-{
- TLV::TLVType outer;
- ReturnErrorOnFailure(writer.StartContainer(tag, TLV::kTLVType_Structure, outer));
- ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(Fields::kAlarms), alarms));
- ReturnErrorOnFailure(DataModel::Encode(writer, TLV::ContextTag(Fields::kMask), mask));
- ReturnErrorOnFailure(writer.EndContainer(outer));
- return CHIP_NO_ERROR;
-}
-
-CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader)
-{
- CHIP_ERROR err = CHIP_NO_ERROR;
- TLV::TLVType outer;
- VerifyOrReturnError(TLV::kTLVType_Structure == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
- ReturnErrorOnFailure(reader.EnterContainer(outer));
- while ((err = reader.Next()) == CHIP_NO_ERROR)
- {
- if (!TLV::IsContextTag(reader.GetTag()))
- {
- continue;
- }
- switch (TLV::TagNumFromTag(reader.GetTag()))
- {
- case to_underlying(Fields::kAlarms):
- ReturnErrorOnFailure(DataModel::Decode(reader, alarms));
- break;
- case to_underlying(Fields::kMask):
- ReturnErrorOnFailure(DataModel::Decode(reader, mask));
- break;
- default:
- break;
- }
- }
-
- VerifyOrReturnError(err == CHIP_END_OF_TLV, err);
- ReturnErrorOnFailure(reader.ExitContainer(outer));
- return CHIP_NO_ERROR;
-}
-} // namespace Reset.
-} // namespace Commands
+namespace Commands {} // namespace Commands
namespace Attributes {
CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path)
@@ -12385,9 +12343,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre
case Attributes::Mask::TypeInfo::GetAttributeId():
ReturnErrorOnFailure(DataModel::Decode(reader, mask));
break;
- case Attributes::Latch::TypeInfo::GetAttributeId():
- ReturnErrorOnFailure(DataModel::Decode(reader, latch));
- break;
case Attributes::State::TypeInfo::GetAttributeId():
ReturnErrorOnFailure(DataModel::Decode(reader, state));
break;
@@ -28100,13 +28055,6 @@ bool CommandIsFabricScoped(ClusterId aCluster, CommandId aCommand)
return false;
}
}
- case Clusters::RefrigeratorAlarm::Id: {
- switch (aCommand)
- {
- default:
- return false;
- }
- }
case Clusters::DishwasherModeSelect::Id: {
switch (aCommand)
{
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
index 12a46694abbebc..ac48d43c4184fc 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h
@@ -15519,54 +15519,6 @@ struct TypeInfo
} // namespace TemperatureControl
namespace RefrigeratorAlarm {
-namespace Commands {
-// Forward-declarations so we can reference these later.
-
-namespace Reset {
-struct Type;
-struct DecodableType;
-} // namespace Reset
-
-} // namespace Commands
-
-namespace Commands {
-namespace Reset {
-enum class Fields : uint8_t
-{
- kAlarms = 0,
- kMask = 1,
-};
-
-struct Type
-{
-public:
- // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand
- static constexpr CommandId GetCommandId() { return Commands::Reset::Id; }
- static constexpr ClusterId GetClusterId() { return Clusters::RefrigeratorAlarm::Id; }
-
- chip::BitMask alarms = static_cast>(0);
- Optional> mask;
-
- CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const;
-
- using ResponseType = DataModel::NullObjectType;
-
- static constexpr bool MustUseTimedInvoke() { return false; }
-};
-
-struct DecodableType
-{
-public:
- static constexpr CommandId GetCommandId() { return Commands::Reset::Id; }
- static constexpr ClusterId GetClusterId() { return Clusters::RefrigeratorAlarm::Id; }
-
- chip::BitMask alarms = static_cast>(0);
- Optional> mask;
- CHIP_ERROR Decode(TLV::TLVReader & reader);
-};
-}; // namespace Reset
-} // namespace Commands
-
namespace Attributes {
namespace Mask {
@@ -15581,18 +15533,6 @@ struct TypeInfo
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace Mask
-namespace Latch {
-struct TypeInfo
-{
- using Type = chip::BitMask;
- using DecodableType = chip::BitMask;
- using DecodableArgType = chip::BitMask;
-
- static constexpr ClusterId GetClusterId() { return Clusters::RefrigeratorAlarm::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::Latch::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace Latch
namespace State {
struct TypeInfo
{
@@ -15652,8 +15592,6 @@ struct TypeInfo
Attributes::Mask::TypeInfo::DecodableType mask =
static_cast>(0);
- Attributes::Latch::TypeInfo::DecodableType latch =
- static_cast>(0);
Attributes::State::TypeInfo::DecodableType state =
static_cast>(0);
Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
index d495f996dd47d7..11da751d55b1ab 100644
--- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
+++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h
@@ -2728,10 +2728,6 @@ namespace Mask {
static constexpr AttributeId Id = 0x00000000;
} // namespace Mask
-namespace Latch {
-static constexpr AttributeId Id = 0x00000001;
-} // namespace Latch
-
namespace State {
static constexpr AttributeId Id = 0x00000002;
} // namespace State
diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h
index 4fe28a102e0644..54ed91151d52cd 100644
--- a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h
+++ b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h
@@ -731,16 +731,6 @@ static constexpr CommandId Id = 0x00000000;
} // namespace Commands
} // namespace TemperatureControl
-namespace RefrigeratorAlarm {
-namespace Commands {
-
-namespace Reset {
-static constexpr CommandId Id = 0x00000000;
-} // namespace Reset
-
-} // namespace Commands
-} // namespace RefrigeratorAlarm
-
namespace DishwasherModeSelect {
namespace Commands {
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
index 60cff013806976..bf23ae01800f1c 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
@@ -4511,11 +4511,9 @@ class TemperatureControlSetTemperature : public ClusterCommand
| Cluster RefrigeratorAlarm | 0x0057 |
|------------------------------------------------------------------------------|
| Commands: | |
-| * Reset | 0x00 |
|------------------------------------------------------------------------------|
| Attributes: | |
| * Mask | 0x0000 |
-| * Latch | 0x0001 |
| * State | 0x0002 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
@@ -4528,37 +4526,6 @@ class TemperatureControlSetTemperature : public ClusterCommand
| * Notify | 0x0000 |
\*----------------------------------------------------------------------------*/
-/*
- * Command Reset
- */
-class RefrigeratorAlarmReset : public ClusterCommand
-{
-public:
- RefrigeratorAlarmReset(CredentialIssuerCommands * credsIssuerConfig) : ClusterCommand("reset", credsIssuerConfig)
- {
- AddArgument("Alarms", 0, UINT32_MAX, &mRequest.alarms);
- AddArgument("Mask", 0, UINT32_MAX, &mRequest.mask);
- ClusterCommand::AddArguments();
- }
-
- CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) command (0x00000000) on endpoint %u", endpointIds.at(0));
-
- return ClusterCommand::SendCommand(device, endpointIds.at(0), 0x00000057, 0x00000000, mRequest);
- }
-
- CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) command (0x00000000) on Group %u", groupId);
-
- return ClusterCommand::SendGroupCommand(groupId, fabricIndex, 0x00000057, 0x00000000, mRequest);
- }
-
-private:
- chip::app::Clusters::RefrigeratorAlarm::Commands::Reset::Type mRequest;
-};
-
/*----------------------------------------------------------------------------*\
| Cluster DishwasherModeSelect | 0x0059 |
|------------------------------------------------------------------------------|
@@ -15078,14 +15045,12 @@ void registerClusterRefrigeratorAlarm(Commands & commands, CredentialIssuerComma
//
// Commands
//
- make_unique(Id, credsIssuerConfig), //
- make_unique(credsIssuerConfig), //
+ make_unique(Id, credsIssuerConfig), //
//
// Attributes
//
make_unique(Id, credsIssuerConfig), //
make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), //
- make_unique(Id, "latch", Attributes::Latch::Id, credsIssuerConfig), //
make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), //
make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
@@ -15095,9 +15060,7 @@ void registerClusterRefrigeratorAlarm(Commands & commands, CredentialIssuerComma
make_unique(Id, "cluster-revision", Attributes::ClusterRevision::Id, credsIssuerConfig), //
make_unique>(Id, credsIssuerConfig), //
make_unique>>(
- Id, "mask", 0, UINT32_MAX, Attributes::Mask::Id, WriteCommandType::kWrite, credsIssuerConfig), //
- make_unique>>(
- Id, "latch", 0, UINT32_MAX, Attributes::Latch::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
+ Id, "mask", 0, UINT32_MAX, Attributes::Mask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique>>(
Id, "state", 0, UINT32_MAX, Attributes::State::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique>>(
@@ -15115,7 +15078,6 @@ void registerClusterRefrigeratorAlarm(Commands & commands, CredentialIssuerComma
WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique(Id, credsIssuerConfig), //
make_unique(Id, "mask", Attributes::Mask::Id, credsIssuerConfig), //
- make_unique(Id, "latch", Attributes::Latch::Id, credsIssuerConfig), //
make_unique(Id, "state", Attributes::State::Id, credsIssuerConfig), //
make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
index 118e68b7c9eb61..9ed92e181f3f63 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
@@ -8150,11 +8150,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
return DataModelLogger::LogValue("Mask", 1, value);
}
- case RefrigeratorAlarm::Attributes::Latch::Id: {
- chip::BitMask value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("Latch", 1, value);
- }
case RefrigeratorAlarm::Attributes::State::Id: {
chip::BitMask value;
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
index 398e23449e7565..4384f9719ebab4 100644
--- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
@@ -45468,11 +45468,9 @@ class SubscribeAttributeTemperatureControlClusterRevision : public SubscribeAttr
| Cluster RefrigeratorAlarm | 0x0057 |
|------------------------------------------------------------------------------|
| Commands: | |
-| * Reset | 0x00 |
|------------------------------------------------------------------------------|
| Attributes: | |
| * Mask | 0x0000 |
-| * Latch | 0x0001 |
| * State | 0x0002 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
@@ -45485,58 +45483,6 @@ class SubscribeAttributeTemperatureControlClusterRevision : public SubscribeAttr
| * Notify | 0x0000 |
\*----------------------------------------------------------------------------*/
-/*
- * Command Reset
- */
-class RefrigeratorAlarmReset : public ClusterCommand {
-public:
- RefrigeratorAlarmReset()
- : ClusterCommand("reset")
- {
- AddArgument("Alarms", 0, UINT32_MAX, &mRequest.alarms);
- AddArgument("Mask", 0, UINT32_MAX, &mRequest.mask);
- ClusterCommand::AddArguments();
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) command (0x00000000) on endpoint %u", endpointId);
-
- dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL);
- __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device
- endpointID:@(endpointId)
- queue:callbackQueue];
- __auto_type * params = [[MTRRefrigeratorAlarmClusterResetParams alloc] init];
- params.timedInvokeTimeoutMs
- = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil;
- params.alarms = [NSNumber numberWithUnsignedInt:mRequest.alarms.Raw()];
- if (mRequest.mask.HasValue()) {
- params.mask = [NSNumber numberWithUnsignedInt:mRequest.mask.Value().Raw()];
- } else {
- params.mask = nil;
- }
- uint16_t repeatCount = mRepeatCount.ValueOr(1);
- uint16_t __block responsesNeeded = repeatCount;
- while (repeatCount--) {
- [cluster resetWithParams:params
- completion:^(NSError * _Nullable error) {
- responsesNeeded--;
- if (error != nil) {
- mError = error;
- LogNSError("Error", error);
- }
- if (responsesNeeded == 0) {
- SetCommandExitStatus(mError);
- }
- }];
- }
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::Clusters::RefrigeratorAlarm::Commands::Reset::Type mRequest;
-};
-
/*
* Attribute Mask
*/
@@ -45568,46 +45514,6 @@ class ReadRefrigeratorAlarmMask : public ReadAttribute {
}
};
-class WriteRefrigeratorAlarmMask : public WriteAttribute {
-public:
- WriteRefrigeratorAlarmMask()
- : WriteAttribute("mask")
- {
- AddArgument("attr-name", "mask");
- AddArgument("attr-value", 0, UINT32_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteRefrigeratorAlarmMask() {}
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) WriteAttribute (0x00000000) on endpoint %u", endpointId);
- dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL);
- __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device
- endpointID:@(endpointId)
- queue:callbackQueue];
- __auto_type * params = [[MTRWriteParams alloc] init];
- params.timedWriteTimeout
- = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil;
- params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil;
- NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue];
-
- [cluster writeAttributeMaskWithValue:value
- params:params
- completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("RefrigeratorAlarm Mask write Error", error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- uint32_t mValue;
-};
-
class SubscribeAttributeRefrigeratorAlarmMask : public SubscribeAttribute {
public:
SubscribeAttributeRefrigeratorAlarmMask()
@@ -45647,76 +45553,6 @@ class SubscribeAttributeRefrigeratorAlarmMask : public SubscribeAttribute {
}
};
-/*
- * Attribute Latch
- */
-class ReadRefrigeratorAlarmLatch : public ReadAttribute {
-public:
- ReadRefrigeratorAlarmLatch()
- : ReadAttribute("latch")
- {
- }
-
- ~ReadRefrigeratorAlarmLatch() {}
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) ReadAttribute (0x00000001) on endpoint %u", endpointId);
-
- dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL);
- __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device
- endpointID:@(endpointId)
- queue:callbackQueue];
- [cluster readAttributeLatchWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"RefrigeratorAlarm.Latch response %@", [value description]);
- if (error != nil) {
- LogNSError("RefrigeratorAlarm Latch read Error", error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class SubscribeAttributeRefrigeratorAlarmLatch : public SubscribeAttribute {
-public:
- SubscribeAttributeRefrigeratorAlarmLatch()
- : SubscribeAttribute("latch")
- {
- }
-
- ~SubscribeAttributeRefrigeratorAlarmLatch() {}
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- ChipLogProgress(chipTool, "Sending cluster (0x00000057) ReportAttribute (0x00000001) on endpoint %u", endpointId);
- dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL);
- __auto_type * cluster = [[MTRBaseClusterRefrigeratorAlarm alloc] initWithDevice:device
- endpointID:@(endpointId)
- queue:callbackQueue];
- __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)];
- if (mKeepSubscriptions.HasValue()) {
- params.replaceExistingSubscriptions = !mKeepSubscriptions.Value();
- }
- if (mFabricFiltered.HasValue()) {
- params.filterByFabric = mFabricFiltered.Value();
- }
- if (mAutoResubscribe.HasValue()) {
- params.resubscribeAutomatically = mAutoResubscribe.Value();
- }
- [cluster subscribeAttributeLatchWithParams:params
- subscriptionEstablished:^() {
- mSubscriptionEstablished = YES;
- }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"RefrigeratorAlarm.Latch response %@", [value description]);
- SetCommandExitStatus(error);
- }];
-
- return CHIP_NO_ERROR;
- }
-};
-
/*
* Attribute State
*/
@@ -166970,15 +166806,11 @@ void registerClusterRefrigeratorAlarm(Commands & commands)
commands_list clusterCommands = {
make_unique(Id), //
- make_unique(), //
make_unique(Id), //
make_unique(), //
make_unique(Id), //
- make_unique(), //
make_unique(Id), //
make_unique(), //
- make_unique(), //
- make_unique(), //
make_unique(), //
make_unique(), //
make_unique(), //