From d9a7a136d338148681f921f7b3eded8ae27c12d0 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Tue, 31 Jan 2023 02:22:24 +0100 Subject: [PATCH] [cluster] Move unspecified thermostat types under the draft folder (#24729) --- .../data-model/chip/thermostat-cluster.xml | 26 ----------- .../zcl/data-model/draft/README.md | 8 ++++ .../zcl/data-model/draft/types/thermostat.xml | 43 +++++++++++++++++++ .../app-common/zap-generated/enums.h | 28 ------------ 4 files changed, 51 insertions(+), 54 deletions(-) create mode 100644 src/app/zap-templates/zcl/data-model/draft/README.md create mode 100644 src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index f788d3b280a3b3..39ae4188a84df6 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -27,32 +27,6 @@ limitations under the License. - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/app/zap-templates/zcl/data-model/draft/README.md b/src/app/zap-templates/zcl/data-model/draft/README.md new file mode 100644 index 00000000000000..06d7e77df709e3 --- /dev/null +++ b/src/app/zap-templates/zcl/data-model/draft/README.md @@ -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. diff --git a/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml b/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml new file mode 100644 index 00000000000000..a1b7e71cc1fdfa --- /dev/null +++ b/src/app/zap-templates/zcl/data-model/draft/types/thermostat.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zzz_generated/app-common/app-common/zap-generated/enums.h b/zzz_generated/app-common/app-common/zap-generated/enums.h index daf55b0963e8a7..f83ba8513ca2ee 100644 --- a/zzz_generated/app-common/app-common/zap-generated/enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/enums.h @@ -898,12 +898,6 @@ enum EmberAfWiFiVersionType : uint8_t #define EMBER_AF_SWITCH_FEATURE_MOMENTARY_SWITCH_LONG_PRESS_OFFSET (3) #define EMBER_AF_SWITCH_FEATURE_MOMENTARY_SWITCH_MULTI_PRESS (16) #define EMBER_AF_SWITCH_FEATURE_MOMENTARY_SWITCH_MULTI_PRESS_OFFSET (4) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_INITIALIZATION_FAILURE (1) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_INITIALIZATION_FAILURE_OFFSET (0) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_HARDWARE_FAILURE (2) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_HARDWARE_FAILURE_OFFSET (1) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_SELFCALIBRATION_FAILURE (4) -#define EMBER_AF_THERMOSTAT_ALARM_MASK_SELFCALIBRATION_FAILURE_OFFSET (2) #define EMBER_AF_THERMOSTAT_FEATURE_HEATING (1) #define EMBER_AF_THERMOSTAT_FEATURE_HEATING_OFFSET (0) #define EMBER_AF_THERMOSTAT_FEATURE_COOLING (2) @@ -916,28 +910,6 @@ enum EmberAfWiFiVersionType : uint8_t #define EMBER_AF_THERMOSTAT_FEATURE_SETBACK_OFFSET (4) #define EMBER_AF_THERMOSTAT_FEATURE_AUTO_MODE (32) #define EMBER_AF_THERMOSTAT_FEATURE_AUTO_MODE_OFFSET (5) -#define EMBER_AF_THERMOSTAT_OCCUPANCY_OCCUPIED (1) -#define EMBER_AF_THERMOSTAT_OCCUPANCY_OCCUPIED_OFFSET (0) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_HEAT_STATE_ON (1) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_HEAT_STATE_ON_OFFSET (0) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_COOL_STATE_ON (2) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_COOL_STATE_ON_OFFSET (1) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_STATE_ON (4) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_STATE_ON_OFFSET (2) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_HEAT_SECOND_STAGE_STATE_ON (8) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_HEAT_SECOND_STAGE_STATE_ON_OFFSET (3) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_COOL_SECOND_STAGE_STATE_ON (16) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_COOL_SECOND_STAGE_STATE_ON_OFFSET (4) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_SECOND_STAGE_STATE_ON (32) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_SECOND_STAGE_STATE_ON_OFFSET (5) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_THIRD_STAGE_STATE_ON (64) -#define EMBER_AF_THERMOSTAT_RUNNING_STATE_FAN_THIRD_STAGE_STATE_ON_OFFSET (6) -#define EMBER_AF_THERMOSTAT_SENSING_LOCAL_TEMP_SENSED_REMOTELY (1) -#define EMBER_AF_THERMOSTAT_SENSING_LOCAL_TEMP_SENSED_REMOTELY_OFFSET (0) -#define EMBER_AF_THERMOSTAT_SENSING_OUTDOOR_TEMP_SENSED_REMOTELY (2) -#define EMBER_AF_THERMOSTAT_SENSING_OUTDOOR_TEMP_SENSED_REMOTELY_OFFSET (1) -#define EMBER_AF_THERMOSTAT_SENSING_OCCUPANCY_SENSED_REMOTELY (4) -#define EMBER_AF_THERMOSTAT_SENSING_OCCUPANCY_SENSED_REMOTELY_OFFSET (2) #define EMBER_AF_THREAD_NETWORK_DIAGNOSTICS_FEATURE_PACKET_COUNTS (1) #define EMBER_AF_THREAD_NETWORK_DIAGNOSTICS_FEATURE_PACKET_COUNTS_OFFSET (0) #define EMBER_AF_THREAD_NETWORK_DIAGNOSTICS_FEATURE_ERROR_COUNTS (2)