|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- |
| 3 | +Copyright (c) 2024 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 | +<!-- |
| 18 | +XML generated by Alchemy; DO NOT EDIT. |
| 19 | +Source: src/app_clusters/ZoneManagement.adoc |
| 20 | +Parameters: in-progress |
| 21 | +Git: 0.9-fall2024-303-g216988a1d |
| 22 | +--> |
| 23 | +<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd"> |
| 24 | + <domain name="Measurement & Sensing"/> |
| 25 | + <enum name="StatusCodeEnum" type="enum8"> |
| 26 | + <cluster code="0x0550"/> |
| 27 | + <item name="ZONE_NOT_FOUND" value="0x02"/> |
| 28 | + <item name="ZONE_IN_USE" value="0x03"/> |
| 29 | + </enum> |
| 30 | + |
| 31 | + <enum name="ZoneEventStoppedReasonEnum" type="enum8"> |
| 32 | + <cluster code="0x0550"/> |
| 33 | + <item name="ActionStopped" value="0x00"/> |
| 34 | + <item name="Timeout" value="0x01"/> |
| 35 | + </enum> |
| 36 | + |
| 37 | + <enum name="ZoneEventTriggeredReasonEnum" type="enum8"> |
| 38 | + <cluster code="0x0550"/> |
| 39 | + <item name="Motion" value="0x00"/> |
| 40 | + </enum> |
| 41 | + |
| 42 | + <enum name="ZoneSourceEnum" type="enum8"> |
| 43 | + <cluster code="0x0550"/> |
| 44 | + <item name="Mfg" value="0x00"/> |
| 45 | + <item name="User" value="0x01"/> |
| 46 | + </enum> |
| 47 | + |
| 48 | + <enum name="ZoneTypeEnum" type="enum8"> |
| 49 | + <cluster code="0x0550"/> |
| 50 | + <item name="TwoDCARTZone" value="0x00"/> |
| 51 | + </enum> |
| 52 | + |
| 53 | + <enum name="ZoneUseEnum" type="enum8"> |
| 54 | + <cluster code="0x0550"/> |
| 55 | + <item name="Motion" value="0x00"/> |
| 56 | + <item name="Privacy" value="0x01"/> |
| 57 | + <item name="Focus" value="0x02"/> |
| 58 | + </enum> |
| 59 | + |
| 60 | + <struct name="TwoDCartesianVertexStruct" apiMaturity="provisional"> |
| 61 | + <cluster code="0x0550"/> |
| 62 | + <item fieldId="0" name="X" type="int16u" default="0"/> |
| 63 | + <item fieldId="1" name="Y" type="int16u" default="0"/> |
| 64 | + </struct> |
| 65 | + |
| 66 | + <struct name="TwoDCartesianZoneStruct" apiMaturity="provisional"> |
| 67 | + <cluster code="0x0550"/> |
| 68 | + <item fieldId="0" name="Name" type="char_string" length="16"/> |
| 69 | + <item fieldId="1" name="Use" type="ZoneUseEnum" min="0x00" max="0x02"/> |
| 70 | + <item fieldId="2" name="Vertices" array="true" type="TwoDCartesianVertexStruct" length="12" minLength="3"/> |
| 71 | + <item fieldId="3" name="Color" type="char_string" optional="true" length="9" minLength="7"/> |
| 72 | + </struct> |
| 73 | + |
| 74 | + <struct name="ZoneInformationStruct" apiMaturity="provisional"> |
| 75 | + <cluster code="0x0550"/> |
| 76 | + <item fieldId="0" name="ZoneID" type="int16u"/> |
| 77 | + <item fieldId="1" name="ZoneType" type="ZoneTypeEnum" min="0x00" max="0x00"/> |
| 78 | + <item fieldId="2" name="ZoneSource" type="ZoneSourceEnum" min="0x00" max="0x01"/> |
| 79 | + </struct> |
| 80 | + |
| 81 | + <struct name="ZoneTriggeringTimeControlStruct" apiMaturity="provisional"> |
| 82 | + <cluster code="0x0550"/> |
| 83 | + <item fieldId="0" name="InitialDuration" type="int16u" default="10"/> |
| 84 | + <item fieldId="1" name="AugmentationDuration" type="int16u" default="5"/> |
| 85 | + <item fieldId="2" name="MaxDuration" type="int32u" default="30"/> |
| 86 | + <item fieldId="3" name="BlindDuration" type="int16u" default="30"/> |
| 87 | + </struct> |
| 88 | + |
| 89 | + <cluster apiMaturity="provisional"> |
| 90 | + <domain name="Measurement & Sensing"/> |
| 91 | + <name>Zone Management</name> |
| 92 | + <code>0x0550</code> |
| 93 | + <define>ZONE_MANAGEMENT_CLUSTER</define> |
| 94 | + <description>This cluster provides an interface to manage regions of interest, or Zones, which can be either manufacturer or user defined.</description> |
| 95 | + <client init="false" tick="false">true</client> |
| 96 | + <features> |
| 97 | + <feature bit="0" code="TWODCART" name="TwoDimensionalCartesianZone" summary="Devices support Two Dimensional Cartesian Zones"> |
| 98 | + <mandatoryConform/> |
| 99 | + </feature> |
| 100 | + </features> |
| 101 | + <server init="false" tick="false">true</server> |
| 102 | + <globalAttribute code="0xFFFD" side="either" value="1"/> |
| 103 | + <attribute code="0x0000" side="server" define="SUPPORTED_ZONE_SOURCES" type="array" entryType="ZoneSourceEnum">SupportedZoneSources</attribute> |
| 104 | + <attribute code="0x0001" side="server" define="ZONES" type="array" entryType="ZoneInformationStruct" optional="true">Zones</attribute> |
| 105 | + <attribute code="0x0002" side="server" define="TIME_CONTROL" type="array" entryType="ZoneTriggeringTimeControlStruct" writable="true">TimeControl</attribute> |
| 106 | + <attribute code="0x0003" side="server" define="SENSITIVITY" type="int8u" min="1" max="10" default="5" writable="true">Sensitivity</attribute> |
| 107 | + <command code="0x00" source="client" name="CreateTwoDCartesianZone" optional="true"> |
| 108 | + <description>This command SHALL create and store a TwoD Cartesian Zone.</description> |
| 109 | + <access op="invoke" privilege="manage"/> |
| 110 | + <arg id="0" name="Zone" type="TwoDCartesianZoneStruct"/> |
| 111 | + </command> |
| 112 | + |
| 113 | + <command code="0x01" source="server" name="CreateTwoDCartesianZoneResponse" optional="true"> |
| 114 | + <description/> |
| 115 | + <arg id="0" name="ZoneID" type="int16u"/> |
| 116 | + </command> |
| 117 | + |
| 118 | + <command code="0x02" source="client" name="UpdateTwoDCartesianZone" optional="true"> |
| 119 | + <description>The UpdateTwoDCartesianZone SHALL update a stored TwoD Cartesian Zone.</description> |
| 120 | + <access op="invoke" privilege="manage"/> |
| 121 | + <arg id="0" name="ZoneID" type="int16u"/> |
| 122 | + <arg id="1" name="Zone" type="TwoDCartesianZoneStruct"/> |
| 123 | + </command> |
| 124 | + |
| 125 | + <command code="0x03" source="client" name="GetTwoDCartesianZone" optional="true"> |
| 126 | + <description>The GetTwoDCartesianZone SHALL return the TwoD Cartesian Zone for the passed in ZoneID.</description> |
| 127 | + <access op="invoke" privilege="manage"/> |
| 128 | + <arg id="0" name="ZoneID" type="int16u" optional="true" isNullable="true"/> |
| 129 | + </command> |
| 130 | + |
| 131 | + <command code="0x04" source="server" name="GetTwoDCartesianZoneResponse" optional="true"> |
| 132 | + <description>This command SHALL be generated in response to a GetTwoDCartesianZone command.</description> |
| 133 | + <arg id="0" name="Zones" array="true" type="TwoDCartesianZoneStruct"/> |
| 134 | + </command> |
| 135 | + |
| 136 | + <command code="0x05" source="client" name="RemoveZone" optional="false"> |
| 137 | + <description>This command SHALL remove the Zone mapped to the passed in ZoneID.</description> |
| 138 | + <access op="invoke" privilege="manage"/> |
| 139 | + <arg id="0" name="ZoneID" type="int16u"/> |
| 140 | + </command> |
| 141 | + |
| 142 | + <event code="0x0000" name="ZoneTriggered" priority="info" side="server"> |
| 143 | + <field id="0" name="Zones" array="true" type="int16u"/> |
| 144 | + <field id="1" name="Reason" type="ZoneEventTriggeredReasonEnum" min="0x00" max="0x00"/> |
| 145 | + <description>This event SHALL be generated when a Zone is first triggered.</description> |
| 146 | + </event> |
| 147 | + |
| 148 | + <event code="0x0001" name="ZoneStopped" priority="info" side="server"> |
| 149 | + <field id="0" name="Zones" array="true" type="int16u"/> |
| 150 | + <field id="1" name="Reason" type="ZoneEventStoppedReasonEnum" min="0x00" max="0x01"/> |
| 151 | + <description>This event SHALL be generated when either when the TriggerDetectedDuration value is exceeded by the TimeSinceInitialTrigger value or when the MaxDuration value is exceeded by the TimeSinceInitialTrigger value as described in ZoneTriggeringTimeControlStruct.</description> |
| 152 | + </event> |
| 153 | + |
| 154 | + </cluster> |
| 155 | +</configurator> |
0 commit comments