Skip to content

Commit

Permalink
[cluster] Move unspecified thermostat types under the draft folder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Oct 25, 2023
1 parent 9bfcb6e commit d9a7a13
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 54 deletions.
26 changes: 0 additions & 26 deletions src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,6 @@ limitations under the License.
<field name="AutoMode" mask="0x20"/>
</bitmap>

<bitmap name="ThermostatOccupancy" type="BITMAP8">
<field name="occupied" mask="0x1"/>
</bitmap>

<bitmap name="ThermostatSensing" type="BITMAP8">
<field name="localTempSensedRemotely" mask="0x1"/>
<field name="outdoorTempSensedRemotely" mask="0x2"/>
<field name="occupancySensedRemotely" mask="0x4"/>
</bitmap>

<bitmap name="ThermostatAlarmMask" type="BITMAP8">
<field name="initializationFailure" mask="0x1"/>
<field name="hardwareFailure" mask="0x2"/>
<field name="selfcalibrationFailure" mask="0x4"/>
</bitmap>

<bitmap name="ThermostatRunningState" type="BITMAP16">
<field name="HeatStateOn" mask="0x0001"/>
<field name="CoolStateOn" mask="0x0002"/>
<field name="FanStateOn" mask="0x0004"/>
<field name="HeatSecondStageStateOn" mask="0x0008"/>
<field name="CoolSecondStageStateOn" mask="0x0010"/>
<field name="FanSecondStageStateOn" mask="0x0020"/>
<field name="FanThirdStageStateOn" mask="0x0040"/>
</bitmap>

<bitmap name="DayOfWeek" type="BITMAP8">
<cluster code="0x0201"/>
<field name="Sunday" mask="0x01"/>
Expand Down
8 changes: 8 additions & 0 deletions src/app/zap-templates/zcl/data-model/draft/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Data Model Draft

### What is this repo?

This directory contains clusters and types that have not been specified yet.

**IMPORTANT**: Adding a cluster code to the types in this folder will expose
them as if they are fully specified.
43 changes: 43 additions & 0 deletions src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>
<bitmap name="ThermostatOccupancy" type="BITMAP8">
<field name="occupied" mask="0x1"/>
</bitmap>

<bitmap name="ThermostatSensing" type="BITMAP8">
<field name="localTempSensedRemotely" mask="0x1"/>
<field name="outdoorTempSensedRemotely" mask="0x2"/>
<field name="occupancySensedRemotely" mask="0x4"/>
</bitmap>

<bitmap name="ThermostatAlarmMask" type="BITMAP8">
<field name="initializationFailure" mask="0x1"/>
<field name="hardwareFailure" mask="0x2"/>
<field name="selfcalibrationFailure" mask="0x4"/>
</bitmap>

<bitmap name="ThermostatRunningState" type="BITMAP16">
<field name="HeatStateOn" mask="0x0001"/>
<field name="CoolStateOn" mask="0x0002"/>
<field name="FanStateOn" mask="0x0004"/>
<field name="HeatSecondStageStateOn" mask="0x0008"/>
<field name="CoolSecondStageStateOn" mask="0x0010"/>
<field name="FanSecondStageStateOn" mask="0x0020"/>
<field name="FanThirdStageStateOn" mask="0x0040"/>
</bitmap>
</configurator>
28 changes: 0 additions & 28 deletions zzz_generated/app-common/app-common/zap-generated/enums.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9a7a13

Please sign in to comment.