Skip to content

Commit f28a8a2

Browse files
Add contact sensor device type to endpoint 1 (#32992)
1 parent a0c4d57 commit f28a8a2

File tree

2 files changed

+543
-0
lines changed

2 files changed

+543
-0
lines changed

examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter

+58
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,23 @@ cluster UserLabel = 65 {
13921392
readonly attribute int16u clusterRevision = 65533;
13931393
}
13941394

1395+
/** This cluster provides an interface to a boolean state called StateValue. */
1396+
cluster BooleanState = 69 {
1397+
revision 1;
1398+
1399+
info event StateChange = 0 {
1400+
boolean stateValue = 0;
1401+
}
1402+
1403+
readonly attribute boolean stateValue = 0;
1404+
readonly attribute command_id generatedCommandList[] = 65528;
1405+
readonly attribute command_id acceptedCommandList[] = 65529;
1406+
readonly attribute event_id eventList[] = 65530;
1407+
readonly attribute attrib_id attributeList[] = 65531;
1408+
readonly attribute bitmap32 featureMap = 65532;
1409+
readonly attribute int16u clusterRevision = 65533;
1410+
}
1411+
13951412
/** Allows servers to ensure that listed clients are notified when a server is available for communication. */
13961413
cluster IcdManagement = 70 {
13971414
revision 2;
@@ -1783,5 +1800,46 @@ endpoint 0 {
17831800
handle command StayActiveResponse;
17841801
}
17851802
}
1803+
endpoint 1 {
1804+
device type ma_contactsensor = 21, version 1;
1805+
1806+
1807+
server cluster Identify {
1808+
ram attribute identifyTime default = 0x0;
1809+
ram attribute identifyType default = 0x00;
1810+
callback attribute generatedCommandList;
1811+
callback attribute acceptedCommandList;
1812+
callback attribute eventList;
1813+
callback attribute attributeList;
1814+
ram attribute featureMap default = 0;
1815+
ram attribute clusterRevision default = 4;
1816+
1817+
handle command Identify;
1818+
handle command TriggerEffect;
1819+
}
1820+
1821+
server cluster Descriptor {
1822+
callback attribute deviceTypeList;
1823+
callback attribute serverList;
1824+
callback attribute clientList;
1825+
callback attribute partsList;
1826+
callback attribute generatedCommandList;
1827+
callback attribute acceptedCommandList;
1828+
callback attribute eventList;
1829+
callback attribute attributeList;
1830+
callback attribute featureMap;
1831+
callback attribute clusterRevision;
1832+
}
1833+
1834+
server cluster BooleanState {
1835+
ram attribute stateValue;
1836+
callback attribute generatedCommandList;
1837+
callback attribute acceptedCommandList;
1838+
callback attribute eventList;
1839+
callback attribute attributeList;
1840+
ram attribute featureMap default = 0;
1841+
ram attribute clusterRevision default = 1;
1842+
}
1843+
}
17861844

17871845

0 commit comments

Comments
 (0)