| <?xml version="1.0"?> |
| <!-- |
| Copyright (c) 2023 Project CHIP Authors |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <configurator> |
| <domain name="CHIP"/> |
| <cluster> |
| <name>Air Quality</name> |
| <domain>Measurement & Sensing</domain> |
| <description>Attributes for reporting air quality classification</description> |
| <code>0x005B</code> |
| <define>AIR_QUALITY_CLUSTER</define> |
| <client tick="false" init="false">true</client> |
| <server tick="false" init="false">true</server> |
| |
| <features> |
| <feature bit="0" code="FAIR" name="Fair" summary="Cluster supports the Fair air quality level"> |
| <optionalConform/> |
| </feature> |
| <feature bit="1" code="MOD" name="Moderate" summary="Cluster supports the Moderate air quality level"> |
| <optionalConform/> |
| </feature> |
| <feature bit="2" code="VPOOR" name="VeryPoor" summary="Cluster supports the Very poor air quality level"> |
| <optionalConform/> |
| </feature> |
| <feature bit="3" code="XPOOR" name="ExtremelyPoor" summary="Cluster supports the Extremely poor air quality level"> |
| <optionalConform/> |
| </feature> |
| </features> |
| |
| <!-- Attributes --> |
| <attribute side="server" code="0x0000" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" writable="false" isNullable="false" default="0" optional="false">AirQuality</attribute> |
| </cluster> |
| |
| <!-- Cluster Data Types --> |
| <enum name="AirQualityEnum" type="enum8"> |
| <cluster code="0x005B" /> |
| <item value="0" name="Unknown" /> |
| <item value="1" name="Good" /> |
| <item value="2" name="Fair" /> |
| <item value="3" name="Moderate" /> |
| <item value="4" name="Poor" /> |
| <item value="5" name="Very poor" /> |
| <item value="6" name="Extremely poor" /> |
| </enum> |
| </configurator> |