Logo
Developing with ZBOSS for Zigbee
zb_zcl_thermostat.h File Reference

Macros

#define ZB_ZCL_CLUSTER_ID_THERMOSTAT_SERVER_ROLE_INIT   zb_zcl_thermostat_init_server
 
#define ZB_ZCL_CLUSTER_ID_THERMOSTAT_CLIENT_ROLE_INIT   zb_zcl_thermostat_init_client
 

Enumerations

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...
 

Functions

void zb_zcl_thermostat_init (void)
 
zb_uint8_t zb_zcl_thermostat_get_current_day_of_week (zb_uint8_t start_of_week)
 
void zb_zcl_thermostat_init_server (void)
 
void zb_zcl_thermostat_init_client (void)
 

Thermostat cluster attributes

#define ZB_ZCL_THERMOSTAT_CLUSTER_REVISION_DEFAULT   ((zb_uint16_t)0x0003u)
 Default value for Thermostat cluster revision global attribute. More...
 
#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. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for Local Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OUTDOOR_TEMPERATURE_MIN_VALUE   0x954d
 Min value for Outdoor Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OUTDOOR_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for Outdoor Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_INVALID   ZB_ZCL_NON_VALUE_INT16
 Invalid value for Local Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_DEFAULT_VALUE   0xffff
 Default value for Local Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_MIN_VALUE   0xe7
 Min value for Local Temperature Calibration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_MAX_VALUE   0x19
 Max value for Local Temperature Calibration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_DEFAULT_VALUE   0x0a28
 Default value for Occupied Cooling Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_MIN_VALUE   0x954d
 Min value for Occupied Cooling Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_COOLING_SETPOINT_MAX_VALUE   0x7fff
 Max value for Occupied Cooling Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_DEFAULT_VALUE   0x07d0
 Default value for Occupied Heating Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_MIN_VALUE   0x954d
 Min value for Occupied Heating Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_HEATING_SETPOINT_MAX_VALUE   0x7fff
 Max value for Occupied Heating Setpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_MIN_VALUE   0x0a
 Min value for Min Setpoint Dead Band attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_MAX_VALUE   0x19
 Max value for Min Setpoint Dead Band attribute. More...
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_LOCAL_TEMPERATURE_SENSED_REMOTELY_BIT   (1<<0)
 Local Temperature Sensed Remotely bit of Remote Sensing attribute. More...
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_OUTDOOR_TEMPERATURE_SENSED_REMOTELY_BIT   (1<<1)
 Outdoor Temperature Sensed Remotely bit of Remote Sensing attribute. More...
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_OCCUPANCY_SENSED_REMOTELY_BIT   (1<<2)
 Occupancy Sensed Sensed Remotely bit of Remote Sensing attribute. More...
 
#define ZB_ZCL_THERMOSTAT_CONTROL_SEQ_OF_OPERATION_DEFAULT_VALUE   0x04
 Default value for Control Sequence Of Operation attribute. More...
 
#define ZB_ZCL_THERMOSTAT_CONTROL_SYSTEM_MODE_DEFAULT_VALUE   0x01
 Default value for System Mode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPANCY_DEFAULT_VALUE   ((zb_uint8_t)1U)
 Default value for Occupancy attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPANCY_BITMASK   ((zb_uint8_t)0x01)
 Bitmask for Occupancy attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ABS_MIN_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x02BC)
 Default value for AbsMinHeatSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ABS_MAX_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0BB8)
 Default value for AbsMaxHeatSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ABS_MIN_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0640)
 Default value for AbsMinCoolSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ABS_MAX_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0C80)
 Default value for AbsMaxCoolSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_PI_COOLING_DEMAND_MIN_VALUE   ((zb_uint8_t)0x00)
 Min value for PICoolingDemand attribute. More...
 
#define ZB_ZCL_THERMOSTAT_PI_COOLING_DEMAND_MAX_VALUE   ((zb_uint8_t)0x64)
 Max value for PICoolingDemand attribute. More...
 
#define ZB_ZCL_THERMOSTAT_PI_HEATING_DEMAND_MIN_VALUE   ((zb_uint8_t)0x00)
 Min value for PIHeatingDemand attribute. More...
 
#define ZB_ZCL_THERMOSTAT_PI_HEATING_DEMAND_MAX_VALUE   ((zb_uint8_t)0x64)
 Max value for PIHeatingDemand attribute. More...
 
#define ZB_ZCL_THERMOSTAT_HVAC_SYSTEM_TYPE_CONFIGURATION_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for HVACSystemTypeConfiguration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_LOCAL_TEMPERATURE_CALIBRATION_DEFAULT_VALUE   ((zb_int8_t)0x00)
 Default value for LocalTemperatureCalibration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_COOLING_SETPOINT_DEFAULT_VALUE   ((zb_int16_t)0x0A28)
 Default value for UnoccupiedCoolingSetpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_HEATING_SETPOINT_DEFAULT_VALUE   ((zb_int16_t)0x07D0)
 Default value for UnoccupiedHeatingSetpoint attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MIN_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x02BC)
 Default value for MinHeatSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0BB8)
 Default value for MaxHeatSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MIN_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0640)
 Default value for MinCoolSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MAX_COOL_SETPOINT_LIMIT_DEFAULT_VALUE   ((zb_int16_t)0x0C80)
 Default value for MaxCoolSetpointLimit attribute. More...
 
#define ZB_ZCL_THERMOSTAT_MIN_SETPOINT_DEAD_BAND_DEFAULT_VALUE   ((zb_int8_t)0x19)
 Default value for MinSetpointDeadBand attribute. More...
 
#define ZB_ZCL_THERMOSTAT_REMOTE_SENSING_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for RemoteSensing attribute. More...
 
#define ZB_ZCL_THERMOSTAT_CONTROL_SEQUENCE_OF_OPERATION_DEFAULT_VALUE   ((zb_uint8_t)0x04)
 Default value for ControlSequenceOfOperation attribute. More...
 
#define ZB_ZCL_THERMOSTAT_SYSTEM_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x01)
 Default value for SystemMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for AlarmMask attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for RunningMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_OFF_VALUE   ((zb_uint8_t)0x00)
 Off value for RunningMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_COOL_VALUE   ((zb_uint8_t)0x03)
 Cool value for RunningMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNING_MODE_HEAT_VALUE   ((zb_uint8_t)0x04)
 Heat value for RunningMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for TemperatureSetpointHold attribute. More...
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_DEFAULT_VALUE   ((zb_uint16_t)0xFFFF)
 Default value for TemperatureSetpointHoldDuration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_MIN_VALUE   ((zb_uint16_t)0x0000)
 Min value for TemperatureSetpointHoldDuration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_TEMPERATURE_SETPOINT_HOLD_DURATION_MAX_VALUE   ((zb_uint16_t)0x05a0)
 Max value for TemperatureSetpointHoldDuration attribute. More...
 
#define ZB_ZCL_THERMOSTAT_THERMOSTAT_PROGRAMMING_OPERATION_MODE_DEFAULT_VALUE   ((zb_uint8_t)0)
 Default value for ThermostatProgrammingOperationMode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_SOURCE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for SetpointChangeSource attribute. More...
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_AMOUNT_DEFAULT_VALUE   ((zb_int16_t)0x8000)
 Default value for SetpointChangeAmount attribute. More...
 
#define ZB_ZCL_THERMOSTAT_SETPOINT_CHANGE_SOURCE_TIMESTAMP_DEFAULT_VALUE   ((zb_time_t)0x00000000)
 Default value for SetpointChangeSourceTimestamp attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetback attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_MIN_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetbackMin attribute. More...
 
#define ZB_ZCL_THERMOSTAT_OCCUPIED_SETBACK_MAX_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for OccupiedSetbackMax attribute. More...
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetback attribute. More...
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_MIN_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetbackMin attribute. More...
 
#define ZB_ZCL_THERMOSTAT_UNOCCUPIED_SETBACK_MAX_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for UnoccupiedSetbackMax attribute. More...
 
#define ZB_ZCL_THERMOSTAT_EMERGENCY_HEAT_DELTA_DEFAULT_VALUE   ((zb_uint8_t)0xFF)
 Default value for EmergencyHeatDelta attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_TYPE_DEFAULT_VALUE
 Unknown value for ACType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_COOLING_AND_FIXED_SPEED_VALUE   ((zb_uint8_t)0x01)
 Cooling and Fixed Speed value for ACType attribute. More...
 
#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. More...
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_COOLING_AND_INVERTER_VALUE   ((zb_uint8_t)0x03)
 Cooling and Inverter value for ACType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_TYPE_HEAT_PUMP_AND_INVERTER_VALUE   ((zb_uint8_t)0x04)
 Heat Pump and Inverter value value for ACType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_CAPACITY_DEFAULT_VALUE   ((zb_uint16_t)0x0000)
 Default value for ACCapacity attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACRefrigerantType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_DEFAULT_VALUE
 Unknown value for ACRefrigerantType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R22_VALUE   ((zb_uint8_t)0x01)
 R22 value for ACRefrigerantType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R410A_VALUE   ((zb_uint8_t)0x02)
 R410a value for ACRefrigerantType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_REFRIGERANT_TYPE_R407C_VALUE   ((zb_uint8_t)0x03)
 R407c value for ACRefrigerantType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACCompressorType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_UNKNOWN_VALUE   ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_DEFAULT_VALUE
 Unknown value for ACCompressorType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T1_VALUE   ((zb_uint8_t)0x01)
 T1(Max working ambient 43 ºC) value for ACCompressorType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T2_VALUE   ((zb_uint8_t)0x02)
 T2(Max working ambient 35 ºC) value for ACCompressorType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COMPRESSOR_TYPE_T3_VALUE   ((zb_uint8_t)0x03)
 T3(Max working ambient 52 ºC) value for ACCompressorType attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_DEFAULT_VALUE   ((zb_uint32_t)0x00000000)
 Default value for ACErrorCode attribute. More...
 
#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. More...
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_ROOM_TEMPERATURE_SENSOR_FAILURE_BIT   (1<<1)
 Room Temperature Sensor Failure bit of AC Error Code attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_OUTDOOR_TEMPERATURE_SENSOR_FAILURE_BIT   (1<<2)
 Outdoor Temperature Sensor Failure bit of AC Error Code attribute. More...
 
#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. More...
 
#define ZB_ZCL_THERMOSTAT_AC_ERROR_CODE_FAN_FAILURE_BIT   (1<<4)
 Fan Failure bit of AC Error Code attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_DEFAULT_VALUE   ((zb_uint8_t)0x00)
 Default value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_FULLY_CLOSED_VALUE   ((zb_uint8_t)0x01)
 Fully Closed value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_FULLY_OPEN_VALUE   ((zb_uint8_t)0x02)
 Fully Open value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_QUARTER_OPEN_VALUE   ((zb_uint8_t)0x03)
 Quarter Open value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_THREE_QUARTERS_OPEN_VALUE   ((zb_uint8_t)0x05)
 Three Quarters Open value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_LOUVER_POSITION_HALF_OPEN_VALUE   ((zb_uint8_t)0x04)
 Half Open value for ACLouverPosition attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COIL_TEMPERATURE_MIN_VALUE   0x954d
 Min value for AC Coil Temperature attribute. More...
 
#define ZB_ZCL_THERMOSTAT_AC_COIL_TEMPERATURE_MAX_VALUE   0x7fff
 Max value for AC Coil Temperature 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. 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_ALARM_MASK_INITIALIZATION_FAILURE_BIT   (1<<0)
 Initialization failure bit of Alarm Mask attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_HARDWARE_FAILURE_BIT   (1<<1)
 Hardware Failure bit of Alarm Mask attribute. More...
 
#define ZB_ZCL_THERMOSTAT_ALARM_MASK_SELFCALIBRATION_FAILURE_BIT   (1<<2)
 Self-Calibration Failure bit of Alarm Mask attribute. More...
 
#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. More...
 
#define ZB_ZCL_THERMOSTAT_PROGRAMMING_OPERATION_MODE_AUTO_RECOVERY_MODE_BIT   (1<<1)
 Auto/recovery mode bit of Thermostat Programming Operation Mode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_PROGRAMMING_OPERATION_MODE_ECONOMY_ENERGY_STAR_MODE_BIT   (1<<2)
 Economy/EnergyStar mode bit of Thermostat Programming Operation Mode attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_HEAT_STATE_ON_BIT   (1<<0)
 Heat State On bit of Thermostat Running State attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_COOL_STATE_ON_BIT   (1<<1)
 Cool State On bit of Thermostat Running State attribute. More...
 
#define ZB_ZCL_THERMOSTAT_RUNNNING_STATE_FAN_STATE_ON_BIT   (1<<2)
 Fan State On bit of Thermostat Running State attribute. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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. More...
 
#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...
 
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. More...
 
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...
 

Macro Definition Documentation

§ ZB_ZCL_CLUSTER_ID_THERMOSTAT_CLIENT_ROLE_INIT

#define ZB_ZCL_CLUSTER_ID_THERMOSTAT_CLIENT_ROLE_INIT   zb_zcl_thermostat_init_client

§ ZB_ZCL_CLUSTER_ID_THERMOSTAT_SERVER_ROLE_INIT

#define ZB_ZCL_CLUSTER_ID_THERMOSTAT_SERVER_ROLE_INIT   zb_zcl_thermostat_init_server

Function Documentation

§ zb_zcl_thermostat_get_current_day_of_week()

zb_uint8_t zb_zcl_thermostat_get_current_day_of_week ( zb_uint8_t  start_of_week)

§ zb_zcl_thermostat_init_client()

void zb_zcl_thermostat_init_client ( void  )

§ zb_zcl_thermostat_init_server()

void zb_zcl_thermostat_init_server ( void  )