Skip to content

Commit

Permalink
Updating the existing xml with features per cluster and features per …
Browse files Browse the repository at this point in the history
…device type

JIRA: ZAPP-1346
  • Loading branch information
brdandu committed Apr 10, 2024
1 parent ee6c9e9 commit 7493045
Show file tree
Hide file tree
Showing 47 changed files with 1,076 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ limitations under the License.
<define>ADMINISTRATOR_COMMISSIONING_CLUSTER</define>
<description>Commands to trigger a Node to allow a new Administrator to commission it.</description>

<features>
<feature bit="0" code="BC" name="Basic" summary="Node supports Basic Commissioning Method.">
<optionalConform/>
</feature>
</features>
<attribute side="server" code="0x0000" define="WINDOW_STATUS" type="CommissioningWindowStatusEnum" writable="false" optional="false">WindowStatus</attribute>
<attribute side="server" code="0x0001" define="ADMIN_FABRIC_INDEX" type="fabric_idx" writable="false" isNullable="true" optional="false">AdminFabricIndex</attribute>
<attribute side="server" code="0x0002" define="ADMIN_VENDOR_ID" type="vendor_id" writable="false" isNullable="true" optional="false">AdminVendorId</attribute>
Expand Down
15 changes: 15 additions & 0 deletions src/app/zap-templates/zcl/data-model/chip/air-quality-cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ limitations under the License.
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ limitations under the License.
<server init="false" tick="false">true</server>
<description>This cluster provides an interface for launching content on a media player device such as a TV or Speaker.</description>

<features>
<feature bit="0" code="AP" name="ApplicationPlatform" summary="Support for attributes and commands required for endpoint to support launching any application within the supported application catalogs">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="APPLICATION_LAUNCHER_LIST" type="array" entryType="int16u" reportable="true" writable="false" optional="true">CatalogList</attribute>
<attribute side="server" code="0x0001" define="APPLICATION_LAUNCHER_CURRENT_APP" type="ApplicationEPStruct" isNullable="true" writable="false" optional="true">CurrentApp</attribute>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ limitations under the License.
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>This cluster provides an interface for controlling the Output on a media device such as a TV.</description>

<features>
<feature bit="0" code="NU" name="NameUpdates" summary="Supports updates to output names">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="AUDIO_OUTPUT_LIST" type="array" entryType="OutputInfoStruct" length="254" writable="false" optional="false">OutputList</attribute>
<attribute side="server" code="0x0001" define="AUDIO_OUTPUT_CURRENT_OUTPUT" type="int8u" default="0x00" min="0x00" max="0xFF" writable="false" optional="false">CurrentOutput</attribute>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ limitations under the License.
<description>This cluster is used to configure a boolean sensor.</description>
<globalAttribute side="either" code="0xFFFD" value="1"/>

<features>
<feature bit="0" code="VIS" name="Visual" summary="Supports visual alarms">
<optionalConform/>
</feature>
<feature bit="1" code="AUD" name="Audible" summary="Supports audible alarms">
<optionalConform/>
</feature>
<feature bit="2" code="SPRS" name="AlarmSuppress" summary="Supports ability to suppress or acknowledge alarms">
<optionalConform>
<orTerm>
<feature name="VIS"/>
<feature name="AUD"/>
</orTerm>
</optionalConform>
</feature>
<feature bit="3" code="SENSLVL" name="SensitivityLevel" summary="Supports ability to set sensor sensitivity">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="CURRENT_SENSITIVITY_LEVEL" type="int8u" isNullable="false" writable="true" optional="true">CurrentSensitivityLevel</attribute>
<attribute side="server" code="0x0001" define="SUPPORTED_SENSITIVITY_LEVELS" type="int8u" isNullable="false" min="2" max="10" writable="false" optional="true">SupportedSensitivityLevels</attribute>
<attribute side="server" code="0x0002" define="DEFAULT_SENSITIVITY_LEVEL" type="int8u" isNullable="false" writable="false" optional="true">DefaultSensitivityLevel</attribute>
Expand Down
16 changes: 16 additions & 0 deletions src/app/zap-templates/zcl/data-model/chip/channel-cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ limitations under the License.
<server init="false" tick="false">true</server>
<globalAttribute side="either" code="0xFFFD" value="2"/> <!-- Revision -->
<description>This cluster provides an interface for controlling the current Channel on a device.</description>

<features>
<feature bit="0" code="CL" name="ChannelList" summary="Provides list of available channels.">
<optionalConform/>
</feature>
<feature bit="1" code="LI" name="LineupInfo" summary="Provides lineup info, which is a reference to an external source of lineup information.">
<optionalConform/>
</feature>
<feature bit="2" code="EG" name="ElectronicGuide" summary="Provides electronic program guide information.">
<optionalConform/>
</feature>
<feature bit="3" code="RP" name="RecordProgram" summary="Provides ability to record program.">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="CHANNEL_LIST" type="array" entryType="ChannelInfoStruct" length="254" writable="false" optional="true">ChannelList</attribute>
<attribute side="server" code="0x0001" define="CHANNEL_LINEUP" type="LineupInfoStruct" default="0x0" isNullable="true" writable="false" optional="true">Lineup</attribute>
<attribute side="server" code="0x0002" define="CHANNEL_CURRENT_CHANNEL" type="ChannelInfoStruct" default="0x0" isNullable="true" writable="false" optional="true">CurrentChannel</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ limitations under the License.

<globalAttribute side="either" code="0xFFFD" value="6"/>

<features>
<feature bit="0" code="HS" name="Hue/Saturation" summary="Supports color specification via hue/saturation.">
<optionalConform/>
</feature>
<feature bit="1" code="EHUE" name="Enhanced Hue" summary="Enhanced hue is supported.">
<optionalConform/>
</feature>
<feature bit="2" code="CL" name="Color loop" summary="Color loop is supported.">
<optionalConform/>
</feature>
<feature bit="3" code="XY" name="XY" summary="Supports color specification via XY.">
<optionalConform/>
</feature>
<feature bit="4" code="CT" name="Color temperature" summary="Supports specification of color temperature.">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="COLOR_CONTROL_CURRENT_HUE" type="int8u" min="0x00" max="0xFE" writable="false" reportable="true" default="0x00" optional="true">CurrentHue</attribute>
<!-- CURRENT_HUE -->
<attribute side="server" code="0x0001" define="COLOR_CONTROL_CURRENT_SATURATION" type="int8u" min="0x00" max="0xFE" writable="false" reportable="true" default="0x00" optional="true">CurrentSaturation</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ limitations under the License.

<globalAttribute side="either" code="0xFFFD" value="3"/>

<features>
<feature bit="0" code="MEA" name="NumericMeasurement" summary="Cluster supports numeric measurement of substance">
<optionalConform choice="a" more="true"/>
</feature>
<feature bit="1" code="LEV" name="LevelIndication" summary="Cluster supports basic level indication for substance using the ConcentrationLevel enum">
<optionalConform choice="a" more="true"/>
</feature>
<feature bit="2" code="MED" name="MediumLevel" summary="Cluster supports the Medium Concentration Level">
<optionalConform>
<feature name="LEV"/>
</optionalConform>
</feature>
<feature bit="3" code="CRI" name="CriticalLevel" summary="Cluster supports the Critical Concentration Level">
<optionalConform>
<feature name="LEV"/>
</optionalConform>
</feature>
<feature bit="4" code="PEA" name="PeakMeasurement" summary="Cluster supports peak numeric measurement of substance">
<optionalConform>
<feature name="MEA"/>
</optionalConform>
</feature>
<feature bit="5" code="AVG" name="AverageMeasurement" summary="Cluster supports average numeric measurement of substance">
<optionalConform>
<feature name="MEA"/>
</optionalConform>
</feature>
</features>

<attribute side="server" code="0x0000" define="MEASURED_VALUE" type="single" writable="false" isNullable="true" optional="true">MeasuredValue</attribute>
<attribute side="server" code="0x0001" define="MIN_MEASURED_VALUE" type="single" writable="false" isNullable="true" optional="true">MinMeasuredValue</attribute>
<attribute side="server" code="0x0002" define="MAX_MEASURED_VALUE" type="single" writable="false" isNullable="true" optional="true">MaxMeasuredValue</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,34 @@ limitations under the License.
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>This cluster is used for managing the content control (including "parental control") settings on a media device such as a TV, or Set-top Box.</description>

<features>
<feature bit="0" code="ST" name="ScreenTime" summary="Supports managing screen time limits.">
<optionalConform/>
</feature>
<feature bit="1" code="PM" name="PINManagement" summary="Supports managing a PIN code which is used for restricting access to configuration of this feature.">
<optionalConform/>
</feature>
<feature bit="2" code="BU" name="BlockUnrated" summary="Supports managing content controls for unrated content.">
<optionalConform/>
</feature>
<feature bit="3" code="OCR" name="OnDemandContentRating" summary="Supports managing content controls based upon rating threshold for on demand content.">
<optionalConform/>
</feature>
<feature bit="4" code="SCR" name="ScheduledContentRating" summary="Supports managing content controls based upon rating threshold for scheduled content.">
<optionalConform/>
</feature>
<feature bit="5" code="BC" name="BlockChannels" summary="Supports managing a set of channels that are prohibited.">
<optionalConform/>
</feature>
<feature bit="6" code="BA" name="BlockApplications" summary="Supports managing a set of applications that are prohibited.">
<optionalConform/>
</feature>
<feature bit="7" code="BTW" name="BlockContentTimeWindow" summary="Supports managing content controls based upon setting time window in which all contents and applications SHALL be blocked.">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="ENABLED" type="boolean" writable="false" optional="false">Enabled</attribute>
<attribute side="server" code="0x0001" define="ON_DEMAND_RATINGS" type="ARRAY" entryType="RatingNameStruct" writable="false" optional="true">OnDemandRatings</attribute>
<attribute side="server" code="0x0002" define="ON_DEMAND_THRESHOLD" type="char_string" length="8" writable="false" optional="true">OnDemandRatingThreshold</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ limitations under the License.
<description>This cluster provides an interface for launching content on a media player device such as a TV or Speaker.</description>
<globalAttribute side="either" code="0xFFFD" value="1"/>

<features>
<feature bit="0" code="CS" name="ContentSearch" summary="Device supports content search (non-app specific)">
<optionalConform/>
</feature>
<feature bit="1" code="UP" name="URLPlayback" summary="Device supports basic URL-based file playback">
<optionalConform/>
</feature>
<feature bit="2" code="AS" name="AdvancedSeek" summary="Enables clients to implement more advanced media seeking behavior in their user interface, such as for example a &quot;seek bar&quot;.">
<optionalConform/>
</feature>
<feature bit="3" code="TT" name="TextTracks" summary="Device or app supports Text Tracks.">
<optionalConform/>
</feature>
<feature bit="4" code="AT" name="AudioTracks" summary="Device or app supports Audio Tracks.">
<optionalConform/>
</feature>
</features>

<attribute side="server" code="0x0000" define="CONTENT_LAUNCHER_ACCEPT_HEADER" type="array" entryType="char_string" length="254" writable="false" optional="true">AcceptHeader</attribute>
<attribute side="server" code="0x0001" define="CONTENT_LAUNCHER_SUPPORTED_STREAMING_PROTOCOLS" type="SupportedProtocolsBitmap" default="0" writable="false" optional="true">SupportedStreamingProtocols</attribute>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ limitations under the License.

<globalAttribute side="either" code="0xFFFD" value="2"/>

<features>
<feature bit="0" code="TAGLIST" name="TagList" summary="The TagList attribute is present"/>
</features>

<attribute side="server" code="0x0000" define="DEVICE_LIST" type="array" entryType="DeviceTypeStruct" writable="false" optional="false">DeviceTypeList</attribute>
<attribute side="server" code="0x0001" define="SERVER_LIST" type="array" entryType="cluster_id" writable="false" optional="false">ServerList</attribute>
<attribute side="server" code="0x0002" define="CLIENT_LIST" type="array" entryType="cluster_id" writable="false" optional="false">ClientList</attribute>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,73 @@ limitations under the License.
<description>This cluster allows a client to manage the power draw of a device. An example of such a client could be an Energy Management System (EMS) which controls an Energy Smart Appliance (ESA).</description>
<globalAttribute side="either" code="0xFFFD" value="3"/>

<features>
<feature bit="0" code="PA" name="PowerAdjustment" summary="Allows an EMS to make a temporary power
adjustment (within the limits offered by the ESA).">
<optionalConform choice="a" more="true"/>
</feature>
<feature bit="1" code="PFR" name="PowerForecastReporting" summary="Allows an ESA to advertise its indicative
future power consumption vs time.">
<otherwiseConform>
<mandatoryConform>
<andTerm>
<orTerm>
<feature name="STA"/>
<feature name="PAU"/>
<feature name="FA"/>
<feature name="CON"/>
</orTerm>
<notTerm>
<feature name="SFR"/>
</notTerm>
</andTerm>
</mandatoryConform>
<optionalConform choice="a" more="true"/>
</otherwiseConform>
</feature>
<feature bit="2" code="SFR" name="StateForecastReporting" summary="Allows an ESA to advertise its indicative
future state vs time.">
<otherwiseConform>
<mandatoryConform>
<andTerm>
<orTerm>
<feature name="STA"/>
<feature name="PAU"/>
<feature name="FA"/>
<feature name="CON"/>
</orTerm>
<notTerm>
<feature name="PFR"/>
</notTerm>
</andTerm>
</mandatoryConform>
<optionalConform choice="a" more="true"/>
</otherwiseConform>
</feature>
<feature bit="3" code="STA" name="StartTimeAdjustment" summary="Allows an EMS to delay an ESA's
planned operation.">
<optionalConform choice="a" more="true"/>
</feature>
<feature bit="4" code="PAU" name="Pausable" summary="Allows an EMS to pause an ESA's
planned operation.">
<optionalConform choice="a" more="true"/>
</feature>
<feature bit="5" code="FA" name="ForecastAdjustment" summary="Allows an EMS to adjust an ESA's
planned operation.">
<otherwiseConform>
<provisionalConform/>
<optionalConform choice="a" more="true"/>
</otherwiseConform>
</feature>
<feature bit="6" code="CON" name="ConstraintBasedAdjustment" summary="Allows an EMS to request constraints to an ESA's
planned operation.">
<otherwiseConform>
<provisionalConform/>
<optionalConform choice="a" more="true"/>
</otherwiseConform>
</feature>
</features>

<!--Attributes-->
<attribute code="0x0000" side="server" type="ESATypeEnum" define="ESA_TYPE" writable="false" optional="false" min="0x00" max="0xFF" default="0xFF">ESAType</attribute>
<attribute code="0x0001" side="server" type="boolean" define="ESA_CAN_GENERATE" writable="false" optional="false" default="0">ESACanGenerate</attribute>
Expand Down
Loading

0 comments on commit 7493045

Please sign in to comment.