Skip to content

Commit bc0e0a9

Browse files
Applied comments about typing and commented code, as well as example of colorcontrol in scenes
1 parent b51b2d8 commit bc0e0a9

File tree

43 files changed

+985
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+985
-564
lines changed

data_model/clusters/Scenes.xml

+66-66
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
<?xml version="1.0"?>
2-
<!--
3-
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
4-
The information within this document is the property of the Connectivity
5-
Standards Alliance and its use and disclosure are restricted, except as
6-
expressly set forth herein.
7-
8-
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
9-
nontransferable, worldwide, limited and revocable license (without the right to
10-
sublicense), under Connectivity Standards Alliance's applicable copyright
11-
rights, to view, download, save, reproduce and use the document solely for your
12-
own internal purposes and in accordance with the terms of the license set forth
13-
herein. This license does not authorize you to, and you expressly warrant that
14-
you shall not: (a) permit others (outside your organization) to use this
15-
document; (b) post or publish this document; (c) modify, adapt, translate, or
16-
otherwise change this document in any manner or create any derivative work
17-
based on this document; (d) remove or modify any notice or label on this
18-
document, including this Copyright Notice, License and Disclaimer. The
19-
Connectivity Standards Alliance does not grant you any license hereunder other
20-
than as expressly stated herein.
21-
22-
Elements of this document may be subject to third party intellectual property
23-
rights, including without limitation, patent, copyright or trademark rights,
24-
and any such third party may or may not be a member of the Connectivity
25-
Standards Alliance. Connectivity Standards Alliance members grant other
26-
Connectivity Standards Alliance members certain intellectual property rights as
27-
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
28-
Standards Alliance members do not grant you any rights under this license. The
29-
Connectivity Standards Alliance is not responsible for, and shall not be held
30-
responsible in any manner for, identifying or failing to identify any or all
31-
such third party intellectual property rights. Please visit www.csa-iot.org for
32-
more information on how to become a member of the Connectivity Standards
33-
Alliance.
34-
35-
This document and the information contained herein are provided on an “AS IS”
36-
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
37-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
38-
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
39-
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
40-
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
41-
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
42-
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
43-
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
44-
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
45-
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
46-
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
47-
LOSS OR DAMAGE.
48-
49-
All company, brand and product names in this document may be trademarks that
50-
are the sole property of their respective owners.
51-
52-
This notice and disclaimer must be included on all copies of this document.
53-
54-
Connectivity Standards Alliance
55-
508 Second Street, Suite 206
56-
Davis, CA 95616, USA
57-
58-
:xrefstyle: basic
2+
<!--
3+
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
4+
The information within this document is the property of the Connectivity
5+
Standards Alliance and its use and disclosure are restricted, except as
6+
expressly set forth herein.
7+
8+
Connectivity Standards Alliance hereby grants you a fully-paid, non-exclusive,
9+
nontransferable, worldwide, limited and revocable license (without the right to
10+
sublicense), under Connectivity Standards Alliance's applicable copyright
11+
rights, to view, download, save, reproduce and use the document solely for your
12+
own internal purposes and in accordance with the terms of the license set forth
13+
herein. This license does not authorize you to, and you expressly warrant that
14+
you shall not: (a) permit others (outside your organization) to use this
15+
document; (b) post or publish this document; (c) modify, adapt, translate, or
16+
otherwise change this document in any manner or create any derivative work
17+
based on this document; (d) remove or modify any notice or label on this
18+
document, including this Copyright Notice, License and Disclaimer. The
19+
Connectivity Standards Alliance does not grant you any license hereunder other
20+
than as expressly stated herein.
21+
22+
Elements of this document may be subject to third party intellectual property
23+
rights, including without limitation, patent, copyright or trademark rights,
24+
and any such third party may or may not be a member of the Connectivity
25+
Standards Alliance. Connectivity Standards Alliance members grant other
26+
Connectivity Standards Alliance members certain intellectual property rights as
27+
set forth in the Connectivity Standards Alliance IPR Policy. Connectivity
28+
Standards Alliance members do not grant you any rights under this license. The
29+
Connectivity Standards Alliance is not responsible for, and shall not be held
30+
responsible in any manner for, identifying or failing to identify any or all
31+
such third party intellectual property rights. Please visit www.csa-iot.org for
32+
more information on how to become a member of the Connectivity Standards
33+
Alliance.
34+
35+
This document and the information contained herein are provided on an “AS IS”
36+
basis and the Connectivity Standards Alliance DISCLAIMS ALL WARRANTIES EXPRESS
37+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE
38+
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING
39+
WITHOUT LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT, COPYRIGHT
40+
OR TRADEMARK RIGHTS); OR (B) ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
41+
FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT. IN NO EVENT WILL THE
42+
CONNECTIVITY STANDARDS ALLIANCE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
43+
BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF BUSINESS, OR FOR ANY OTHER
44+
DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
45+
DAMAGES OF ANY KIND, IN CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT
46+
OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
47+
LOSS OR DAMAGE.
48+
49+
All company, brand and product names in this document may be trademarks that
50+
are the sole property of their respective owners.
51+
52+
This notice and disclaimer must be included on all copies of this document.
53+
54+
Connectivity Standards Alliance
55+
508 Second Street, Suite 206
56+
Davis, CA 95616, USA
57+
58+
:xrefstyle: basic
5959
-->
6060
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x0062" name="Scenes Management" revision="1">
6161
<revisionHistory>
@@ -80,28 +80,28 @@ Davis, CA 95616, USA
8080
<field id="0" name="AttributeID" type="attribute-id">
8181
<mandatoryConform/>
8282
</field>
83-
<field id="1" name="ValueUnsigned8" type="uint8">
83+
<field id="1" name="ValueUnsigned64" type="uint8">
8484
<optionalConform choice="a"/>
8585
</field>
86-
<field id="2" name="ValueSigned8" type="int8">
86+
<field id="2" name="ValueSigned64" type="int8">
8787
<optionalConform choice="a"/>
8888
</field>
89-
<field id="3" name="ValueUnsigned16" type="uint16">
89+
<field id="3" name="ValueUnsigned32" type="uint16">
9090
<optionalConform choice="a"/>
9191
</field>
92-
<field id="4" name="ValueSigned16" type="int16">
92+
<field id="4" name="ValueSigned32" type="int16">
9393
<optionalConform choice="a"/>
9494
</field>
95-
<field id="5" name="ValueUnsigned32" type="uint32">
95+
<field id="5" name="ValueUnsigned16" type="uint32">
9696
<optionalConform choice="a"/>
9797
</field>
98-
<field id="6" name="ValueSigned32" type="int32">
98+
<field id="6" name="ValueSigned16" type="int32">
9999
<optionalConform choice="a"/>
100100
</field>
101-
<field id="7" name="ValueUnsigned64" type="uint64">
101+
<field id="7" name="ValueUnsigned8" type="uint64">
102102
<optionalConform choice="a"/>
103103
</field>
104-
<field id="8" name="ValueSigned64" type="int64">
104+
<field id="8" name="ValueSigned8" type="int64">
105105
<optionalConform choice="a"/>
106106
</field>
107107
</struct>
@@ -398,4 +398,4 @@ Davis, CA 95616, USA
398398
</field>
399399
</command>
400400
</commands>
401-
</cluster>
401+
</cluster>

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -3512,21 +3512,21 @@ provisional cluster ScenesManagement = 98 {
35123512
kSceneNames = 0x1;
35133513
}
35143514

3515-
struct AttributeValuePair {
3515+
struct AttributeValuePairStruct {
35163516
attrib_id attributeID = 0;
3517-
optional int8u valueUnsigned8 = 1;
3518-
optional int8s valueSigned8 = 2;
3519-
optional int16u valueUnsigned16 = 3;
3520-
optional int16s valueSigned16 = 4;
3521-
optional int32u valueUnsigned32 = 5;
3522-
optional int32s valueSigned32 = 6;
3523-
optional int64u valueUnsigned64 = 7;
3524-
optional int64s valueSigned64 = 8;
3517+
optional int64u valueSigned64 = 1;
3518+
optional int64s valueUnsigned64 = 2;
3519+
optional int32u valueUnsigned32 = 3;
3520+
optional int32s valueSigned32 = 4;
3521+
optional int16u valueUnsigned16 = 5;
3522+
optional int16s valueSigned16 = 6;
3523+
optional int8u valueUnsigned8 = 7;
3524+
optional int8s valueSigned8 = 8;
35253525
}
35263526

35273527
struct ExtensionFieldSet {
35283528
cluster_id clusterID = 0;
3529-
AttributeValuePair attributeValueList[] = 1;
3529+
AttributeValuePairStruct attributeValueList[] = 1;
35303530
}
35313531

35323532
fabric_scoped struct SceneInfoStruct {
@@ -3638,7 +3638,7 @@ provisional cluster ScenesManagement = 98 {
36383638
int8u sceneIdentifierFrom = 2;
36393639
}
36403640

3641-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
3641+
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "ValueX": VALUE}]}' */
36423642
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
36433643
/** Retrieves the requested scene entry from its Scene table. */
36443644
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -2424,21 +2424,21 @@ provisional cluster ScenesManagement = 98 {
24242424
kSceneNames = 0x1;
24252425
}
24262426

2427-
struct AttributeValuePair {
2427+
struct AttributeValuePairStruct {
24282428
attrib_id attributeID = 0;
2429-
optional int8u valueUnsigned8 = 1;
2430-
optional int8s valueSigned8 = 2;
2431-
optional int16u valueUnsigned16 = 3;
2432-
optional int16s valueSigned16 = 4;
2433-
optional int32u valueUnsigned32 = 5;
2434-
optional int32s valueSigned32 = 6;
2435-
optional int64u valueUnsigned64 = 7;
2436-
optional int64s valueSigned64 = 8;
2429+
optional int64u valueSigned64 = 1;
2430+
optional int64s valueUnsigned64 = 2;
2431+
optional int32u valueUnsigned32 = 3;
2432+
optional int32s valueSigned32 = 4;
2433+
optional int16u valueUnsigned16 = 5;
2434+
optional int16s valueSigned16 = 6;
2435+
optional int8u valueUnsigned8 = 7;
2436+
optional int8s valueSigned8 = 8;
24372437
}
24382438

24392439
struct ExtensionFieldSet {
24402440
cluster_id clusterID = 0;
2441-
AttributeValuePair attributeValueList[] = 1;
2441+
AttributeValuePairStruct attributeValueList[] = 1;
24422442
}
24432443

24442444
fabric_scoped struct SceneInfoStruct {
@@ -2550,7 +2550,7 @@ provisional cluster ScenesManagement = 98 {
25502550
int8u sceneIdentifierFrom = 2;
25512551
}
25522552

2553-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
2553+
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "ValueX": VALUE}]}' */
25542554
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
25552555
/** Retrieves the requested scene entry from its Scene table. */
25562556
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;

examples/light-switch-app/light-switch-common/light-switch-app.matter

+11-11
Original file line numberDiff line numberDiff line change
@@ -2035,21 +2035,21 @@ provisional cluster ScenesManagement = 98 {
20352035
kSceneNames = 0x1;
20362036
}
20372037

2038-
struct AttributeValuePair {
2038+
struct AttributeValuePairStruct {
20392039
attrib_id attributeID = 0;
2040-
optional int8u valueUnsigned8 = 1;
2041-
optional int8s valueSigned8 = 2;
2042-
optional int16u valueUnsigned16 = 3;
2043-
optional int16s valueSigned16 = 4;
2044-
optional int32u valueUnsigned32 = 5;
2045-
optional int32s valueSigned32 = 6;
2046-
optional int64u valueUnsigned64 = 7;
2047-
optional int64s valueSigned64 = 8;
2040+
optional int64u valueSigned64 = 1;
2041+
optional int64s valueUnsigned64 = 2;
2042+
optional int32u valueUnsigned32 = 3;
2043+
optional int32s valueSigned32 = 4;
2044+
optional int16u valueUnsigned16 = 5;
2045+
optional int16s valueSigned16 = 6;
2046+
optional int8u valueUnsigned8 = 7;
2047+
optional int8s valueSigned8 = 8;
20482048
}
20492049

20502050
struct ExtensionFieldSet {
20512051
cluster_id clusterID = 0;
2052-
AttributeValuePair attributeValueList[] = 1;
2052+
AttributeValuePairStruct attributeValueList[] = 1;
20532053
}
20542054

20552055
fabric_scoped struct SceneInfoStruct {
@@ -2161,7 +2161,7 @@ provisional cluster ScenesManagement = 98 {
21612161
int8u sceneIdentifierFrom = 2;
21622162
}
21632163

2164-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
2164+
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "ValueX": VALUE}]}' */
21652165
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
21662166
/** Retrieves the requested scene entry from its Scene table. */
21672167
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;

examples/light-switch-app/qpg/zap/switch.matter

+11-11
Original file line numberDiff line numberDiff line change
@@ -1832,21 +1832,21 @@ provisional cluster ScenesManagement = 98 {
18321832
kSceneNames = 0x1;
18331833
}
18341834

1835-
struct AttributeValuePair {
1835+
struct AttributeValuePairStruct {
18361836
attrib_id attributeID = 0;
1837-
optional int8u valueUnsigned8 = 1;
1838-
optional int8s valueSigned8 = 2;
1839-
optional int16u valueUnsigned16 = 3;
1840-
optional int16s valueSigned16 = 4;
1841-
optional int32u valueUnsigned32 = 5;
1842-
optional int32s valueSigned32 = 6;
1843-
optional int64u valueUnsigned64 = 7;
1844-
optional int64s valueSigned64 = 8;
1837+
optional int64u valueSigned64 = 1;
1838+
optional int64s valueUnsigned64 = 2;
1839+
optional int32u valueUnsigned32 = 3;
1840+
optional int32s valueSigned32 = 4;
1841+
optional int16u valueUnsigned16 = 5;
1842+
optional int16s valueSigned16 = 6;
1843+
optional int8u valueUnsigned8 = 7;
1844+
optional int8s valueSigned8 = 8;
18451845
}
18461846

18471847
struct ExtensionFieldSet {
18481848
cluster_id clusterID = 0;
1849-
AttributeValuePair attributeValueList[] = 1;
1849+
AttributeValuePairStruct attributeValueList[] = 1;
18501850
}
18511851

18521852
fabric_scoped struct SceneInfoStruct {
@@ -1958,7 +1958,7 @@ provisional cluster ScenesManagement = 98 {
19581958
int8u sceneIdentifierFrom = 2;
19591959
}
19601960

1961-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
1961+
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "ValueX": VALUE}]}' */
19621962
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
19631963
/** Retrieves the requested scene entry from its Scene table. */
19641964
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;

examples/lighting-app/lighting-common/lighting-app.matter

+11-11
Original file line numberDiff line numberDiff line change
@@ -1852,21 +1852,21 @@ provisional cluster ScenesManagement = 98 {
18521852
kSceneNames = 0x1;
18531853
}
18541854

1855-
struct AttributeValuePair {
1855+
struct AttributeValuePairStruct {
18561856
attrib_id attributeID = 0;
1857-
optional int8u valueUnsigned8 = 1;
1858-
optional int8s valueSigned8 = 2;
1859-
optional int16u valueUnsigned16 = 3;
1860-
optional int16s valueSigned16 = 4;
1861-
optional int32u valueUnsigned32 = 5;
1862-
optional int32s valueSigned32 = 6;
1863-
optional int64u valueUnsigned64 = 7;
1864-
optional int64s valueSigned64 = 8;
1857+
optional int64u valueSigned64 = 1;
1858+
optional int64s valueUnsigned64 = 2;
1859+
optional int32u valueUnsigned32 = 3;
1860+
optional int32s valueSigned32 = 4;
1861+
optional int16u valueUnsigned16 = 5;
1862+
optional int16s valueSigned16 = 6;
1863+
optional int8u valueUnsigned8 = 7;
1864+
optional int8s valueSigned8 = 8;
18651865
}
18661866

18671867
struct ExtensionFieldSet {
18681868
cluster_id clusterID = 0;
1869-
AttributeValuePair attributeValueList[] = 1;
1869+
AttributeValuePairStruct attributeValueList[] = 1;
18701870
}
18711871

18721872
fabric_scoped struct SceneInfoStruct {
@@ -1978,7 +1978,7 @@ provisional cluster ScenesManagement = 98 {
19781978
int8u sceneIdentifierFrom = 2;
19791979
}
19801980

1981-
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "AttributeValue": VALUE}]}' */
1981+
/** Add a scene to the scene table. Extension field sets are supported, and are inputed as '{"ClusterID": VALUE, "AttributeValueList":[{"AttributeId": VALUE, "ValueX": VALUE}]}' */
19821982
fabric command access(invoke: manage) AddScene(AddSceneRequest): AddSceneResponse = 0;
19831983
/** Retrieves the requested scene entry from its Scene table. */
19841984
fabric command ViewScene(ViewSceneRequest): ViewSceneResponse = 1;

0 commit comments

Comments
 (0)