Skip to content

Commit 94b64fc

Browse files
committed
Add Alchemy generated changes to AirPurifier cluster
1 parent ad773bb commit 94b64fc

File tree

4 files changed

+487
-156
lines changed

4 files changed

+487
-156
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<!--
3-
Copyright (c) 2023 Project CHIP Authors
3+
Copyright (c) 2023-2025 Project CHIP Authors
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -14,7 +14,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<configurator>
17+
<!--
18+
XML generated by Alchemy; DO NOT EDIT.
19+
Source: src/app_clusters/AirQuality.adoc
20+
Parameters: in-progress
21+
Git: 0.7-summer-2025-150-g878a2125f
22+
-->
23+
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
1824
<domain name="CHIP"/>
1925
<cluster>
2026
<name>Air Quality</name>
@@ -24,7 +30,7 @@ limitations under the License.
2430
<define>AIR_QUALITY_CLUSTER</define>
2531
<client tick="false" init="false">true</client>
2632
<server tick="false" init="false">true</server>
27-
33+
<globalAttribute code="0xFFFD" side="either" value="1"/>
2834
<features>
2935
<feature bit="0" code="FAIR" name="Fair" summary="Cluster supports the Fair air quality level">
3036
<optionalConform/>
@@ -39,22 +45,19 @@ limitations under the License.
3945
<optionalConform/>
4046
</feature>
4147
</features>
42-
4348
<!-- Attributes -->
44-
<attribute side="server" code="0x0000" name="AirQuality" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" default="0">
45-
<mandatoryConform/>
46-
</attribute>
49+
<attribute side="server" code="0x0000" name="AirQuality" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" default="0">AirQuality</attribute>
4750
</cluster>
4851

4952
<!-- Cluster Data Types -->
5053
<enum name="AirQualityEnum" type="enum8">
51-
<cluster code="0x005B" />
52-
<item value="0" name="Unknown" />
53-
<item value="1" name="Good" />
54-
<item value="2" name="Fair" />
55-
<item value="3" name="Moderate" />
56-
<item value="4" name="Poor" />
57-
<item value="5" name="Very poor" />
58-
<item value="6" name="Extremely poor" />
54+
<cluster code="0x005B"/>
55+
<item value="0" name="Unknown"/>
56+
<item value="1" name="Good"/>
57+
<item value="2" name="Fair"/>
58+
<item value="3" name="Moderate"/>
59+
<item value="4" name="Poor"/>
60+
<item value="5" name="VeryPoor"/>
61+
<item value="6" name="ExtremelyPoor"/>
5962
</enum>
6063
</configurator>

src/app/zap-templates/zcl/zcl-with-test-extensions.json

+104-27
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,15 @@
151151
"manufacturersXml": "../../../../src/app/zap-templates/zcl/data-model/manufacturers.xml",
152152
"options": {
153153
"text": {
154-
"defaultResponsePolicy": ["Always", "Conditional", "Never"]
154+
"defaultResponsePolicy": [
155+
"Always",
156+
"Conditional",
157+
"Never"
158+
]
155159
},
156-
"bool": ["commandDiscovery"]
160+
"bool": [
161+
"commandDiscovery"
162+
]
157163
},
158164
"defaults": {
159165
"text": {
@@ -199,10 +205,20 @@
199205
"SpecificationVersion",
200206
"MaxPathsPerInvoke"
201207
],
202-
"Bridged Device Basic Information": ["ProductAppearance"],
203-
"Chime": ["ActiveChimeID", "Enabled"],
204-
"Closure Control": ["OverallState", "OverallTarget"],
205-
"Descriptor": ["ClusterRevision", "FeatureMap"],
208+
"Bridged Device Basic Information": [
209+
"ProductAppearance"
210+
],
211+
"Chime": [
212+
"Enabled"
213+
],
214+
"Closure Control": [
215+
"OverallState",
216+
"OverallTarget"
217+
],
218+
"Descriptor": [
219+
"ClusterRevision",
220+
"FeatureMap"
221+
],
206222
"Device Energy Management": [
207223
"ESAType",
208224
"ESACanGenerate",
@@ -254,7 +270,11 @@
254270
"SessionEnergyDischarged",
255271
"FeatureMap"
256272
],
257-
"Energy EVSE Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
273+
"Energy EVSE Mode": [
274+
"SupportedModes",
275+
"CurrentMode",
276+
"FeatureMap"
277+
],
258278
"Ethernet Network Diagnostics": [
259279
"PHYRate",
260280
"FullDuplex",
@@ -297,7 +317,6 @@
297317
"RegisteredClients",
298318
"ICDCounter",
299319
"ClientsSupportedPerFabric",
300-
"MaximumCheckInBackOff",
301320
"OperatingMode",
302321
"FeatureMap"
303322
],
@@ -415,14 +434,21 @@
415434
"CurrentMaxRate",
416435
"OverrunCount"
417436
],
418-
"Channel": ["Lineup", "CurrentChannel"],
437+
"Channel": [
438+
"Lineup",
439+
"CurrentChannel"
440+
],
419441
"Media Playback": [
420442
"SampledPosition",
421443
"ActiveAudioTrack",
422444
"ActiveTextTrack"
423445
],
424-
"Application Launcher": ["CurrentApp"],
425-
"Application Basic": ["Application"],
446+
"Application Launcher": [
447+
"CurrentApp"
448+
],
449+
"Application Basic": [
450+
"Application"
451+
],
426452
"Time Synchronization": [
427453
"TrustedTimeSource",
428454
"DefaultNTP",
@@ -434,9 +460,19 @@
434460
"TimeZoneListMaxSize",
435461
"DSTOffsetListMaxSize"
436462
],
437-
"Temperature Control": ["SupportedTemperatureLevels"],
438-
"Dishwasher Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
439-
"Microwave Oven Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
463+
"Temperature Control": [
464+
"SupportedTemperatureLevels"
465+
],
466+
"Dishwasher Mode": [
467+
"SupportedModes",
468+
"CurrentMode",
469+
"FeatureMap"
470+
],
471+
"Microwave Oven Mode": [
472+
"SupportedModes",
473+
"CurrentMode",
474+
"FeatureMap"
475+
],
440476
"Microwave Oven Control": [
441477
"CookTime",
442478
"MaxCookTime",
@@ -449,14 +485,26 @@
449485
"WattRating",
450486
"FeatureMap"
451487
],
452-
"Laundry Washer Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
488+
"Laundry Washer Mode": [
489+
"SupportedModes",
490+
"CurrentMode",
491+
"FeatureMap"
492+
],
453493
"Refrigerator And Temperature Controlled Cabinet Mode": [
454494
"SupportedModes",
455495
"CurrentMode",
456496
"FeatureMap"
457497
],
458-
"RVC Clean Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
459-
"RVC Run Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
498+
"RVC Clean Mode": [
499+
"SupportedModes",
500+
"CurrentMode",
501+
"FeatureMap"
502+
],
503+
"RVC Run Mode": [
504+
"SupportedModes",
505+
"CurrentMode",
506+
"FeatureMap"
507+
],
460508
"Operational State": [
461509
"OperationalState",
462510
"OperationalError",
@@ -633,7 +681,10 @@
633681
"LevelValue",
634682
"FeatureMap"
635683
],
636-
"Air Quality": ["AirQuality", "FeatureMap"],
684+
"Air Quality": [
685+
"AirQuality",
686+
"FeatureMap"
687+
],
637688
"Electrical Energy Measurement": [
638689
"Accuracy",
639690
"CumulativeEnergyImported",
@@ -665,9 +716,15 @@
665716
"NeutralCurrent",
666717
"FeatureMap"
667718
],
668-
"Power Topology": ["FeatureMap"],
669-
"Valve Configuration and Control": ["RemainingDuration"],
670-
"Boolean State Configuration": ["CurrentSensitivityLevel"],
719+
"Power Topology": [
720+
"FeatureMap"
721+
],
722+
"Valve Configuration and Control": [
723+
"RemainingDuration"
724+
],
725+
"Boolean State Configuration": [
726+
"CurrentSensitivityLevel"
727+
],
671728
"Water Heater Management": [
672729
"HeaterTypes",
673730
"HeatDemand",
@@ -678,26 +735,46 @@
678735
"FeatureMap",
679736
"ClusterRevision"
680737
],
681-
"Water Heater Mode": ["SupportedModes", "CurrentMode", "FeatureMap"],
682-
"Wi-Fi Network Management": ["SSID", "PassphraseSurrogate"],
738+
"Water Heater Mode": [
739+
"SupportedModes",
740+
"CurrentMode",
741+
"FeatureMap"
742+
],
743+
"Wi-Fi Network Management": [
744+
"SSID",
745+
"PassphraseSurrogate"
746+
],
683747
"Thread Network Directory": [
684748
"PreferredExtendedPanID",
685749
"ThreadNetworks",
686750
"ThreadNetworkTableSize"
687751
],
688-
"Service Area": ["CurrentArea", "EstimatedEndTime", "FeatureMap"],
752+
"Service Area": [
753+
"CurrentArea",
754+
"EstimatedEndTime",
755+
"FeatureMap"
756+
],
689757
"Camera AV Stream Management": [
690758
"VideoSensorParams",
691759
"MinViewport",
692760
"MicrophoneCapabilities",
693761
"SpeakerCapabilities",
694762
"Viewport"
695763
],
696-
"Camera AV Settings User Level Management": ["MPTZPosition"]
764+
"Camera AV Settings User Level Management": [
765+
"MPTZPosition"
766+
]
697767
},
698768
"mandatoryDeviceTypes": "0x0016",
699769
"defaultReportingPolicy": "mandatory",
700-
"ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"],
770+
"ZCLDataTypes": [
771+
"ARRAY",
772+
"BITMAP",
773+
"ENUM",
774+
"NUMBER",
775+
"STRING",
776+
"STRUCT"
777+
],
701778
"fabricHandling": {
702779
"automaticallyCreateFields": true,
703780
"indexFieldId": 254,
@@ -707,4 +784,4 @@
707784
"uiOptions": {
708785
"showProfileId": false
709786
}
710-
}
787+
}

0 commit comments

Comments
 (0)