Skip to content

Commit 8dc4cbd

Browse files
committed
Add chime cluster to tests
1 parent afeefa5 commit 8dc4cbd

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

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

+23
Original file line numberDiff line numberDiff line change
@@ -7014,6 +7014,28 @@ cluster LowPower = 1288 {
70147014
command Sleep(): DefaultSuccess = 0;
70157015
}
70167016

7017+
/** This cluster provides facilities to configure and play Chime sounds, such as those used in a doorbell. */
7018+
provisional cluster Chime = 1366 {
7019+
revision 1;
7020+
7021+
struct ChimeSoundStruct {
7022+
int8u chimeID = 0;
7023+
char_string<48> name = 1;
7024+
}
7025+
7026+
readonly attribute ChimeSoundStruct installedChimeSounds[] = 0;
7027+
attribute int8u selectedChime = 1;
7028+
attribute boolean enabled = 2;
7029+
readonly attribute command_id generatedCommandList[] = 65528;
7030+
readonly attribute command_id acceptedCommandList[] = 65529;
7031+
readonly attribute event_id eventList[] = 65530;
7032+
readonly attribute attrib_id attributeList[] = 65531;
7033+
readonly attribute bitmap32 featureMap = 65532;
7034+
readonly attribute int16u clusterRevision = 65533;
7035+
7036+
command PlayChimeSound(): DefaultSuccess = 0;
7037+
}
7038+
70177039
/** The Test Cluster is meant to validate the generated code */
70187040
internal cluster UnitTesting = 4294048773 {
70197041
revision 1; // NOTE: Default/not specifically set
@@ -8063,6 +8085,7 @@ endpoint 1 {
80638085
device type ma_onofflight = 256, version 1;
80648086

80658087
binding cluster OnOff;
8088+
binding cluster Chime;
80668089

80678090
server cluster Identify {
80688091
ram attribute identifyTime default = 0x0000;

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

+19
Original file line numberDiff line numberDiff line change
@@ -20860,6 +20860,25 @@
2086020860
}
2086120861
]
2086220862
},
20863+
{
20864+
"name": "Chime",
20865+
"code": 1366,
20866+
"mfgCode": null,
20867+
"define": "CHIME_CLUSTER",
20868+
"side": "client",
20869+
"enabled": 1,
20870+
"apiMaturity": "provisional",
20871+
"commands": [
20872+
{
20873+
"name": "PlayChimeSound",
20874+
"code": 0,
20875+
"mfgCode": null,
20876+
"source": "client",
20877+
"isIncoming": 0,
20878+
"isEnabled": 1
20879+
}
20880+
]
20881+
},
2086320882
{
2086420883
"name": "Unit Testing",
2086520884
"code": 4294048773,

0 commit comments

Comments
 (0)