Skip to content

Commit

Permalink
moved flow measurement cluster into seperate xml (#7226)
Browse files Browse the repository at this point in the history
  • Loading branch information
janusheide authored Jun 2, 2021
1 parent 7f03db9 commit 90d200c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 35 deletions.
17 changes: 0 additions & 17 deletions src/app/zap-templates/zcl/data-model/silabs/ha-thread.xml
Original file line number Diff line number Diff line change
Expand Up @@ -445,23 +445,6 @@ limitations under the License.
<attribute side="server" code="0x0013" define="PRESSURE_SCALED_TOLERANCE" type="INT16S" min="0x0000" max="0x0800" writable="false" reportable="true" optional="true">scaled tolerance</attribute>
<attribute side="server" code="0x0014" define="PRESSURE_SCALE" type="INT8S" min="0x81" max="0x7F" writable="false" optional="true">scale</attribute>
</cluster>
<cluster>
<name>Flow Measurement</name>
<domain>Measurement &amp; Sensing</domain>
<description>Attributes and commands for configuring the measurement of flow, and reporting flow rates.</description>
<code>0x0404</code>
<define>FLOW_MEASUREMENT_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" tickFrequency="half" init="false">true</server>
<attribute side="server" code="0x0000" define="FLOW_MEASURED_VALUE" type="INT16U" writable="false" reportable="true" default="0x0000" optional="false">measured value</attribute>
<!-- MEASURED_VALUE -->
<attribute side="server" code="0x0001" define="FLOW_MIN_MEASURED_VALUE" type="INT16U" min="0x0000" max="0xfffd" writable="false" optional="false">min measured value</attribute>
<!-- MIN_MEASURED_VALUE -->
<attribute side="server" code="0x0002" define="FLOW_MAX_MEASURED_VALUE" type="INT16U" min="0x0001" max="0xfffe" writable="false" optional="false">max measured value</attribute>
<!-- MAX_MEASURED_VALUE -->
<attribute side="server" code="0x0003" define="FLOW_TOLERANCE" type="INT16U" min="0x0000" max="0x0800" writable="false" reportable="true" optional="true">tolerance</attribute>
<!-- TOLERANCE -->
</cluster>
<cluster>
<name>Relative Humidity Measurement</name>
<domain>Measurement &amp; Sensing</domain>
Expand Down
18 changes: 0 additions & 18 deletions src/app/zap-templates/zcl/data-model/silabs/ha.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,24 +474,6 @@ limitations under the License.
<attribute side="server" code="0x0013" define="PRESSURE_SCALED_TOLERANCE" type="INT16S" min="0x0000" max="0x0800" writable="false" reportable="true" optional="true">scaled tolerance</attribute>
<attribute side="server" code="0x0014" define="PRESSURE_SCALE" type="INT8S" min="0x81" max="0x7F" writable="false" optional="true">scale</attribute>
</cluster>
<cluster>
<name>Flow Measurement</name>
<domain>Measurement &amp; Sensing</domain>
<description>Attributes and commands for configuring the measurement of flow, and reporting flow rates.</description>
<code>0x0404</code>
<define>FLOW_MEASUREMENT_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" tickFrequency="half" init="false">true</server>
<globalAttribute side="either" code="0xFFFD" value="2"/>
<attribute side="server" code="0x0000" define="FLOW_MEASURED_VALUE" type="INT16U" writable="false" reportable="true" default="0x0000" optional="false">measured value</attribute>
<!-- MEASURED_VALUE -->
<attribute side="server" code="0x0001" define="FLOW_MIN_MEASURED_VALUE" type="INT16U" min="0x0000" max="0xfffd" writable="false" optional="false">min measured value</attribute>
<!-- MIN_MEASURED_VALUE -->
<attribute side="server" code="0x0002" define="FLOW_MAX_MEASURED_VALUE" type="INT16U" min="0x0001" max="0xfffe" writable="false" optional="false">max measured value</attribute>
<!-- MAX_MEASURED_VALUE -->
<attribute side="server" code="0x0003" define="FLOW_TOLERANCE" type="INT16U" min="0x0000" max="0x0800" writable="false" reportable="true" optional="true">tolerance</attribute>
<!-- TOLERANCE -->
</cluster>
<cluster>
<name>Relative Humidity Measurement</name>
<domain>Measurement &amp; Sensing</domain>
Expand Down
33 changes: 33 additions & 0 deletions src/app/zap-templates/zcl/flow-measurement-cluster.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2021 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="CHIP"/>
<cluster>
<name>Flow Measurement</name>
<domain>Measurement &amp; Sensing</domain>
<description>Attributes and commands for configuring the measurement of flow, and reporting flow measurements.</description>
<code>0x0404</code>
<define>FLOW_MEASUREMENT_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<attribute side="server" code="0x0000" define="FLOW_MEASURED_VALUE" type="INT16S" writable="false" optional="false">measured value</attribute>
<attribute side="server" code="0x0001" define="FLOW_MIN_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">min measured value</attribute>
<attribute side="server" code="0x0002" define="FLOW_MAX_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">max measured value</attribute>
<attribute side="server" code="0x0003" define="FLOW_TOLERANCE" type="INT16U" writable="false" default="0" optional="true">tolerance</attribute>
</cluster>

</configurator>
1 change: 1 addition & 0 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"custom-types.xml",
"chip-devices.xml",
"descriptor-cluster.xml",
"flow-measurement-cluster.xml",
"types.xml",
"general.xml",
"operational-credentials-cluster.xml",
Expand Down

0 comments on commit 90d200c

Please sign in to comment.