Skip to content

Commit 295ad53

Browse files
TC-SWTCH tests (#34559)
* Add non-AS switch endpoint to all-clusters * Add has_feature partial for decorator * TC-SWTCH-2.5: Add Also adds a non-AS implementation in the button simulator. * Restyled by autopep8 * Restyled by isort * linter * Fix test errors - Need tag list on descriptors for ep3 and ep4 because they're now sibling endpoints - Fix desc test to expect the other endpoint --------- Co-authored-by: Restyled.io <[email protected]>
1 parent 37fc757 commit 295ad53

File tree

10 files changed

+1077
-64
lines changed

10 files changed

+1077
-64
lines changed

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

+35
Original file line numberDiff line numberDiff line change
@@ -9384,6 +9384,41 @@ endpoint 3 {
93849384
ram attribute clusterRevision default = 2;
93859385
}
93869386
}
9387+
endpoint 4 {
9388+
device type ma_genericswitch = 15, version 3;
9389+
9390+
9391+
server cluster Identify {
9392+
ram attribute identifyTime default = 0x0000;
9393+
ram attribute identifyType default = 0x00;
9394+
callback attribute generatedCommandList;
9395+
callback attribute acceptedCommandList;
9396+
callback attribute attributeList;
9397+
ram attribute featureMap default = 0;
9398+
ram attribute clusterRevision default = 4;
9399+
}
9400+
9401+
server cluster Descriptor {
9402+
callback attribute deviceTypeList;
9403+
callback attribute serverList;
9404+
callback attribute clientList;
9405+
callback attribute partsList;
9406+
callback attribute tagList;
9407+
callback attribute generatedCommandList;
9408+
callback attribute acceptedCommandList;
9409+
callback attribute attributeList;
9410+
callback attribute featureMap;
9411+
callback attribute clusterRevision;
9412+
}
9413+
9414+
server cluster Switch {
9415+
ram attribute numberOfPositions default = 2;
9416+
ram attribute currentPosition default = 0;
9417+
ram attribute multiPressMax default = 3;
9418+
ram attribute featureMap default = 30;
9419+
ram attribute clusterRevision default = 2;
9420+
}
9421+
}
93879422
endpoint 65534 {
93889423
device type ma_secondary_network_interface = 25, version 1;
93899424

0 commit comments

Comments
 (0)