Skip to content

Commit

Permalink
Add an Action Switch endpoint to all-clusters-app (#34355)
Browse files Browse the repository at this point in the history
* Add an Action Switch endpoint to all-clusters-app

- Action Switch is a new feature for a TCR
- Need to have the ZAP files updated before adding the logic to
  reduce review burden.
- Re-ran zap_convert_all.py (some of the changes are due to that)

Issue #34304

Testing done:

- No regressions of integration tests

* Fix integration test

* Try to fix Darwin tests

* Attempt to fix tests some more

* Fix Darwin tests

* Restyled by clang-format

* Fix the Darwin tests to actually pass.

* Fix typos

---------

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
3 people authored and pull[bot] committed Sep 13, 2024
1 parent 36849a8 commit cd9714c
Show file tree
Hide file tree
Showing 26 changed files with 615 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9265,6 +9265,48 @@ endpoint 2 {
ram attribute clusterRevision default = 4;
}
}
endpoint 3 {
device type ma_genericswitch = 15, version 3;


server cluster Identify {
ram attribute identifyTime default = 0x0000;
ram attribute identifyType default = 0x00;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 4;

handle command Identify;
handle command TriggerEffect;
}

server cluster Descriptor {
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute tagList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
callback attribute featureMap;
callback attribute clusterRevision;
}

server cluster Switch {
emits event InitialPress;
emits event LongPress;
emits event LongRelease;
emits event MultiPressComplete;
ram attribute numberOfPositions default = 2;
ram attribute currentPosition default = 0;
ram attribute multiPressMax default = 3;
ram attribute featureMap default = 58;
ram attribute clusterRevision default = 2;
}
}
endpoint 65534 {
device type ma_secondary_network_interface = 25, version 1;

Expand Down
Loading

0 comments on commit cd9714c

Please sign in to comment.