|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +Copyright (c) 2023 Project CHIP Authors |
| 4 | +
|
| 5 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +you may not use this file except in compliance with the License. |
| 7 | +You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +Unless required by applicable law or agreed to in writing, software |
| 12 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +See the License for the specific language governing permissions and |
| 15 | +limitations under the License. |
| 16 | +--> |
| 17 | +<configurator> |
| 18 | + <domain name="CHIP" /> |
| 19 | + |
| 20 | + <cluster> |
| 21 | + <domain>Closures</domain> |
| 22 | + <name>Smoke CO Alarm</name> |
| 23 | + <code>0x005C</code> |
| 24 | + <define>SMOKE_CO_ALARM_CLUSTER</define> |
| 25 | + <description>This cluster provides an interface for observing and managing the state of smoke and CO alarms.</description> |
| 26 | + |
| 27 | + <!-- Abbreviations used in descriptions --> |
| 28 | + <tag name="SMOKE" description="Smoke Alarm" /> |
| 29 | + <tag name="CO" description="CO Alarm" /> |
| 30 | + |
| 31 | + <client tick="false" init="false">true</client> |
| 32 | + <server tick="false" init="false">true</server> |
| 33 | + |
| 34 | + <!-- Current cluster version --> |
| 35 | + <globalAttribute side="either" code="0xFFFD" value="1" /> |
| 36 | + <!-- Cluster feature map --> |
| 37 | + <globalAttribute side="server" code="0xFFFC" type="SmokeCOFeature" value="1" /> |
| 38 | + |
| 39 | + <!-- Attributes --> |
| 40 | + <attribute side="server" code="0x0000" define="EXPRESSED_STATE" type="ExpressedStateEnum" writable="false" optional="false">ExpressedState</attribute> |
| 41 | + <attribute side="server" code="0x0001" define="SMOKE_STATE" type="AlarmStateEnum" writable="false" optional="true">SmokeState</attribute> |
| 42 | + <attribute side="server" code="0x0002" define="CO_STATE" type="AlarmStateEnum" writable="false" optional="true">COState</attribute> |
| 43 | + <attribute side="server" code="0x0003" define="BATTERY_ALERT" type="AlarmStateEnum" writable="false" optional="false">BatteryAlert</attribute> |
| 44 | + <attribute side="server" code="0x0004" define="DEVICE_MUTED" type="MuteStateEnum" writable="false" optional="true">DeviceMuted</attribute> |
| 45 | + <attribute side="server" code="0x0005" define="TEST_IN_PROGRESS" type="boolean" writable="false" optional="false">TestInProgress</attribute> |
| 46 | + <attribute side="server" code="0x0006" define="HARDWARE_FAULTALERT" type="boolean" writable="false" optional="false">HardwareFaultAlert</attribute> |
| 47 | + <attribute side="server" code="0x0007" define="END_OF_SERVICEALERT" type="EndOfServiceEnum" writable="false" optional="false">EndOfServiceAlert</attribute> |
| 48 | + <attribute side="server" code="0x0008" define="INTERCONNECT_SMOKE_ALARM" type="AlarmStateEnum" writable="false" optional="true">InterconnectSmokeAlarm</attribute> |
| 49 | + <attribute side="server" code="0x0009" define="INTERCONNECT_CO_ALARM" type="AlarmStateEnum" writable="false" optional="true">InterconnectCOAlarm</attribute> |
| 50 | + <attribute side="server" code="0x000A" define="CONTAMINATION_STATE" type="ContaminationStateEnum" writable="false" optional="true">ContaminationState</attribute> |
| 51 | + <attribute side="server" code="0x000B" define="SENSITIVITY_LEVEL" type="SensitivityEnum" min="0" max="2" writable="true" optional="true">SensitivityLevel</attribute> |
| 52 | + <!-- TODO: Date type encoding not defined --> |
| 53 | + <!-- <attribute side="server" code="0x000C" define="EXPIRY_DATE" type="Date" writable="false" optional="true">ExpiryDate</attribute> --> |
| 54 | + |
| 55 | + <!-- Commands --> |
| 56 | + <command source="client" code="0x00" name="SelfTestRequest" optional="true"> |
| 57 | + <description>This command SHALL initiate a device self-test.</description> |
| 58 | + </command> |
| 59 | + |
| 60 | + <!-- Events --> |
| 61 | + <event side="server" code="0x00" name="SmokeAlarm" priority="info" optional="true"> |
| 62 | + <description>This event SHALL be generated when SmokeState attribute changes to either Warning or Critical state.</description> |
| 63 | + </event> |
| 64 | + <event side="server" code="0x01" name="COAlarm" priority="info" optional="true"> |
| 65 | + <description>This event SHALL be generated when COState attribute changes to either Warning or Critical state.</description> |
| 66 | + </event> |
| 67 | + <event side="server" code="0x02" name="LowBattery" priority="info" optional="false"> |
| 68 | + <description>This event SHALL be generated when BatteryAlert attribute changes to either Warning or Critical state.</description> |
| 69 | + </event> |
| 70 | + <event side="server" code="0x03" name="HardwareFault" priority="info" optional="false"> |
| 71 | + <description>This event SHALL be generated when the device detects a hardware fault that leads to setting HardwareFaultAlert to True.</description> |
| 72 | + </event> |
| 73 | + <event side="server" code="0x04" name="EndOfService" priority="info" optional="false"> |
| 74 | + <description>This event SHALL be generated when the EndOfServiceAlert is set to True.</description> |
| 75 | + </event> |
| 76 | + <event side="server" code="0x05" name="SelfTestComplete" priority="info" optional="false"> |
| 77 | + <description>This event SHALL be generated when the SelfTest completes, and the attribute TestInProgress changes to False.</description> |
| 78 | + </event> |
| 79 | + <event side="server" code="0x06" name="AlarmMuted" priority="info" optional="true"> |
| 80 | + <description>This event SHALL be generated when the DeviceMuted attribute changes to True.</description> |
| 81 | + </event> |
| 82 | + <event side="server" code="0x07" name="MuteEnded" priority="info" optional="true"> |
| 83 | + <description>This event SHALL be generated when DeviceMuted attribute changes to False.</description> |
| 84 | + </event> |
| 85 | + <event side="server" code="0x08" name="InterconnectSmokeAlarm" priority="info" optional="true"> |
| 86 | + <description>This event SHALL be generated when the device hosting the cluster receives a remote smoke alarm.</description> |
| 87 | + </event> |
| 88 | + <event side="server" code="0x09" name="InterconnectCOAlarm" priority="info" optional="true"> |
| 89 | + <description>This event SHALL be generated when the device hosting the cluster receives a remote CO alarm.</description> |
| 90 | + </event> |
| 91 | + <event side="server" code="0x0A" name="AllClear" priority="info" optional="false"> |
| 92 | + <description>This event SHALL be generated when ExpressedState attribute returns to Normal state.</description> |
| 93 | + </event> |
| 94 | + </cluster> |
| 95 | + |
| 96 | + <!-- Cluster data types --> |
| 97 | + <enum name="AlarmStateEnum" type="ENUM8"> |
| 98 | + <cluster code="0x005C" /> |
| 99 | + <item value="0" name="Unknown" /> |
| 100 | + <item value="1" name="Normal" /> |
| 101 | + <item value="2" name="Warning" /> |
| 102 | + <item value="3" name="Critical" /> |
| 103 | + </enum> |
| 104 | + |
| 105 | + <enum name="SensitivityEnum" type="ENUM8"> |
| 106 | + <cluster code="0x005C" /> |
| 107 | + <item value="0" name="High" /> |
| 108 | + <item value="1" name="Standard" /> |
| 109 | + <item value="2" name="Low" /> |
| 110 | + </enum> |
| 111 | + |
| 112 | + <enum name="ExpressedStateEnum" type="ENUM8"> |
| 113 | + <cluster code="0x005C" /> |
| 114 | + <item value="0" name="Normal" /> |
| 115 | + <item value="1" name="SmokeAlarm" /> |
| 116 | + <item value="2" name="COAlarm" /> |
| 117 | + <item value="3" name="BatteryAlert" /> |
| 118 | + <item value="4" name="Testing" /> |
| 119 | + <item value="5" name="HardwareFault" /> |
| 120 | + <item value="6" name="EndOfService" /> |
| 121 | + <item value="7" name="InterconnectSmoke" /> |
| 122 | + <item value="8" name="InterconnectCO" /> |
| 123 | + </enum> |
| 124 | + |
| 125 | + <enum name="MuteStateEnum" type="ENUM8"> |
| 126 | + <cluster code="0x005C" /> |
| 127 | + <item value="0" name="Unknown" /> |
| 128 | + <item value="1" name="NotMuted" /> |
| 129 | + <item value="2" name="Muted" /> |
| 130 | + </enum> |
| 131 | + |
| 132 | + <enum name="EndOfServiceEnum" type="ENUM8"> |
| 133 | + <cluster code="0x005C" /> |
| 134 | + <item value="0" name="Unknown" /> |
| 135 | + <item value="1" name="Expired" /> |
| 136 | + <item value="2" name="Normal" /> |
| 137 | + </enum> |
| 138 | + |
| 139 | + <enum name="ContaminationStateEnum" type="ENUM8"> |
| 140 | + <cluster code="0x005C" /> |
| 141 | + <item value="0" name="Unknown" /> |
| 142 | + <item value="1" name="Normal" /> |
| 143 | + <item value="2" name="Low" /> |
| 144 | + <item value="3" name="Warning" /> |
| 145 | + <item value="4" name="Critical" /> |
| 146 | + </enum> |
| 147 | + |
| 148 | + <bitmap name="SmokeCOAlarmFeature" type="BITMAP32"> |
| 149 | + <cluster code="0x005C" /> |
| 150 | + <field name="Smoke Alarm" mask="0x01" /> |
| 151 | + <field name="CO alarm" mask="0x02" /> |
| 152 | + </bitmap> |
| 153 | +</configurator> |
0 commit comments