Skip to content

Commit c7f062c

Browse files
committed
GH-32: Custom thermostat cluster
Forwarded: #32 Bug-SiliconLabs: UIC-3069 Bug-Github: #32
1 parent 2d8e00e commit c7f062c

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Used to expose Protocol (ZWave) specific attributes to Unify.
4+
-->
5+
<zcl:cluster xmlns:zcl="http://zigbee.org/zcl/clusters"
6+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7+
xmlns:type="http://zigbee.org/zcl/types"
8+
xmlns:xi="http://www.w3.org/2001/XInclude" xsi:schemaLocation="http://zigbee.org/zcl/clusters cluster.xsd http://zigbee.org/zcl/types type.xsd" id="FD15" revision="1" name="UnifyThermostat">
9+
<classification role="application" picsCode="TSTAT" primaryTransaction="2" />
10+
<server>
11+
<attributes>
12+
<attribute id="0001" name="ThermostatMode" type="enum8" writable="true" required="true" default="0">
13+
<restriction>
14+
<type:enumeration value="00" name="Off" />
15+
<type:enumeration value="01" name="Heat" />
16+
<type:enumeration value="02" name="Cool" />
17+
<type:enumeration value="03" name="Auto" />
18+
<type:enumeration value="04" name="Auxiliary" />
19+
<type:enumeration value="05" name="Resume" />
20+
<type:enumeration value="06" name="Fan" />
21+
<type:enumeration value="07" name="Furnace" />
22+
<type:enumeration value="08" name="Dry" />
23+
<type:enumeration value="09" name="Moist" />
24+
<type:enumeration value="0A" name="AutoChangeover" />
25+
<type:enumeration value="0B" name="EnergyHeat" />
26+
<type:enumeration value="0C" name="EnergyCool" />
27+
<type:enumeration value="0D" name="Away" />
28+
<!-- <type:enumeration value="0E" name="Reserved" /> -->
29+
<type:enumeration value="0F" name="FullPower" />
30+
<type:enumeration value="1F" name="ManufacturerSpecific" />
31+
</restriction>
32+
</attribute>
33+
<attribute id="0002" name="SupportedThermostatMode" type="map16" writable="false" required="false" default="0">
34+
<bitmap>
35+
<element name="Off" type="bool" mask="01" />
36+
<element name="Heat" type="bool" mask="02" shiftRight="1" />
37+
<element name="Cool" type="bool" mask="04" shiftRight="2" />
38+
<element name="Auto" type="bool" mask="08" shiftRight="3" />
39+
<element name="Auxiliary" type="bool" mask="10" shiftRight="4" />
40+
<element name="Resume" type="bool" mask="20" shiftRight="5" />
41+
<element name="Fan" type="bool" mask="40" shiftRight="6" />
42+
<element name="Furnace" type="bool" mask="80" shiftRight="7" />
43+
<element name="Dry" type="bool" mask="100" shiftRight="8" />
44+
<element name="Moist" type="bool" mask="200" shiftRight="9"/>
45+
<element name="AutoChangeover" type="bool" mask="400" shiftRight="10"/>
46+
<element name="EnergyHeat" type="bool" mask="800" shiftRight="10"/>
47+
<element name="EnergyCool" type="bool" mask="1000" shiftRight="11"/>
48+
<element name="Away" type="bool" mask="2000" shiftRight="12"/>
49+
<element name="FullPower" type="bool" mask="4000" shiftRight="13"/>
50+
<element name="ManufacturerSpecific" type="bool" mask="8000" shiftRight="14"/>
51+
</bitmap>
52+
</attribute>
53+
</attributes>
54+
</server>
55+
</zcl:cluster>

components/uic_dotdot/dotdot-xml/library.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,5 +490,5 @@ applicable to this document can be found in the LICENSE.md file.
490490
<xi:include href="Unify_SystemMetrics.xml" parse="xml"/>
491491
<xi:include href="Unify_ApplicationMonitoring.xml" parse="xml"/>
492492
<xi:include href="Unify_Descriptor.xml" parse="xml"/>
493-
493+
<xi:include href="Unify_Thermostat.xml" parse="xml"/>
494494
</zcl:library>

0 commit comments

Comments
 (0)