Skip to content

Commit 597bfa6

Browse files
gd-mauripimpalemahesh
authored andcommittedFeb 12, 2025
removing OccupancySensing Cluster. (project-chip#37469)
1 parent aaa783c commit 597bfa6

File tree

2 files changed

+0
-162
lines changed

2 files changed

+0
-162
lines changed
 

‎examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter

-72
Original file line numberDiff line numberDiff line change
@@ -1857,70 +1857,6 @@ cluster BooleanState = 69 {
18571857
readonly attribute int16u clusterRevision = 65533;
18581858
}
18591859

1860-
/** The server cluster provides an interface to occupancy sensing functionality based on one or more sensing modalities, including configuration and provision of notifications of occupancy status. */
1861-
cluster OccupancySensing = 1030 {
1862-
revision 5;
1863-
1864-
enum OccupancySensorTypeEnum : enum8 {
1865-
kPIR = 0;
1866-
kUltrasonic = 1;
1867-
kPIRAndUltrasonic = 2;
1868-
kPhysicalContact = 3;
1869-
}
1870-
1871-
bitmap Feature : bitmap32 {
1872-
kOther = 0x1;
1873-
kPassiveInfrared = 0x2;
1874-
kUltrasonic = 0x4;
1875-
kPhysicalContact = 0x8;
1876-
kActiveInfrared = 0x10;
1877-
kRadar = 0x20;
1878-
kRFSensing = 0x40;
1879-
kVision = 0x80;
1880-
}
1881-
1882-
bitmap OccupancyBitmap : bitmap8 {
1883-
kOccupied = 0x1;
1884-
}
1885-
1886-
bitmap OccupancySensorTypeBitmap : bitmap8 {
1887-
kPIR = 0x1;
1888-
kUltrasonic = 0x2;
1889-
kPhysicalContact = 0x4;
1890-
}
1891-
1892-
struct HoldTimeLimitsStruct {
1893-
int16u holdTimeMin = 0;
1894-
int16u holdTimeMax = 1;
1895-
int16u holdTimeDefault = 2;
1896-
}
1897-
1898-
info event OccupancyChanged = 0 {
1899-
OccupancyBitmap occupancy = 0;
1900-
}
1901-
1902-
readonly attribute OccupancyBitmap occupancy = 0;
1903-
readonly attribute OccupancySensorTypeEnum occupancySensorType = 1;
1904-
readonly attribute OccupancySensorTypeBitmap occupancySensorTypeBitmap = 2;
1905-
attribute access(write: manage) optional int16u holdTime = 3;
1906-
readonly attribute optional HoldTimeLimitsStruct holdTimeLimits = 4;
1907-
attribute access(write: manage) optional int16u PIROccupiedToUnoccupiedDelay = 16;
1908-
attribute access(write: manage) optional int16u PIRUnoccupiedToOccupiedDelay = 17;
1909-
attribute access(write: manage) optional int8u PIRUnoccupiedToOccupiedThreshold = 18;
1910-
attribute access(write: manage) optional int16u ultrasonicOccupiedToUnoccupiedDelay = 32;
1911-
attribute access(write: manage) optional int16u ultrasonicUnoccupiedToOccupiedDelay = 33;
1912-
attribute access(write: manage) optional int8u ultrasonicUnoccupiedToOccupiedThreshold = 34;
1913-
attribute access(write: manage) optional int16u physicalContactOccupiedToUnoccupiedDelay = 48;
1914-
attribute access(write: manage) optional int16u physicalContactUnoccupiedToOccupiedDelay = 49;
1915-
attribute access(write: manage) optional int8u physicalContactUnoccupiedToOccupiedThreshold = 50;
1916-
readonly attribute command_id generatedCommandList[] = 65528;
1917-
readonly attribute command_id acceptedCommandList[] = 65529;
1918-
readonly attribute event_id eventList[] = 65530;
1919-
readonly attribute attrib_id attributeList[] = 65531;
1920-
readonly attribute bitmap32 featureMap = 65532;
1921-
readonly attribute int16u clusterRevision = 65533;
1922-
}
1923-
19241860
endpoint 0 {
19251861
device type ma_rootdevice = 22, version 2;
19261862

@@ -2296,14 +2232,6 @@ endpoint 1 {
22962232
ram attribute featureMap default = 0;
22972233
ram attribute clusterRevision default = 1;
22982234
}
2299-
2300-
server cluster OccupancySensing {
2301-
ram attribute occupancy;
2302-
ram attribute occupancySensorType;
2303-
ram attribute occupancySensorTypeBitmap;
2304-
callback attribute featureMap;
2305-
ram attribute clusterRevision default = 5;
2306-
}
23072235
}
23082236

23092237

‎examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.zap

-90
Original file line numberDiff line numberDiff line change
@@ -4460,96 +4460,6 @@
44604460
"included": 1
44614461
}
44624462
]
4463-
},
4464-
{
4465-
"name": "Occupancy Sensing",
4466-
"code": 1030,
4467-
"mfgCode": null,
4468-
"define": "OCCUPANCY_SENSING_CLUSTER",
4469-
"side": "server",
4470-
"enabled": 1,
4471-
"attributes": [
4472-
{
4473-
"name": "Occupancy",
4474-
"code": 0,
4475-
"mfgCode": null,
4476-
"side": "server",
4477-
"type": "OccupancyBitmap",
4478-
"included": 1,
4479-
"storageOption": "RAM",
4480-
"singleton": 0,
4481-
"bounded": 0,
4482-
"defaultValue": "",
4483-
"reportable": 1,
4484-
"minInterval": 0,
4485-
"maxInterval": 65344,
4486-
"reportableChange": 0
4487-
},
4488-
{
4489-
"name": "OccupancySensorType",
4490-
"code": 1,
4491-
"mfgCode": null,
4492-
"side": "server",
4493-
"type": "OccupancySensorTypeEnum",
4494-
"included": 1,
4495-
"storageOption": "RAM",
4496-
"singleton": 0,
4497-
"bounded": 0,
4498-
"defaultValue": "",
4499-
"reportable": 1,
4500-
"minInterval": 0,
4501-
"maxInterval": 65344,
4502-
"reportableChange": 0
4503-
},
4504-
{
4505-
"name": "OccupancySensorTypeBitmap",
4506-
"code": 2,
4507-
"mfgCode": null,
4508-
"side": "server",
4509-
"type": "OccupancySensorTypeBitmap",
4510-
"included": 1,
4511-
"storageOption": "RAM",
4512-
"singleton": 0,
4513-
"bounded": 0,
4514-
"defaultValue": "",
4515-
"reportable": 1,
4516-
"minInterval": 0,
4517-
"maxInterval": 65344,
4518-
"reportableChange": 0
4519-
},
4520-
{
4521-
"name": "FeatureMap",
4522-
"code": 65532,
4523-
"mfgCode": null,
4524-
"side": "server",
4525-
"type": "bitmap32",
4526-
"included": 1,
4527-
"storageOption": "External",
4528-
"singleton": 0,
4529-
"bounded": 0,
4530-
"defaultValue": null,
4531-
"reportable": 1,
4532-
"minInterval": 1,
4533-
"maxInterval": 65534,
4534-
"reportableChange": 0
4535-
},
4536-
{
4537-
"name": "ClusterRevision",
4538-
"code": 65533,
4539-
"mfgCode": null,
4540-
"side": "server",
4541-
"type": "int16u",
4542-
"included": 1,
4543-
"storageOption": "RAM",
4544-
"singleton": 0,
4545-
"bounded": 0,
4546-
"defaultValue": "5",
4547-
"reportable": 1,
4548-
"minInterval": 0,
4549-
"maxInterval": 65344,
4550-
"reportableChange": 0
4551-
}
4552-
]
45534463
}
45544464
]
45554465
}

0 commit comments

Comments
 (0)