forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathair-quality-cluster.xml
63 lines (59 loc) · 2.46 KB
/
air-quality-cluster.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<!--
Copyright (c) 2023-2025 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.
-->
<!--
XML generated by Alchemy; DO NOT EDIT.
Source: src/app_clusters/AirQuality.adoc
Parameters: in-progress
Git: 0.7-summer-2025-150-g878a2125f
-->
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<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>
<globalAttribute code="0xFFFD" side="either" value="1"/>
<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" name="AirQuality" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" default="0">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="VeryPoor"/>
<item value="6" name="ExtremelyPoor"/>
</enum>
</configurator>