Skip to content

Commit

Permalink
Chang the configuration used
Browse files Browse the repository at this point in the history
  • Loading branch information
hare-siterwell committed Aug 11, 2023
1 parent fc0b15c commit 61d76b8
Show file tree
Hide file tree
Showing 8 changed files with 915 additions and 1,698 deletions.
92 changes: 8 additions & 84 deletions examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,6 @@ server cluster PowerSource = 47 {
readonly attribute PowerSourceStatusEnum status = 0;
readonly attribute int8u order = 1;
readonly attribute char_string<60> description = 2;
readonly attribute BatChargeLevelEnum batChargeLevel = 14;
readonly attribute boolean batReplacementNeeded = 15;
readonly attribute BatReplaceabilityEnum batReplaceability = 16;
readonly attribute endpoint_no endpointList[] = 31;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -1033,58 +1030,6 @@ server cluster GeneralDiagnostics = 51 {
command access(invoke: manage) TestEventTrigger(TestEventTriggerRequest): DefaultSuccess = 0;
}

/** This cluster exposes interactions with a switch device, for the purpose of using those interactions by other devices.
Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags.
Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. */
server cluster Switch = 59 {
bitmap Feature : BITMAP32 {
kLatchingSwitch = 0x1;
kMomentarySwitch = 0x2;
kMomentarySwitchRelease = 0x4;
kMomentarySwitchLongPress = 0x8;
kMomentarySwitchMultiPress = 0x10;
}

info event SwitchLatched = 0 {
INT8U newPosition = 0;
}

info event InitialPress = 1 {
INT8U newPosition = 0;
}

info event LongPress = 2 {
INT8U newPosition = 0;
}

info event ShortRelease = 3 {
INT8U previousPosition = 0;
}

info event LongRelease = 4 {
INT8U previousPosition = 0;
}

info event MultiPressOngoing = 5 {
INT8U newPosition = 0;
INT8U currentNumberOfPressesCounted = 1;
}

info event MultiPressComplete = 6 {
INT8U previousPosition = 0;
INT8U totalNumberOfPressesCounted = 1;
}

readonly attribute int8u numberOfPositions = 0;
readonly attribute int8u currentPosition = 1;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;
}

/** Commands to trigger a Node to allow a new Administrator to commission it. */
server cluster AdministratorCommissioning = 60 {
enum CommissioningWindowStatusEnum : ENUM8 {
Expand Down Expand Up @@ -1424,13 +1369,8 @@ server cluster SmokeCoAlarm = 92 {
}

endpoint 0 {
device type rootdevice = 22, version 1;
device type ma_rootdevice = 22, version 1;

server cluster Groups {
ram attribute nameSupport;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 3;
}

server cluster Descriptor {
callback attribute deviceTypeList;
Expand Down Expand Up @@ -1524,13 +1464,6 @@ endpoint 0 {
ram attribute clusterRevision default = 0x0001;
}

server cluster Switch {
ram attribute numberOfPositions default = 2;
ram attribute currentPosition;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
}

server cluster AdministratorCommissioning {
callback attribute windowStatus default = 0;
callback attribute adminFabricIndex default = 1;
Expand Down Expand Up @@ -1560,14 +1493,14 @@ endpoint 0 {
}
}
endpoint 1 {
device type anonymousEndpointType = 118, version 1;
device type ma_smokecoalarm = 118, version 1;


server cluster Identify {
ram attribute identifyTime default = 0x0;
ram attribute identifyType default = 0x0;
callback attribute generatedCommandList default = 0;
callback attribute acceptedCommandList default = 0;
callback attribute eventList;
callback attribute attributeList default = 0;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 2;
Expand All @@ -1577,7 +1510,6 @@ endpoint 1 {
ram attribute nameSupport;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 3;
Expand All @@ -1593,7 +1525,6 @@ endpoint 1 {
callback attribute remainingCapacity;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 5;
Expand All @@ -1606,27 +1537,21 @@ endpoint 1 {
callback attribute partsList default = 0;
callback attribute generatedCommandList default = 0;
callback attribute acceptedCommandList default = 0;
callback attribute eventList;
callback attribute attributeList default = 0;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
}

server cluster PowerSource {
emits event BatFaultChange;
ram attribute status default = 0;
ram attribute order default = 2;
ram attribute description default = "B2";
ram attribute batChargeLevel default = 0;
ram attribute batReplacementNeeded;
ram attribute batReplaceability;
ram attribute status;
ram attribute order;
ram attribute description;
callback attribute endpointList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 2;
ram attribute clusterRevision default = 2;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;
}

server cluster SmokeCoAlarm {
Expand Down Expand Up @@ -1656,7 +1581,6 @@ endpoint 1 {
ram attribute expiryDate default = 0;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 3;
ram attribute clusterRevision default = 1;
Expand Down
Loading

0 comments on commit 61d76b8

Please sign in to comment.