Skip to content

Commit 4c40688

Browse files
author
Juan Erasmo Trejo
committed
Added missing commands to refrigerator alarm.
1 parent 87f7c4c commit 4c40688

File tree

25 files changed

+918
-6
lines changed

25 files changed

+918
-6
lines changed

examples/all-clusters-app/all-clusters-common/all-clusters-app.matter

+13
Original file line numberDiff line numberDiff line change
@@ -3419,6 +3419,19 @@ cluster RefrigeratorAlarm = 87 {
34193419
readonly attribute attrib_id attributeList[] = 65531;
34203420
readonly attribute bitmap32 featureMap = 65532;
34213421
readonly attribute int16u clusterRevision = 65533;
3422+
3423+
request struct ResetRequest {
3424+
AlarmBitmap alarms = 0;
3425+
}
3426+
3427+
request struct ModifyEnabledAlarmsRequest {
3428+
AlarmBitmap mask = 0;
3429+
}
3430+
3431+
/** Reset alarm */
3432+
command Reset(ResetRequest): DefaultSuccess = 0;
3433+
/** Modify enabled alarms */
3434+
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 1;
34223435
}
34233436

34243437
/** Attributes and commands for selecting a mode from a list of supported options. */

examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter

+13
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,19 @@ cluster RefrigeratorAlarm = 87 {
13711371
readonly attribute attrib_id attributeList[] = 65531;
13721372
readonly attribute bitmap32 featureMap = 65532;
13731373
readonly attribute int16u clusterRevision = 65533;
1374+
1375+
request struct ResetRequest {
1376+
AlarmBitmap alarms = 0;
1377+
}
1378+
1379+
request struct ModifyEnabledAlarmsRequest {
1380+
AlarmBitmap mask = 0;
1381+
}
1382+
1383+
/** Reset alarm */
1384+
command Reset(ResetRequest): DefaultSuccess = 0;
1385+
/** Modify enabled alarms */
1386+
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 1;
13741387
}
13751388

13761389
/** Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements. */

examples/refrigerator-app/silabs/data_model/refrigerator-thread-app.matter

+13
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,19 @@ cluster RefrigeratorAlarm = 87 {
17101710
readonly attribute attrib_id attributeList[] = 65531;
17111711
readonly attribute bitmap32 featureMap = 65532;
17121712
readonly attribute int16u clusterRevision = 65533;
1713+
1714+
request struct ResetRequest {
1715+
AlarmBitmap alarms = 0;
1716+
}
1717+
1718+
request struct ModifyEnabledAlarmsRequest {
1719+
AlarmBitmap mask = 0;
1720+
}
1721+
1722+
/** Reset alarm */
1723+
command Reset(ResetRequest): DefaultSuccess = 0;
1724+
/** Modify enabled alarms */
1725+
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 1;
17131726
}
17141727

17151728
endpoint 0 {

examples/refrigerator-app/silabs/data_model/refrigerator-wifi-app.matter

+13
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,19 @@ cluster RefrigeratorAlarm = 87 {
16211621
readonly attribute attrib_id attributeList[] = 65531;
16221622
readonly attribute bitmap32 featureMap = 65532;
16231623
readonly attribute int16u clusterRevision = 65533;
1624+
1625+
request struct ResetRequest {
1626+
AlarmBitmap alarms = 0;
1627+
}
1628+
1629+
request struct ModifyEnabledAlarmsRequest {
1630+
AlarmBitmap mask = 0;
1631+
}
1632+
1633+
/** Reset alarm */
1634+
command Reset(ResetRequest): DefaultSuccess = 0;
1635+
/** Modify enabled alarms */
1636+
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 1;
16241637
}
16251638

16261639
endpoint 0 {

src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml

+14
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ limitations under the License.
3939
<mandatoryConform/>
4040
</attribute>
4141

42+
<command source="client" code="0x00" name="Reset" optional="true">
43+
<description>Reset alarm</description>
44+
<arg name="Alarms" type="AlarmBitmap" optional="false"/>
45+
<mandatoryConform>
46+
<feature name="RESET"/>
47+
</mandatoryConform>
48+
</command>
49+
50+
<command source="client" code="0x01" name="ModifyEnabledAlarms" optional="true">
51+
<description>Modify enabled alarms</description>
52+
<arg name="Mask" type="AlarmBitmap" optional="false"/>
53+
<optionalConform/>
54+
</command>
55+
4256
<event side="server" code="0x00" priority="info" name="Notify" optional="false">
4357
<description>Notify</description>
4458
<field id="0" name="Active" type="AlarmBitmap" />

src/controller/data_model/controller-clusters.matter

+13
Original file line numberDiff line numberDiff line change
@@ -3637,6 +3637,19 @@ cluster RefrigeratorAlarm = 87 {
36373637
readonly attribute attrib_id attributeList[] = 65531;
36383638
readonly attribute bitmap32 featureMap = 65532;
36393639
readonly attribute int16u clusterRevision = 65533;
3640+
3641+
request struct ResetRequest {
3642+
AlarmBitmap alarms = 0;
3643+
}
3644+
3645+
request struct ModifyEnabledAlarmsRequest {
3646+
AlarmBitmap mask = 0;
3647+
}
3648+
3649+
/** Reset alarm */
3650+
command Reset(ResetRequest): DefaultSuccess = 0;
3651+
/** Modify enabled alarms */
3652+
command ModifyEnabledAlarms(ModifyEnabledAlarmsRequest): DefaultSuccess = 1;
36403653
}
36413654

36423655
/** Attributes and commands for selecting a mode from a list of supported options. */

src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java

+38-2
Original file line numberDiff line numberDiff line change
@@ -7198,7 +7198,9 @@ public static Event value(long id) throws NoSuchFieldError {
71987198
}
71997199
}
72007200

7201-
public enum Command {;
7201+
public enum Command {
7202+
Reset(0L),
7203+
ModifyEnabledAlarms(1L),;
72027204
private final long id;
72037205
Command(long id) {
72047206
this.id = id;
@@ -7216,7 +7218,41 @@ public static Command value(long id) throws NoSuchFieldError {
72167218
}
72177219
throw new NoSuchFieldError();
72187220
}
7219-
}@Override
7221+
}public enum ResetCommandField {Alarms(0),;
7222+
private final int id;
7223+
ResetCommandField(int id) {
7224+
this.id = id;
7225+
}
7226+
7227+
public int getID() {
7228+
return id;
7229+
}
7230+
public static ResetCommandField value(int id) throws NoSuchFieldError {
7231+
for (ResetCommandField field : ResetCommandField.values()) {
7232+
if (field.getID() == id) {
7233+
return field;
7234+
}
7235+
}
7236+
throw new NoSuchFieldError();
7237+
}
7238+
}public enum ModifyEnabledAlarmsCommandField {Mask(0),;
7239+
private final int id;
7240+
ModifyEnabledAlarmsCommandField(int id) {
7241+
this.id = id;
7242+
}
7243+
7244+
public int getID() {
7245+
return id;
7246+
}
7247+
public static ModifyEnabledAlarmsCommandField value(int id) throws NoSuchFieldError {
7248+
for (ModifyEnabledAlarmsCommandField field : ModifyEnabledAlarmsCommandField.values()) {
7249+
if (field.getID() == id) {
7250+
return field;
7251+
}
7252+
}
7253+
throw new NoSuchFieldError();
7254+
}
7255+
}@Override
72207256
public String getAttributeName(long id) throws NoSuchFieldError {
72217257
return Attribute.value(id).toString();
72227258
}

src/controller/python/chip/clusters/CHIPClusters.py

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controller/python/chip/clusters/Objects.py

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm

+49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)