Skip to content

Commit

Permalink
Add an Action Switch endpoint to all-clusters-app
Browse files Browse the repository at this point in the history
- 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 project-chip#34304

Testing done:

- No regressions of integration tests
  • Loading branch information
tcarmelveilleux committed Jul 16, 2024
1 parent 522668f commit f7a5d43
Show file tree
Hide file tree
Showing 25 changed files with 614 additions and 119 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 f7a5d43

Please sign in to comment.