Developing with ZBOSS for Zigbee
ZCL Thermostat cluster

Functions

void zb_zcl_thermostat_init (void)
 

Thermostat cluster attributes

enum  zb_zcl_thermostat_attr_e {
  ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID = 0x0000, ZB_ZCL_ATTR_THERMOSTAT_OUTDOOR_TEMPERATURE_ID = 0x0001, ZB_ZCL_ATTR_THERMOSTAT_OCCUPANCY_ID = 0x0002, ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_ID = 0x0003,
  ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_ID = 0x0004, ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_ID = 0x0005, ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_ID = 0x0006, ZB_ZCL_ATTR_THERMOSTAT_PI_COOLING_DEMAND_ID = 0x0007,
  ZB_ZCL_ATTR_THERMOSTAT_PI_HEATING_DEMAND_ID = 0x0008, ZB_ZCL_ATTR_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_ID = 0x0009, ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID = 0x0010, ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID = 0x0011,
  ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID = 0x0012, ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_ID = 0x0013, ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_ID = 0x0014, ZB_ZCL_ATTR_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_ID = 0x0015,
  ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID = 0x0016, ZB_ZCL_ATTR_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_ID = 0x0017, ZB_ZCL_ATTR_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_ID = 0x0018, ZB_ZCL_ATTR_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_ID = 0x0019,
  ZB_ZCL_ATTR_THERMOSTAT_REMOTE_SENSING_ID = 0x001a, ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID = 0x001b, ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID = 0x001c, ZB_ZCL_ATTR_THERMOSTAT_ALARM_MASK_ID = 0x001d,
  ZB_ZCL_ATTR_THERMOSTAT_RUNNING_MODE_ID = 0x001e, ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID = 0x0020, ZB_ZCL_ATTR_THERMOSTAT_NUMBER_OF_WEEKLY_TRANSITIONS_ID = 0x0021, ZB_ZCL_ATTR_THERMOSTAT_NUMBER_OF_DAILY_TRANSITIONS_ID = 0x0022,
  ZB_ZCL_ATTR_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_ID = 0x0023, ZB_ZCL_ATTR_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_ID = 0x0024, ZB_ZCL_ATTR_THERMOSTAT_THERMOSTAT_PROGRAMMING_OPERATION_MODE_ID = 0x0025, ZB_ZCL_ATTR_THERMOSTAT_THERMOSTAT_RUNNING_STATE_ID = 0x0029,
  ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_SOURCE_ID = 0x0030, ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_AMOUNT_ID = 0x0031, ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_SOURCE_TIMESTAMP_ID = 0x0032, ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_ID = 0x0034,
  ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_MIN_ID = 0x0035, ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_MAX_ID = 0x0036, ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_ID = 0x0037, ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_MIN_ID = 0x0038,
  ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_MAX_ID = 0x0039, ZB_ZCL_ATTR_THERMOSTAT_EMERGENCY_HEAT_DELTA_ID = 0x003a, ZB_ZCL_ATTR_THERMOSTAT_AC_TYPE_ID = 0x0040, ZB_ZCL_ATTR_THERMOSTAT_AC_CAPACITY_ID = 0x0041,
  ZB_ZCL_ATTR_THERMOSTAT_AC_REFRIGERANT_TYPE_ID = 0x0042, ZB_ZCL_ATTR_THERMOSTAT_AC_COMPRESSOR_TYPE_ID = 0x0043, ZB_ZCL_ATTR_THERMOSTAT_AC_ERROR_CODE_ID = 0x0044, ZB_ZCL_ATTR_THERMOSTAT_AC_LOUVER_POSITION_ID = 0x0045,
  ZB_ZCL_ATTR_THERMOSTAT_AC_COIL_TEMPERATURE_ID = 0x0046, ZB_ZCL_ATTR_THERMOSTAT_AC_CAPACITY_FORMAT_ID = 0x0047
}
 Thermostat cluster attribute identifiers. More...
 
enum  zb_zcl_thermostat_control_sequence_of_operation_e {
  ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_ONLY = 0x00, ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_WITH_REHEAT = 0x01, ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_HEATING_ONLY = 0x02, ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_HEATING_WITH_REHEAT = 0x03,
  ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_AND_HEATING_4_PIPES = 0x04, ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_AND_HEATING_4_PIPES_WITH_REHEAT = 0x05, ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_RESERVED = 0x06
}
 Values for Control Sequence Of Operation attribute,. More...
 
enum  zb_zcl_thermostat_system_mode_e {
  ZB_ZCL_THERMOSTAT_SYSTEM_MODE_OFF = 0x00, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_AUTO = 0x01, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_COOL = 0x03, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_HEAT = 0x04,
  ZB_ZCL_THERMOSTAT_SYSTEM_MODE_EMERGENCY_HEATING = 0x05, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_PRECOOLING = 0x06, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_FAN_ONLY = 0x07, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_DRY = 0x08,
  ZB_ZCL_THERMOSTAT_SYSTEM_MODE_SLEEP = 0x09, ZB_ZCL_THERMOSTAT_SYSTEM_MODE_RESERVED = 0x0a
}
 Values for System Mode attribute,. More...
 
enum  zb_zcl_thermostat_ac_louver_position_e {
  ZB_ZCL_THERMOSTAT_LOUVER_FULLY_CLOSED = 0x01, ZB_ZCL_THERMOSTAT_LOUVER_FULLY_OPENED = 0x02, ZB_ZCL_THERMOSTAT_LOUVER_QUARTER_OPEN = 0x03, ZB_ZCL_THERMOSTAT_LOUVER_HALF_OPEN = 0x04,
  ZB_ZCL_THERMOSTAT_LOUVER_THREE_QUARTERS_OPEN = 0x05
}
 Values for AC Louver position attribute.
 
enum  zb_zcl_thermostat_start_of_week_e {
  ZB_ZCL_THERMOSTAT_START_OF_WEEK_SUNDAY = 0x00, ZB_ZCL_THERMOSTAT_START_OF_WEEK_MONDAY = 0x01, ZB_ZCL_THERMOSTAT_START_OF_WEEK_TUESDAY = 0x02, ZB_ZCL_THERMOSTAT_START_OF_WEEK_WEDNESDAY = 0x03,
  ZB_ZCL_THERMOSTAT_START_OF_WEEK_THURSDAY = 0x04, ZB_ZCL_THERMOSTAT_START_OF_WEEK_FRIDAY = 0x05, ZB_ZCL_THERMOSTAT_START_OF_WEEK_SATURDAY = 0x06
}
 Values for Start of Week attribute,. More...
 
enum  zb_zcl_thermostat_temperature_setpoint_hold_e { ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_OFF = 0x00, ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_ON = 0x01 }
 Values for Temperature Setpoint Hold attribute,. More...
 
enum  zb_zcl_thermostat_alarm_code_e { ZB_ZCL_THERMOSTAT_ALARM_CODE_INITIALIZATION_FAILURE = 0x00, ZB_ZCL_THERMOSTAT_ALARM_CODE_HARDWARE_FAILURE = 0x01, ZB_ZCL_THERMOSTAT_ALARM_CODE_SELFCALIBRATION_FAILURE = 0x02 }
 Thermostat Alarm Code for Alarming. More...
 
enum  zb_zcl_thermostat_programming_operation_mode_bit_e { ZB_ZCL_THERMOSTAT_SCHEDULE_PROGRAMMING_MODE_BIT = 0x01, ZB_ZCL_THERMOSTAT_AUTO_RECOVERY_PROGRAMMING_MODE_BIT = 0x02, ZB_ZCL_THERMOSTAT_ECONOMY_ENERGY_START_PROGRAMMING_MODE_BIT = 0x04 }
 Bits of ThermostatProgrammingOperationMode. More...
 
#define ZB_ZCL_THERMOSTAT_CLUSTER_REVISION_DEFAULT   ((zb_uint16_t)0x0003u)
 Default value for Thermostat cluster revision global attribute.
 
#define ZB_ZCL_THERMOSTAT_START_OF_WEEK_DEFAULT_VALUE   ZB_ZCL_THERMOSTAT_START_OF_WEEK_SUNDAY
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_MIN_VALUE   0x954d
 Min value for Local Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for Local Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_OUTDOOR_TEMPERATURE_MIN_VALUE   0x954d
 Min value for Outdoor Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_OUTDOOR_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for Outdoor Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_INVALID   ZB_ZCL_NON_VALUE_INT16
 Invalid value for Local Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_DEFAULT_VALUE   0xffff
 Default value for Local Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_MIN_VALUE   0xe7
 Min value for Local Temperature Calibration attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_MAX_VALUE   0x19
 Max value for Local Temperature Calibration attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_DEFAULT_VALUE   0x0a28
 Default value for Occupied Cooling Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_MIN_VALUE   0x954d
 Min value for Occupied Cooling Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_MAX_VALUE   0x7fff
 Max value for Occupied Cooling Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_DEFAULT_VALUE   0x07d0
 Default value for Occupied Heating Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_MIN_VALUE   0x954d
 Min value for Occupied Heating Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_MAX_VALUE   0x7fff
 Max value for Occupied Heating Setpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_MIN_VALUE   0x0a
 Min value for Min Setpoint Dead Band attribute.
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_MAX_VALUE   0x19
 Max value for Min Setpoint Dead Band attribute.
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_LOCAL_TEMPERATURE_SENSED_REMOTELY_BIT   (1<<0)
 Local Temperature Sensed Remotely bit of Remote Sensing attribute

 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_OUTDOOR_TEMPERATURE_SENSED_REMOTELY_BIT   (1<<1)
 Outdoor Temperature Sensed Remotely bit of Remote Sensing attribute

 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_OCCUPANCY_SENSED_REMOTELY_BIT   (1<<2)
 Occupancy Sensed Sensed Remotely bit of Remote Sensing attribute

 
#define ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_DEFAULT_VALUE   0x04
 Default value for Control Sequence Of Operation attribute.
 
#define ZB_ZCL_THERMOSTAT_CONTROL_SYSTEM_MODE_DEFAULT_VALUE   0x01
 Default value for System Mode attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPANCY_DEFAULT_VALUE   ((zb_uint8_t)1U)
 Default value for Occupancy attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPANCY_BITMASK   ((zb_uint8_t)0x01)
 Bitmask for Occupancy attribute.
 
#define ZB_ZCL_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x02BC)
 Default value for AbsMinHeatSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0BB8)
 Default value for AbsMaxHeatSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0640)
 Default value for AbsMinCoolSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0C80)
 Default value for AbsMaxCoolSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_PI_COOLING_DEMAND_MIN_VALUE   ((zb_uint8_t)0x00)
 Min value for PICoolingDemand attribute.
 
#define ZB_ZCL_THERMOSTAT_PI_COOLING_DEMAND_MAX_VALUE   ((zb_uint8_t)0x64)
 Max value for PICoolingDemand attribute.
 
#define ZB_ZCL_THERMOSTAT_PI_HEATING_DEMAND_MIN_VALUE   ((zb_uint8_t)0x00)
 Min value for PIHeatingDemand attribute.
 
#define ZB_ZCL_THERMOSTAT_PI_HEATING_DEMAND_MAX_VALUE   ((zb_uint8_t)0x64)
 Max value for PIHeatingDemand attribute.
 
#define ZB_ZCL_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for HVACSystemTypeConfiguration attribute.
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_DEFAULT_VALUE   ((zb_int8_t)0x00)
 Default value for LocalTemperatureCalibration attribute.
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_DEFAULT_VALUE   ((zb_int16_t)0x0A28)
 Default value for UnoccupiedCoolingSetpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_DEFAULT_VALUE   ((zb_int16_t)0x07D0)
 Default value for UnoccupiedHeatingSetpoint attribute.
 
#define ZB_ZCL_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x02BC)
 Default value for MinHeatSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0BB8)
 Default value for MaxHeatSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0640)
 Default value for MinCoolSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0C80)
 Default value for MaxCoolSetpointLimit attribute.
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_DEFAULT_VALUE   ((zb_int8_t)0x19)
 Default value for MinSetpointDeadBand attribute.
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for RemoteSensing attribute.
 
#define ZB_ZCL_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_DEFAULT_VALUE   ((zb_uint8_t)0x04)
 Default value for ControlSequenceOfOperation attribute.
 
#define ZB_ZCL_THERMOSTAT_SYSTEM_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x01)
 Default value for SystemMode attribute.
 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for AlarmMask attribute.
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for RunningMode attribute.
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_OFF_VALUE   ((zb_uint8_t)0x00)
 Off value for RunningMode attribute.
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_COOL_VALUE   ((zb_uint8_t)0x03)
 Cool value for RunningMode attribute.
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_HEAT_VALUE   ((zb_uint8_t)0x04)
 Heat value for RunningMode attribute.
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for TemperatureSetpointHold attribute.
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_DEFAULT_VALUE   ((zb_uint16_t)0xFFFF)
 Default value for TemperatureSetpointHoldDuration attribute.
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_MIN_VALUE   ((zb_uint16_t)0x0000)
 Min value for TemperatureSetpointHoldDuration attribute.
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_MAX_VALUE   ((zb_uint16_t)0x05a0)
 Max value for TemperatureSetpointHoldDuration attribute.
 
#define ZB_ZCL_THERMOSTAT_THERMOSTAT_PROGRAMMING_OPERATION_MODE_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for ThermostatProgrammingOperationMode attribute.
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_SOURCE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for SetpointChangeSource attribute.
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_AMOUNT_DEFAULT_VALUE   ((zb_int16_t)0x8000)
 Default value for SetpointChangeAmount attribute.
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_SOURCE_TIMESTAMP_DEFAULT_VALUE   ((zb_time_t)0x00000000)
 Default value for SetpointChangeSourceTimestamp attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetback attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_MIN_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetbackMin attribute.
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_MAX_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetbackMax attribute.
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetback attribute.
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_MIN_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetbackMin attribute.
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_MAX_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetbackMax attribute.
 
#define ZB_ZCL_THERMOSTAT_EMERGENCY_HEAT_DELTA_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for EmergencyHeatDelta attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_TYPE_DEFAULT_VALUE
 Unknown value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_COOLING_AND_FIXED_SPEED_VALUE   ((zb_uint8_t)0x01)
 Cooling and Fixed Speed value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_HEAT_PUMP_AND_FIXED_SPEED_VALUE   ((zb_uint8_t)0x02)
 Heat Pump and Fixed Speed value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_COOLING_AND_INVERTER_VALUE   ((zb_uint8_t)0x03)
 Cooling and Inverter value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_HEAT_PUMP_AND_INVERTER_VALUE   ((zb_uint8_t)0x04)
 Heat Pump and Inverter value value for ACType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for ACCapacity attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACRefrigerantType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_DEFAULT_VALUE
 Unknown value for ACRefrigerantType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R22_VALUE   ((zb_uint8_t)0x01)
 R22 value for ACRefrigerantType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R410A_VALUE   ((zb_uint8_t)0x02)
 R410a value for ACRefrigerantType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R407C_VALUE   ((zb_uint8_t)0x03)
 R407c value for ACRefrigerantType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACCompressorType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_DEFAULT_VALUE
 Unknown value for ACCompressorType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T1_VALUE   ((zb_uint8_t)0x01)
 T1(Max working ambient 43 ºC) value for ACCompressorType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T2_VALUE   ((zb_uint8_t)0x02)
 T2(Max working ambient 35 ºC) value for ACCompressorType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T3_VALUE   ((zb_uint8_t)0x03)
 T3(Max working ambient 52 ºC) value for ACCompressorType attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_DEFAULT_VALUE   ((zb_uint32_t)0x00000000)
 Default value for ACErrorCode attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_COMPRESSOR_FAILURE_OR_REFRIGERANT_LEAKAGE_BIT   (1<<0)
 Compressor Failure or Refrigerant Leakage bit of AC Error Code attribute

 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_ROOM_TEMPERATURE_SENSOR_FAILURE_BIT   (1<<1)
 Room Temperature Sensor Failure bit of AC Error Code attribute

 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_OUTDOOR_TEMPERATURE_SENSOR_FAILURE_BIT   (1<<2)
 Outdoor Temperature Sensor Failure bit of AC Error Code attribute

 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_INDOOR_COIL_TEMPERATURE_SENSOR_FAILURE_BIT   (1<<3)
 Indoor Coil Temperature Sensor Failure bit of AC Error Code attribute

 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_FAN_FAILURE_BIT   (1<<4)
 Fan Failure bit of AC Error Code attribute

 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_FULLY_CLOSED_VALUE   ((zb_uint8_t)0x01)
 Fully Closed value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_FULLY_OPEN_VALUE   ((zb_uint8_t)0x02)
 Fully Open value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_QUARTER_OPEN_VALUE   ((zb_uint8_t)0x03)
 Quarter Open value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_THREE_QUARTERS_OPEN_VALUE   ((zb_uint8_t)0x05)
 Three Quarters Open value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_HALF_OPEN_VALUE   ((zb_uint8_t)0x04)
 Half Open value for ACLouverPosition attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COIL_TEMPERATURE_MIN_VALUE   0x954d
 Min value for AC Coil Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_COIL_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for AC Coil Temperature attribute.
 
#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for AC Capacity Format attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for AC Capacity Format attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_BTUH_VALUE   ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE
 BTUh value for AC Capacity Format attribute.
 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_INITIALIZATION_FAILURE_BIT   (1<<0)
 Initialization failure bit of Alarm Mask attribute

 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_HARDWARE_FAILURE_BIT   (1<<1)
 Hardware Failure bit of Alarm Mask attribute

 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_SELFCALIBRATION_FAILURE_BIT   (1<<2)
 Self-Calibration Failure bit of Alarm Mask attribute

 
#define ZB_ZCL_THERMOSTAT_PROGRAMMING_OPERATION_MODE_SIMPLE_SETPOINT_OR_PROGRAMMING_MODE_BIT   (1<<0)
 Simple/Setpoint(0) or Schedule_Programming(1) mode bit of Thermostat Programming Operation Mode attribute

 
#define ZB_ZCL_THERMOSTAT_PROGRAMMING_OPERATION_MODE_AUTO_RECOVERY_MODE_BIT   (1<<1)
 Auto/recovery mode bit of Thermostat Programming Operation Mode attribute

 
#define ZB_ZCL_THERMOSTAT_PROGRAMMING_OPERATION_MODE_ECONOMY_ENERGY_STAR_MODE_BIT   (1<<2)
 Economy/EnergyStar mode bit of Thermostat Programming Operation Mode attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_HEAT_STATE_ON_BIT   (1<<0)
 Heat State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_COOL_STATE_ON_BIT   (1<<1)
 Cool State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_FAN_STATE_ON_BIT   (1<<2)
 Fan State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_HEAT_2ND_STAGE_STATE_ON_BIT   (1<<3)
 Heat 2nd Stage State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_COOL_2ND_STAGE_STATE_ON_BIT   (1<<4)
 Cool 2nd Stage State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_FAN_2ND_STAGE_STATE_ON_BIT   (1<<5)
 Fan 2nd Stage State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_FAN_3RD_STAGE_STATE_ON_BIT   (1<<6)
 Fan 3rd Stage State On bit of Thermostat Running State attribute

 
#define ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST(attr_list, local_temperature, local_temperature_calibration, occupied_cooling_setpoint, occupied_heating_setpoint, control_seq_of_operation, system_mode, start_of_week)
 Declare attribute list for Thermostat cluster. More...
 
#define ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST_EXT(attr_list, local_temperature, abs_min_heat_setpoint_limit, abs_max_heat_setpoint_limit, abs_min_cool_setpoint_limit, abs_max_cool_setpoint_limit, PI_cooling_demand, PI_heating_demand, HVAC_system_type_configuration, local_temperature_calibration, occupied_cooling_setpoint, occupied_heating_setpoint, unoccupied_cooling_setpoint, unoccupied_heating_setpoint, min_heat_setpoint_limit, max_heat_setpoint_limit, min_cool_setpoint_limit, max_cool_setpoint_limit, min_setpoint_dead_band, remote_sensing, control_seq_of_operation, system_mode, start_of_week)
 Declare attribute list for Thermostat cluster. More...
 

Thermostat cluster commands

enum  zb_zcl_thermostat_cmd_e {
  ZB_ZCL_CMD_THERMOSTAT_SETPOINT_RAISE_LOWER = 0x00, ZB_ZCL_CMD_THERMOSTAT_SET_WEEKLY_SCHEDULE = 0x01, ZB_ZCL_CMD_THERMOSTAT_GET_WEEKLY_SCHEDULE = 0x02, ZB_ZCL_CMD_THERMOSTAT_CLEAR_WEEKLY_SCHEDULE = 0x03,
  ZB_ZCL_CMD_THERMOSTAT_GET_RELAY_STATUS_LOG = 0x04
}
 Thermostat cluster command identifiers. More...
 
enum  zb_zcl_thermostat_cmd_resp_ha_e { ZB_ZCL_CMD_THERMOSTAT_GET_WEEKLY_SCHEDULE_RESP = 0x00, ZB_ZCL_CMD_THERMOSTAT_GET_RELAY_STATUS_LOG_RESP = 0x01 }
 Thermostat cluster command identifiers. More...
 

Detailed Description

Macro Definition Documentation

◆ ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST

#define ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST (   attr_list,
  local_temperature,
  local_temperature_calibration,
  occupied_cooling_setpoint,
  occupied_heating_setpoint,
  control_seq_of_operation,
  system_mode,
  start_of_week 
)
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_THERMOSTAT) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID, (local_temperature)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID, (local_temperature_calibration)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID, (occupied_cooling_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID, (occupied_heating_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID, (control_seq_of_operation)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID, (system_mode)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID, (start_of_week)) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST

Declare attribute list for Thermostat cluster.

Parameters
attr_list- attribute list name
local_temperature- pointer to variable to store Local Temperature attribute value
local_temperature_calibration- pointer to variable to store Local Temperature Calibration attribute value
occupied_cooling_setpoint- pointer to variable to store Occupied Cooling Setpoint attribute value
occupied_heating_setpoint- pointer to variable to store Occupied Heating Setpoint attribute value
control_seq_of_operation- pointer to variable to store Control Sequence Of Operation attribute value
system_mode- pointer to variable to store System Mode attribute value
start_of_week- pointer to variable to store Start of Week attribute value

◆ ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST_EXT

#define ZB_ZCL_DECLARE_THERMOSTAT_ATTRIB_LIST_EXT (   attr_list,
  local_temperature,
  abs_min_heat_setpoint_limit,
  abs_max_heat_setpoint_limit,
  abs_min_cool_setpoint_limit,
  abs_max_cool_setpoint_limit,
  PI_cooling_demand,
  PI_heating_demand,
  HVAC_system_type_configuration,
  local_temperature_calibration,
  occupied_cooling_setpoint,
  occupied_heating_setpoint,
  unoccupied_cooling_setpoint,
  unoccupied_heating_setpoint,
  min_heat_setpoint_limit,
  max_heat_setpoint_limit,
  min_cool_setpoint_limit,
  max_cool_setpoint_limit,
  min_setpoint_dead_band,
  remote_sensing,
  control_seq_of_operation,
  system_mode,
  start_of_week 
)
Value:
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_THERMOSTAT) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID, (local_temperature)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_ID, (abs_min_heat_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_ID, (abs_max_heat_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_ID, (abs_min_cool_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_ID, (abs_max_cool_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_PI_COOLING_DEMAND_ID, (PI_cooling_demand)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_PI_HEATING_DEMAND_ID, (PI_heating_demand)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_ID, (HVAC_system_type_configuration)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID, (local_temperature_calibration)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID, (occupied_cooling_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID, (occupied_heating_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_ID, (unoccupied_cooling_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_ID, (unoccupied_heating_setpoint)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_ID, (min_heat_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID, (max_heat_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_ID, (min_cool_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_ID, (max_cool_setpoint_limit)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_ID, (min_setpoint_dead_band)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_REMOTE_SENSING_ID, (remote_sensing)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID, (control_seq_of_operation)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID, (system_mode)) \
ZB_ZCL_SET_ATTR_DESC(ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID, (start_of_week)) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST

Declare attribute list for Thermostat cluster.

Parameters
attr_list- attribute list name
local_temperature- pointer to variable to store Local Temperature attribute value
abs_min_heat_setpoint_limit- pointer to variable to store Abs Min Heat Setpoint Limit attribute value
abs_max_heat_setpoint_limit- pointer to variable to store Abs Max Heat Setpoint Limit attribute value
abs_min_cool_setpoint_limit- pointer to variable to store Abs Min Cool Setpoint Limit attribute value
abs_max_cool_setpoint_limit- pointer to variable to store Abs Max Cool Setpoint Limit attribute value
PI_cooling_demand- pointer to variable to store PI Cooling Demand attribute value
PI_heating_demand- pointer to variable to store PI Heating Demand attribute value
HVAC_system_type_configuration- pointer to variable to store HVAC system type configuration attribute value; write-optional access according to ZCL8 specification, be careful when redefining its handling
local_temperature_calibration- pointer to variable to store Local Temperature Calibration attribute value
occupied_cooling_setpoint- pointer to variable to store Occupied Cooling Setpoint attribute value
occupied_heating_setpoint- pointer to variable to store Occupied Heating Setpoint attribute value
unoccupied_cooling_setpoint- pointer to variable to store Unoccupied Cooling Setpoint attribute value
unoccupied_heating_setpoint- pointer to variable to store Unoccupied Heating Setpoint attribute value
min_heat_setpoint_limit- pointer to variable to store Min Heat Setpoint Limit attribute value
max_heat_setpoint_limit- pointer to variable to store Max Heat Setpoint Limit attribute value
min_cool_setpoint_limit- pointer to variable to store Min Cool Setpoint Limit attribute value
max_cool_setpoint_limit- pointer to variable to store Max Cool Setpoint Limit attribute value
min_setpoint_dead_band- pointer to variable to store Min Setpoint Dead Band attribute value; write-optional access according to ZCL8 specification, be careful when redefining its handling
remote_sensing- pointer to variable to store remote Sensing attribute value
control_seq_of_operation- pointer to variable to store Control Sequence Of Operation attribute value
system_mode- pointer to variable to store System Mode attribute value
start_of_week- pointer to variable to store Start of Week attribute value

◆ ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE [1/2]

#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE   ((zb_uint8_t)0x00)

Default value for AC Capacity Format attribute.

Default value for ACCapacityFormat attribute.

◆ ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE [2/2]

#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_FORMAT_DEFAULT_VALUE   ((zb_uint8_t)0x00)

Default value for AC Capacity Format attribute.

Default value for ACCapacityFormat attribute.

Enumeration Type Documentation

◆ zb_zcl_thermostat_alarm_code_e

Thermostat Alarm Code for Alarming.

See also
ZCL spec 6.3.2.2.2.14, Table 6-18
Enumerator
ZB_ZCL_THERMOSTAT_ALARM_CODE_INITIALIZATION_FAILURE 

MainsVoltageAlarmCode - MainsVoltageMinThreshold reached for Mains Voltage.

ZB_ZCL_THERMOSTAT_ALARM_CODE_HARDWARE_FAILURE 

MainsVoltageAlarmCode - MainsVoltageMaxThreshold reached for Mains Voltage.

ZB_ZCL_THERMOSTAT_ALARM_CODE_SELFCALIBRATION_FAILURE 

BatteryAlarmCode - BatteryVoltageMinThreshold or BatteryPercentageMinThreshold reached for Battery Source 1.

◆ zb_zcl_thermostat_attr_e

Thermostat cluster attribute identifiers.

See also
ZCL spec, subclause 6.3.2.2
Enumerator
ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID 

Local Temperature attribute.

ZB_ZCL_ATTR_THERMOSTAT_OUTDOOR_TEMPERATURE_ID 

OutdoorTemperature represents the outdoor temperature in degrees Celsius, as measured locally or remotely (over the network).

ZB_ZCL_ATTR_THERMOSTAT_OCCUPANCY_ID 

Occupancy specifies whether the heated/cooled space is occupied or not, as measured locally or remotely (over the network).

ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_ID 

The AbsMinHeatSetpointLimit attribute specifies the absolute minimum level that the heating setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_ID 

The AbsMaxHeatSetpointLimit attribute specifies the absolute maximum level that the heating setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_ID 

The AbsMinCoolSetpointLimit attribute specifies the absolute minimum level that the cooling setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_ID 

The AbsMaxCoolSetpointLimit attribute specifies the absolute maximum level that the cooling setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_PI_COOLING_DEMAND_ID 

The PICoolingDemand attribute is 8 bits in length and specifies the level of cooling demanded by the PI (proportional integral) control loop in use by the thermostat (if any), in percent.

ZB_ZCL_ATTR_THERMOSTAT_PI_HEATING_DEMAND_ID 

The PIHeatingDemand attribute is 8 bits in length and specifies the level of heating demanded by the PI loop in percent.

ZB_ZCL_ATTR_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_ID 

The HVACSystemTypeConfiguration attribute specifies the HVAC system type controlled by the thermostat.

ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID 

Local Temperature Calibration.

ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID 

Occupied Cooling Setpoint attribute.

ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID 

Occupied Heating Setpoint attribute.

ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_ID 

Unoccupied Cooling Setpoint attribute.

ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_ID 

Unoccupied Heating Setpoint attribute.

ZB_ZCL_ATTR_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_ID 

The MinHeatSetpointLimit attribute specifies the minimum level that the heating setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID 

The MaxHeatSetpointLimit attribute specifies the maximum level that the heating setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_ID 

The MinCoolSetpointLimit attribute specifies the minimum level that the cooling setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_ID 

The MaxCoolSetpointLimit attribute specifies the maximum level that the cooling setpoint MAY be set to.

ZB_ZCL_ATTR_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_ID 

The MinSetpointDeadBand attribute specifies the minimum difference between the Heat Setpoint and the Cool SetPoint, in steps of 0.1C.

ZB_ZCL_ATTR_THERMOSTAT_REMOTE_SENSING_ID 

The RemoteSensing attribute is an 8-bit bitmap that specifies whether the local temperature, outdoor temperature and occupancy are being sensed by internal sensors or remote networked sensors.

ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID 

Control Sequence Of Operation attribute.

ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID 

System Mode attribute.

ZB_ZCL_ATTR_THERMOSTAT_ALARM_MASK_ID 

The AlarmMask attribute specifies whether each of the alarms is enabled.

ZB_ZCL_ATTR_THERMOSTAT_RUNNING_MODE_ID 

Thermostat Running Mode attribute.

ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID 

Start of Week attribute.

ZB_ZCL_ATTR_THERMOSTAT_NUMBER_OF_WEEKLY_TRANSITIONS_ID 

NumberOfWeeklyTransitions attribute determines how many weekly schedule transitions the thermostat is capable of handling.

ZB_ZCL_ATTR_THERMOSTAT_NUMBER_OF_DAILY_TRANSITIONS_ID 

NumberOfDailyTransitions attribute determines how many daily schedule transitions the thermostat is capable of handling.

ZB_ZCL_ATTR_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_ID 

TemperatureSetpointHold specifies the temperature hold status on the thermostat.

ZB_ZCL_ATTR_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_ID 

TemperatureSetpointHoldDuration sets the period in minutes for which a setpoint hold is active.

ZB_ZCL_ATTR_THERMOSTAT_THERMOSTAT_PROGRAMMING_OPERATION_MODE_ID 

The ThermostatProgrammingOperationMode attribute determines the operational state of the thermostats programming.

ZB_ZCL_ATTR_THERMOSTAT_THERMOSTAT_RUNNING_STATE_ID 

ThermostatRunningState represents the current relay state of the heat, cool, and fan relays.

ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_SOURCE_ID 

The SetpointChangeSource attribute specifies the source of the current active OccupiedCoolingSetpoint or OccupiedHeatingSetpoint (i.e., who or what determined the current setpoint).

ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_AMOUNT_ID 

The SetpointChangeAmount attribute specifies the delta between the current active OccupiedCoolingSetpoint or OccupiedHeatingSetpoint and the previous active setpoint.

ZB_ZCL_ATTR_THERMOSTAT_SETPOINT_CHANGE_SOURCE_TIMESTAMP_ID 

The SetpointChangeSourceTimestamp attribute specifies the time in UTC at which the SetpointChangeSourceAmount attribute change was recorded.

ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_ID 

Specifies the degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the LocalTemperature attribute to float above the OccupiedCooling setpoint (i.e., OccupiedCooling + OccupiedSetback) or below the OccupiedHeating setpoint (i.e., occupiedHeating, OccupiedSetback) before initiating a state change to bring the temperature back to the users desired setpoint.

ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_MIN_ID 

Specifies the minimum degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the OccupiedSetback attribute to be configured by a user.

ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_SETBACK_MAX_ID 

Specifies the maximum degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the OccupiedSetback attribute to be configured by a user.

ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_ID 

Specifies the degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the LocalTemperature attribute to float above the UnoccupiedCooling setpoint (i.e., UnoccupiedCooling + UnoccupiedSetback) or below the UnoccupiedHeating setpoint (i.e., UnoccupiedHeating - UnoccupiedSetback) before initiating a state change to bring the temperature back to the users desired setpoint.

ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_MIN_ID 

Specifies the minimum degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the UnoccupiedSetback attribute to be configured by a user.

ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_SETBACK_MAX_ID 

Specifies the maximum degrees Celsius, in 0.1 degree increments, the Thermostat server will allow the UnoccupiedSetback attribute to be configured by a user.

ZB_ZCL_ATTR_THERMOSTAT_EMERGENCY_HEAT_DELTA_ID 

Specifies the delta, in 0.1 degrees Celsius, between LocalTemperature and the OccupiedHeatingSetpoint or UnoccupiedHeatingSetpoint attributes at which the Thermostat server will operate in emergency heat mode.

ZB_ZCL_ATTR_THERMOSTAT_AC_TYPE_ID 

Indicates the type of Mini Split ACType of Mini Split AC is defined depending on how Cooling and Heating condition is achieved by Mini Split AC.

ZB_ZCL_ATTR_THERMOSTAT_AC_CAPACITY_ID 

Indicates capacity of Mini Split AC in terms of the format defined by the ACCapacityFormat attribute.

ZB_ZCL_ATTR_THERMOSTAT_AC_REFRIGERANT_TYPE_ID 

Indicates type of refrigerant used within the Mini Split AC.

ZB_ZCL_ATTR_THERMOSTAT_AC_COMPRESSOR_TYPE_ID 

This indicates type of Compressor used within the Mini Split AC.

ZB_ZCL_ATTR_THERMOSTAT_AC_ERROR_CODE_ID 

This indicates the type of errors encountered within the Mini Split AC.

ZB_ZCL_ATTR_THERMOSTAT_AC_LOUVER_POSITION_ID 

AC Louver position attribute.

ZB_ZCL_ATTR_THERMOSTAT_AC_COIL_TEMPERATURE_ID 

ACCoilTemperature represents the temperature in degrees Celsius, as measured locally or remotely (over the network).

ZB_ZCL_ATTR_THERMOSTAT_AC_CAPACITY_FORMAT_ID 

This is the format for the ACCapacity attribute.

◆ zb_zcl_thermostat_cmd_e

Thermostat cluster command identifiers.

See also
ZCL spec, subclause 6.3.2.3
Enumerator
ZB_ZCL_CMD_THERMOSTAT_SETPOINT_RAISE_LOWER 

Setpoint Raise/Lower command

ZB_ZCL_CMD_THERMOSTAT_SET_WEEKLY_SCHEDULE 

Set Weekly Schedule command

ZB_ZCL_CMD_THERMOSTAT_GET_WEEKLY_SCHEDULE 

Get Weekly Schedule command

ZB_ZCL_CMD_THERMOSTAT_CLEAR_WEEKLY_SCHEDULE 

Clear Weekly Schedule command

ZB_ZCL_CMD_THERMOSTAT_GET_RELAY_STATUS_LOG 

Get Relay Status Log command

◆ zb_zcl_thermostat_cmd_resp_ha_e

Thermostat cluster command identifiers.

See also
ZCL spec, subclause 6.3.2.4
Enumerator
ZB_ZCL_CMD_THERMOSTAT_GET_WEEKLY_SCHEDULE_RESP 

Get Weekly Schedule response command

ZB_ZCL_CMD_THERMOSTAT_GET_RELAY_STATUS_LOG_RESP 

Get Relay Status Log response command

◆ zb_zcl_thermostat_control_sequence_of_operation_e

Values for Control Sequence Of Operation attribute,.

See also
ZCL spec, subclause 6.3.2.2.2.12
Enumerator
ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_ONLY 

Cooling Only value

ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_WITH_REHEAT 

Cooling With Reheat value

ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_HEATING_ONLY 

Heating Only value

ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_HEATING_WITH_REHEAT 

Heating With Reheat value

ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_AND_HEATING_4_PIPES 

Cooling and Heating 4-pipes value

ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_COOLING_AND_HEATING_4_PIPES_WITH_REHEAT 

Cooling and Heating 4-pipes with Reheat value

◆ zb_zcl_thermostat_programming_operation_mode_bit_e

Bits of ThermostatProgrammingOperationMode.

Enumerator
ZB_ZCL_THERMOSTAT_SCHEDULE_PROGRAMMING_MODE_BIT 

Schedule programming bit

ZB_ZCL_THERMOSTAT_AUTO_RECOVERY_PROGRAMMING_MODE_BIT 

Auto/recovery bit

ZB_ZCL_THERMOSTAT_ECONOMY_ENERGY_START_PROGRAMMING_MODE_BIT 

Economy/energy star bit

◆ zb_zcl_thermostat_start_of_week_e

Values for Start of Week attribute,.

See also
ZCL spec, subclause 6.3.2.2.3.1
Enumerator
ZB_ZCL_THERMOSTAT_START_OF_WEEK_SUNDAY 

Sunday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_MONDAY 

Monday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_TUESDAY 

Tuesday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_WEDNESDAY 

Wednesday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_THURSDAY 

Thursday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_FRIDAY 

Friday value

ZB_ZCL_THERMOSTAT_START_OF_WEEK_SATURDAY 

Saturday value

◆ zb_zcl_thermostat_system_mode_e

Values for System Mode attribute,.

See also
ZCL spec, subclause 6.3.2.2.2.13
Enumerator
ZB_ZCL_THERMOSTAT_SYSTEM_MODE_OFF 

Off value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_AUTO 

Auto value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_COOL 

Cool value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_HEAT 

Heat value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_EMERGENCY_HEATING 

Emergency Heating value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_PRECOOLING 

Precooling value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_FAN_ONLY 

Fan Only value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_DRY 

Dry value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_SLEEP 

Sleep value

ZB_ZCL_THERMOSTAT_SYSTEM_MODE_RESERVED 

Unknown system mode value

◆ zb_zcl_thermostat_temperature_setpoint_hold_e

Values for Temperature Setpoint Hold attribute,.

See also
ZCL spec, subclause 6.3.2.2.3.4
Enumerator
ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_OFF 

Off value

ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_ON 

On value

Function Documentation

◆ zb_zcl_thermostat_init()

void zb_zcl_thermostat_init ( void  )

Thermostat initialization function initialize setpoint mode, schedule table

ZB_ZCL_ATTR_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_ID
The MinCoolSetpointLimit attribute specifies the minimum level that the cooling setpoint MAY be set t...
Definition: zb_zcl_thermostat.h:105
ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID
@ ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_ID
Local Temperature attribute.
Definition: zb_zcl_thermostat.h:58
ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID
The MaxHeatSetpointLimit attribute specifies the maximum level that the heating setpoint MAY be set t...
Definition: zb_zcl_thermostat.h:102
ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID
@ ZB_ZCL_ATTR_THERMOSTAT_START_OF_WEEK_ID
Start of Week attribute.
Definition: zb_zcl_thermostat.h:125
ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_ID
The AbsMaxHeatSetpointLimit attribute specifies the absolute maximum level that the heating setpoint ...
Definition: zb_zcl_thermostat.h:70
ZB_ZCL_ATTR_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_ID
The MaxCoolSetpointLimit attribute specifies the maximum level that the cooling setpoint MAY be set t...
Definition: zb_zcl_thermostat.h:108
ZB_ZCL_ATTR_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_ID
The MinHeatSetpointLimit attribute specifies the minimum level that the heating setpoint MAY be set t...
Definition: zb_zcl_thermostat.h:99
ZB_ZCL_ATTR_THERMOSTAT_PI_HEATING_DEMAND_ID
@ ZB_ZCL_ATTR_THERMOSTAT_PI_HEATING_DEMAND_ID
The PIHeatingDemand attribute is 8 bits in length and specifies the level of heating demanded by the ...
Definition: zb_zcl_thermostat.h:83
ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_ID
The AbsMinHeatSetpointLimit attribute specifies the absolute minimum level that the heating setpoint ...
Definition: zb_zcl_thermostat.h:67
ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_ID
The AbsMaxCoolSetpointLimit attribute specifies the absolute maximum level that the cooling setpoint ...
Definition: zb_zcl_thermostat.h:76
ZB_ZCL_ATTR_THERMOSTAT_PI_COOLING_DEMAND_ID
@ ZB_ZCL_ATTR_THERMOSTAT_PI_COOLING_DEMAND_ID
The PICoolingDemand attribute is 8 bits in length and specifies the level of cooling demanded by the ...
Definition: zb_zcl_thermostat.h:80
ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_ID
Occupied Cooling Setpoint attribute.
Definition: zb_zcl_thermostat.h:90
ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_ID
Occupied Heating Setpoint attribute.
Definition: zb_zcl_thermostat.h:92
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION
#define ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attrs_desc_name, cluster_name)
Start declaration of attributes list with cluster revision.
Definition: zb_zcl_common.h:785
ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID
@ ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID
System Mode attribute.
Definition: zb_zcl_thermostat.h:119
ZB_ZCL_ATTR_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_ID
@ ZB_ZCL_ATTR_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_ID
The HVACSystemTypeConfiguration attribute specifies the HVAC system type controlled by the thermostat...
Definition: zb_zcl_thermostat.h:86
ZB_ZCL_ATTR_THERMOSTAT_REMOTE_SENSING_ID
@ ZB_ZCL_ATTR_THERMOSTAT_REMOTE_SENSING_ID
The RemoteSensing attribute is an 8-bit bitmap that specifies whether the local temperature,...
Definition: zb_zcl_thermostat.h:115
ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID
@ ZB_ZCL_ATTR_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_ID
Control Sequence Of Operation attribute.
Definition: zb_zcl_thermostat.h:117
ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_ID
Unoccupied Cooling Setpoint attribute.
Definition: zb_zcl_thermostat.h:94
ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID
@ ZB_ZCL_ATTR_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_ID
Local Temperature Calibration.
Definition: zb_zcl_thermostat.h:88
ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_ID
Unoccupied Heating Setpoint attribute.
Definition: zb_zcl_thermostat.h:96
ZB_ZCL_ATTR_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_ID
@ ZB_ZCL_ATTR_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_ID
The MinSetpointDeadBand attribute specifies the minimum difference between the Heat Setpoint and the ...
Definition: zb_zcl_thermostat.h:111
ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_ID
@ ZB_ZCL_ATTR_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_ID
The AbsMinCoolSetpointLimit attribute specifies the absolute minimum level that the cooling setpoint ...
Definition: zb_zcl_thermostat.h:73