Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate air quality xml with alchemy #37716

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ cluster GroupKeyManagement = 63 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ cluster GroupKeyManagement = 63 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3506,7 +3506,7 @@ cluster DishwasherMode = 89 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ cluster GroupKeyManagement = 63 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ cluster FixedLabel = 64 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ cluster BooleanState = 69 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
33 changes: 18 additions & 15 deletions src/app/zap-templates/zcl/data-model/chip/air-quality-cluster.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2023 Project CHIP Authors
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.
Expand All @@ -14,7 +14,13 @@ 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>
<!--
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>
Expand All @@ -24,7 +30,7 @@ limitations under the License.
<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/>
Expand All @@ -39,22 +45,19 @@ limitations under the License.
<optionalConform/>
</feature>
</features>

<!-- Attributes -->
<attribute side="server" code="0x0000" name="AirQuality" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" default="0">
<mandatoryConform/>
</attribute>
<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="Very poor" />
<item value="6" name="Extremely poor" />
<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>
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3724,7 +3724,7 @@ cluster DishwasherMode = 89 {

/** Attributes for reporting air quality classification */
cluster AirQuality = 91 {
revision 1; // NOTE: Default/not specifically set
revision 1;

enum AirQualityEnum : enum8 {
kUnknown = 0;
Expand Down
Loading