-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split ha.xml into individual dedicated cluster and types files (#24748)
* Split ha.xml into individual dedicated cluster and types files * Update generated content
- Loading branch information
1 parent
34332ce
commit 8dc9323
Showing
16 changed files
with
409 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/app/zap-templates/zcl/data-model/chip/ballast-configuration-cluster.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?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="Lighting"/> | ||
|
||
<cluster> | ||
<name>Ballast Configuration</name> | ||
<domain>Lighting</domain> | ||
<description>Attributes and commands for configuring a lighting ballast.</description> | ||
<code>0x0301</code> | ||
<define>BALLAST_CONFIGURATION_CLUSTER</define> | ||
|
||
<client tick="false" init="false">true</client> | ||
<server tick="false" init="false">true</server> | ||
|
||
<globalAttribute side="either" code="0xFFFD" value="4"/> | ||
|
||
<!-- Ballast Configuration Attribute Set --> | ||
<attribute side="server" code="0x0000" define="PHYSICAL_MIN_LEVEL" type="INT8U" min="0x01" max="0xFE" writable="false" default="0x01" optional="false">PhysicalMinLevel</attribute> | ||
<attribute side="server" code="0x0001" define="PHYSICAL_MAX_LEVEL" type="INT8U" min="0x01" max="0xFE" writable="false" default="0xFE" optional="false">PhysicalMaxLevel</attribute> | ||
<attribute side="server" code="0x0002" define="BALLAST_STATUS" type="BITMAP8" min="0x00" max="0x03" writable="false" default="0x00" optional="true">BallastStatus</attribute> | ||
<!-- Ballast Settings Attribute Set --> | ||
<attribute side="server" code="0x0010" define="MIN_LEVEL" type="INT8U" min="0x01" max="0xFE" writable="true" default="0x01" optional="false">MinLevel</attribute> | ||
<attribute side="server" code="0x0011" define="MAX_LEVEL" type="INT8U" min="0x01" max="0xFE" writable="true" default="0xFE" optional="false">MaxLevel</attribute> | ||
<!-- PowerOnLevel and PowerOnFadeTime are deprecated --> | ||
<attribute side="server" code="0x0014" define="INTRINSIC_BALLAST_FACTOR" type="INT8U" writable="true" isNullable="true" optional="true">IntrinsicBallastFactor</attribute> | ||
<attribute side="server" code="0x0015" define="BALLAST_FACTOR_ADJUSTMENT" type="INT8U" min="0x64" writable="true" default="0xFF" isNullable="true" optional="true">BallastFactorAdjustment</attribute> | ||
<!-- Lamp Information Attribute Set --> | ||
<attribute side="server" code="0x0020" define="LAMP_QUANTITY" type="INT8U" writable="false" optional="false">LampQuantity</attribute> | ||
<!-- Lamp Settings Attribute Set --> | ||
<attribute side="server" code="0x0030" define="LAMP_TYPE" type="CHAR_STRING" length="16" writable="true" optional="true">LampType</attribute> | ||
<attribute side="server" code="0x0031" define="LAMP_MANUFACTURER" type="CHAR_STRING" length="16" writable="true" optional="true">LampManufacturer</attribute> | ||
<attribute side="server" code="0x0032" define="LAMP_RATED_HOURS" type="INT24U" writable="true" default="0xFFFFFF" isNullable="true" optional="true">LampRatedHours</attribute> | ||
<attribute side="server" code="0x0033" define="LAMP_BURN_HOURS" type="INT24U" writable="true" default="0x000000" isNullable="true" optional="true">LampBurnHours</attribute> | ||
<attribute side="server" code="0x0034" define="LAMP_ALARM_MODE" type="BITMAP8" min="0x00" max="0x01" writable="true" default="0x00" optional="true">LampAlarmMode</attribute> | ||
<attribute side="server" code="0x0035" define="LAMP_BURN_HOURS_TRIP_POINT" type="INT24U" writable="true" default="0xFFFFFF" isNullable="true" optional="true">LampBurnHoursTripPoint</attribute> | ||
</cluster> | ||
</configurator> |
90 changes: 90 additions & 0 deletions
90
src/app/zap-templates/zcl/data-model/chip/fan-control-cluster.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?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="HVAC"/> | ||
|
||
<bitmap name="FanControlFeature" type="BITMAP32"> | ||
<cluster code="0x0202" /> | ||
<field name="Multi-Speed" mask="0x01" /> | ||
<field name="Auto" mask="0x02" /> | ||
<field name="Rocking" mask="0x04" /> | ||
<field name="Wind" mask="0x08" /> | ||
</bitmap> | ||
|
||
<enum name="FanModeType" type="ENUM8"> | ||
<cluster code="0x0202"/> | ||
<item name="Off" value="0x00"/> | ||
<item name="Low" value="0x01"/> | ||
<item name="Medium" value="0x02"/> | ||
<item name="High" value="0x03"/> | ||
<item name="On" value="0x04"/> | ||
<item name="Auto" value="0x05"/> | ||
<item name="Smart" value="0x06"/> | ||
</enum> | ||
|
||
<enum name="FanModeSequenceType" type="ENUM8"> | ||
<cluster code="0x0202"/> | ||
<item name="Off/Low/Med/High" value="0x00"/> | ||
<item name="Off/Low/High" value="0x01"/> | ||
<item name="Off/Low/Med/High/Auto" value="0x02"/> | ||
<item name="Off/Low/High/Auto" value="0x03"/> | ||
<item name="Off/On/Auto" value="0x04"/> | ||
<item name="Off/On" value="0x05"/> | ||
</enum> | ||
|
||
<bitmap name="RockSupportMask" type="BITMAP8"> | ||
<cluster code="0x0202" /> | ||
<field name="RockLeftRight" mask="0x01" /> | ||
<field name="RockUpDown" mask="0x02" /> | ||
<field name="RockRound" mask="0x04" /> | ||
</bitmap> | ||
|
||
<bitmap name="WindSupportMask" type="BITMAP8"> | ||
<cluster code="0x0202" /> | ||
<field name="Sleep Wind" mask="0x01" /> | ||
<field name="Natural Wind" mask="0x02" /> | ||
</bitmap> | ||
|
||
<bitmap name="WindSettingMask" type="BITMAP8"> | ||
<cluster code="0x0202" /> | ||
<field name="Sleep Wind" mask="0x01" /> | ||
<field name="Natural Wind" mask="0x02" /> | ||
</bitmap> | ||
|
||
<cluster> | ||
<name>Fan Control</name> | ||
<domain>HVAC</domain> | ||
<description>An interface for controlling a fan in a heating/cooling system.</description> | ||
<code>0x0202</code> | ||
<define>FAN_CONTROL_CLUSTER</define> | ||
|
||
<client tick="false" init="false">true</client> | ||
<server tick="false" init="false">true</server> | ||
|
||
<attribute side="server" code="0x0000" define="FAN_MODE" type="FanModeType" min="0" max="6" writable="true" default="0" optional="false">FanMode</attribute> | ||
<attribute side="server" code="0x0001" define="FAN_MODE_SEQUENCE" type="FanModeSequenceType" min="0" max="5" writable="true" default="2" optional="false">FanModeSequence</attribute> | ||
<attribute side="server" code="0x0002" define="PERCENT_SETTING" type="INT8U" min="0" max="100" writable="true" default="0" isNullable="true" optional="false">PercentSetting</attribute> | ||
<attribute side="server" code="0x0003" define="PERCENT_CURRENT" type="INT8U" min="0" max="100" writable="false" default="0" optional="false">PercentCurrent</attribute> | ||
<attribute side="server" code="0x0004" define="SPEED_MAX" type="INT8U" min="1" max="100" writable="false" default="1" optional="true">SpeedMax</attribute> | ||
<attribute side="server" code="0x0005" define="SPEED_SETTING" type="INT8U" min="0" max="100" writable="true" default="0" isNullable="true" optional="true">SpeedSetting</attribute> | ||
<attribute side="server" code="0x0006" define="SPEED_CURRENT" type="INT8U" min="0" max="100" writable="false" default="0" optional="true">SpeedCurrent</attribute> | ||
<attribute side="server" code="0x0007" define="ROCK_SUPPORT" type="BITMAP8" writable="false" default="0x00" optional="true">RockSupport</attribute> | ||
<attribute side="server" code="0x0008" define="ROCK_SETTING" type="BITMAP8" writable="true" default="0x00" optional="true">RockSetting</attribute> | ||
<attribute side="server" code="0x0009" define="WIND_SUPPORT" type="BITMAP8" writable="false" default="0x00" optional="true">WindSupport</attribute> | ||
<attribute side="server" code="0x000A" define="WIND_SETTING" type="BITMAP8" writable="true" default="0x00" optional="true">WindSetting</attribute> | ||
</cluster> | ||
</configurator> |
Oops, something went wrong.