Skip to content

Commit

Permalink
Add default values back to the temperature measurement cluster (#7810)
Browse files Browse the repository at this point in the history
* fix temperature measurement cluster

Min / Max Measured values should have spec compliend defaults.

* add proper min / max value ranges for temerature measurement cluster
  • Loading branch information
eve-cxrp authored and pull[bot] committed Aug 10, 2021
1 parent c2d2c4d commit 4a8a508
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/app/zap-templates/zcl/temperature-measurement-cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ limitations under the License.
<define>TEMP_MEASUREMENT_CLUSTER</define>
<client tick="false" init="false">true</client>
<server tick="false" init="false">true</server>
<attribute side="server" code="0x0000" define="TEMP_MEASURED_VALUE" type="INT16S" writable="false" optional="false">measured value</attribute>
<attribute side="server" code="0x0001" define="TEMP_MIN_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">min measured value</attribute>
<attribute side="server" code="0x0002" define="TEMP_MAX_MEASURED_VALUE" type="INT16S" min="-38221" max="65535" writable="false" optional="false">max measured value</attribute>
<attribute side="server" code="0x0003" define="TEMP_TOLERANCE" type="INT16U" writable="false" default="0" optional="true">tolerance</attribute>
<attribute side="server" code="0x0000" define="TEMP_MEASURED_VALUE" type="INT16S" min="0x954d" max="0x7fff" writable="false" optional="false">measured value</attribute>
<attribute side="server" code="0x0001" define="TEMP_MIN_MEASURED_VALUE" type="INT16S" min="0x954d" max="0x7ffe" writable="false" default="0x8000" optional="false">min measured value</attribute>
<attribute side="server" code="0x0002" define="TEMP_MAX_MEASURED_VALUE" type="INT16S" min="0x954e" max="0x7fff" writable="false" default="0x8000" optional="false">max measured value</attribute>
<attribute side="server" code="0x0003" define="TEMP_TOLERANCE" type="INT16U" min="0" max="0x8000" writable="false" default="0" optional="true">tolerance</attribute>
</cluster>

</configurator>

0 comments on commit 4a8a508

Please sign in to comment.