Functions | |
| void | zb_zcl_thermostat_init (void) |
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_LISTLocal Temperature Calibration. Definition: zb_zcl_thermostat.h:107
Occupied Cooling Setpoint attribute. Definition: zb_zcl_thermostat.h:109
Local Temperature attribute. Definition: zb_zcl_thermostat.h:77
Control Sequence Of Operation attribute. Definition: zb_zcl_thermostat.h:136
Occupied Heating Setpoint attribute. Definition: zb_zcl_thermostat.h:111
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_LISTThe MaxCoolSetpointLimit attribute specifies the maximum level that the cooling setpoint MAY be set t...Definition: zb_zcl_thermostat.h:127
The AbsMaxHeatSetpointLimit attribute specifies the absolute maximum level that the heating setpoint ...Definition: zb_zcl_thermostat.h:89
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. Definition: zb_zcl_thermostat.h:134
The MinSetpointDeadBand attribute specifies the minimum difference between the Heat Setpoint and the ...Definition: zb_zcl_thermostat.h:130
The MinCoolSetpointLimit attribute specifies the minimum level that the cooling setpoint MAY be set t...Definition: zb_zcl_thermostat.h:124
The MinHeatSetpointLimit attribute specifies the minimum level that the heating setpoint MAY be set t...Definition: zb_zcl_thermostat.h:118
Local Temperature Calibration. Definition: zb_zcl_thermostat.h:107
Occupied Cooling Setpoint attribute. Definition: zb_zcl_thermostat.h:109
The PICoolingDemand attribute is 8 bits in length and specifies the level of cooling demanded by the ...Definition: zb_zcl_thermostat.h:99
Local Temperature attribute. Definition: zb_zcl_thermostat.h:77
The PIHeatingDemand attribute is 8 bits in length and specifies the level of heating demanded by the ...Definition: zb_zcl_thermostat.h:102
The HVACSystemTypeConfiguration attribute specifies the HVAC system type controlled by the thermostat...Definition: zb_zcl_thermostat.h:105
The AbsMaxCoolSetpointLimit attribute specifies the absolute maximum level that the cooling setpoint ...Definition: zb_zcl_thermostat.h:95
Control Sequence Of Operation attribute. Definition: zb_zcl_thermostat.h:136
The AbsMinHeatSetpointLimit attribute specifies the absolute minimum level that the heating setpoint ...Definition: zb_zcl_thermostat.h:86
Unoccupied Heating Setpoint attribute. Definition: zb_zcl_thermostat.h:115
Occupied Heating Setpoint attribute. Definition: zb_zcl_thermostat.h:111
The AbsMinCoolSetpointLimit attribute specifies the absolute minimum level that the cooling setpoint ...Definition: zb_zcl_thermostat.h:92
Unoccupied Cooling Setpoint attribute. Definition: zb_zcl_thermostat.h:113
The MaxHeatSetpointLimit attribute specifies the maximum level that the heating setpoint MAY be set t...Definition: zb_zcl_thermostat.h:121
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
◆ zb_zcl_thermostat_attr_e
Thermostat cluster attribute identifiers.
- See also
- ZCL spec, subclause 6.3.2.2
◆ zb_zcl_thermostat_cmd_e
Thermostat cluster command identifiers.
- See also
- ZCL spec, subclause 6.3.2.3
◆ zb_zcl_thermostat_cmd_resp_ha_e
◆ 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
◆ zb_zcl_thermostat_programming_operation_mode_bit_e
◆ zb_zcl_thermostat_start_of_week_e
Values for Start of Week attribute,.
- See also
- ZCL spec, subclause 6.3.2.2.3.1
◆ zb_zcl_thermostat_system_mode_e
Values for System Mode attribute,.
- See also
- ZCL spec, subclause 6.3.2.2.2.13
◆ zb_zcl_thermostat_temperature_setpoint_hold_e
Function Documentation
◆ zb_zcl_thermostat_init()
| void zb_zcl_thermostat_init | ( | void | ) |
Thermostat initialization function initialize setpoint mode, schedule table