Skip to content

Commit

Permalink
Add supported attribute to refrigerator alarm cluster xml (#27433)
Browse files Browse the repository at this point in the history
* Add supported attribute to refrigerator alarm cluster xml

* Zap regen
  • Loading branch information
jadhavrohit924 authored and pull[bot] committed Feb 26, 2024
1 parent 0fbf28c commit 1093948
Show file tree
Hide file tree
Showing 30 changed files with 363 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13080,7 +13080,7 @@
"name": "Refrigerator Alarm",
"code": 87,
"mfgCode": null,
"define": "REFRIGERATOR_ALARM",
"define": "REFRIGERATOR_ALARM_CLUSTER",
"side": "client",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -13122,7 +13122,7 @@
"name": "Refrigerator Alarm",
"code": 87,
"mfgCode": null,
"define": "REFRIGERATOR_ALARM",
"define": "REFRIGERATOR_ALARM_CLUSTER",
"side": "server",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -32125,4 +32125,4 @@
}
],
"log": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ limitations under the License.
<domain>Appliances</domain>
<description>Attributes and commands for configuring the Refrigerator alarm.</description>
<code>0x0057</code>
<define>REFRIGERATOR_ALARM</define>
<define>REFRIGERATOR_ALARM_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<attribute side="server" code="0x0000" define="MASK" type="AlarmMap" default="0" writable="false" optional="false">Mask</attribute>
<attribute side="server" code="0x0002" define="STATE" type="AlarmMap" default="0" writable="false" optional="false">State</attribute>
<attribute side="server" code="0x0003" define="SUPPORTED" type="AlarmMap" default="0" writable="false" optional="false">Supported</attribute>

<event side="server" code="0x00" priority="info" name="Notify" optional="false">
<description>Notify</description>
Expand Down
4 changes: 2 additions & 2 deletions src/app/zap_cluster_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"PWM_CLUSTER": [],
"REFRIGERATOR_AND_TEMPERATURE_CONTROLLED_CABINET_MODE_CLUSTER": [],
"RADON_CONCENTRATION_MEASUREMENT_CLUSTER": [],
"REFRIGERATOR_ALARM": [],
"REFRIGERATOR_ALARM_CLUSTER": [],
"RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER": [],
"RVC_CLEAN_MODE_CLUSTER": [],
"RVC_RUN_MODE_CLUSTER": [],
Expand Down Expand Up @@ -263,7 +263,7 @@
],
"PWM_CLUSTER": [],
"RADON_CONCENTRATION_MEASUREMENT_CLUSTER": [],
"REFRIGERATOR_ALARM": ["refrigerator-alarm-server"],
"REFRIGERATOR_ALARM_CLUSTER": ["refrigerator-alarm-server"],
"REFRIGERATOR_AND_TEMPERATURE_CONTROLLED_CABINET_MODE_CLUSTER": [
"mode-select-server"
],
Expand Down
1 change: 1 addition & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3068,6 +3068,7 @@ client cluster RefrigeratorAlarm = 87 {

readonly attribute AlarmMap mask = 0;
readonly attribute AlarmMap state = 2;
readonly attribute AlarmMap supported = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down
6 changes: 3 additions & 3 deletions src/controller/data_model/controller-clusters.zap
Original file line number Diff line number Diff line change
Expand Up @@ -11913,7 +11913,7 @@
"name": "Refrigerator Alarm",
"code": 87,
"mfgCode": null,
"define": "REFRIGERATOR_ALARM",
"define": "REFRIGERATOR_ALARM_CLUSTER",
"side": "client",
"enabled": 1,
"attributes": [
Expand Down Expand Up @@ -11955,7 +11955,7 @@
"name": "Refrigerator Alarm",
"code": 87,
"mfgCode": null,
"define": "REFRIGERATOR_ALARM",
"define": "REFRIGERATOR_ALARM_CLUSTER",
"side": "server",
"enabled": 0,
"attributes": [
Expand Down Expand Up @@ -38914,4 +38914,4 @@
}
],
"log": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7043,6 +7043,7 @@ public long getID() {
public enum Attribute {
Mask(0L),
State(2L),
Supported(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6785,6 +6785,17 @@ private static Map<String, InteractionInfo> readRefrigeratorAlarmInteractionInfo
readRefrigeratorAlarmStateCommandParams
);
result.put("readStateAttribute", readRefrigeratorAlarmStateAttributeInteractionInfo);
Map<String, CommandParameterInfo> readRefrigeratorAlarmSupportedCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readRefrigeratorAlarmSupportedAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
((ChipClusters.RefrigeratorAlarmCluster) cluster).readSupportedAttribute(
(ChipClusters.LongAttributeCallback) callback
);
},
() -> new ClusterInfoMapping.DelegatedLongAttributeCallback(),
readRefrigeratorAlarmSupportedCommandParams
);
result.put("readSupportedAttribute", readRefrigeratorAlarmSupportedAttributeInteractionInfo);
Map<String, CommandParameterInfo> readRefrigeratorAlarmGeneratedCommandListCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readRefrigeratorAlarmGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
Expand Down
15 changes: 15 additions & 0 deletions src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/controller/python/chip/clusters/CHIPClusters.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1093948

Please sign in to comment.