ZCL Command API

Zigbee Cluster Library (ZCL) command related APIs for ESP Zigbee SDK.

Header File

Functions

uint8_t esp_zb_zcl_read_attr_cmd_req(esp_zb_zcl_read_attr_cmd_t *cmd_req)

Send read attribute command.

Parameters

cmd_req[in] pointer to the read_attribute command esp_zb_zcl_read_attr_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_write_attr_cmd_req(esp_zb_zcl_write_attr_cmd_t *cmd_req)

Send write attribute command.

Parameters

cmd_req[in] pointer to the write attribute command esp_zb_zcl_write_attr_cmd_s

Returns

The transaction sequence number

esp_err_t esp_zb_zcl_report_attr_cmd_req(esp_zb_zcl_report_attr_cmd_t *cmd_req)

Send report attribute command.

Note

Currently it supports ZCL specs defined attributes with type 8,16,32,64 bit or string.

Parameters

cmd_req[in] pointer to the report attribute command esp_zb_zcl_report_attr_cmd_s

Returns

- ESP_OK on success

uint8_t esp_zb_zcl_config_report_cmd_req(esp_zb_zcl_config_report_cmd_t *cmd_req)

Send config report command.

Parameters

cmd_req[in] pointer to the config report command esp_zb_zcl_config_report_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_disc_attr_cmd_req(esp_zb_zcl_disc_attr_cmd_t *cmd_req)

Send discover attributes command.

Parameters

cmd_req[in] pointer to the discover attributes command esp_zb_zcl_disc_attr_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_basic_factory_reset_cmd_req(esp_zb_zcl_basic_fact_reset_cmd_t *cmd_req)

Send ZCL basic reset to factory default command.

Parameters

cmd_req[in] pointer to the basic command esp_zb_zcl_basic_fact_reset_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_on_off_cmd_req(esp_zb_zcl_on_off_cmd_t *cmd_req)

Send on-off command.

Parameters

cmd_req[in] pointer to the on-off command esp_zb_zcl_on_off_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_on_off_off_with_effect_cmd_req(esp_zb_zcl_on_off_off_with_effect_cmd_t *cmd_req)

Send on-off Off With Effect command.

Note

The Off With Effect command allows devices to be turned off using enhanced ways of fading

Parameters

cmd_req[in] pointer to the on-off off with effect command esp_zb_zcl_on_off_off_with_effect_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_req(esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_t *cmd_req)

Send on-off On With Recall Global Scene command.

Note

The On With Recall Global Scene command allows the recall of the settings when the device was turned off.

Parameters

cmd_req[in] pointer to the on-off on with recall global scene command esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_on_off_on_with_timed_off_cmd_req(esp_zb_zcl_on_off_on_with_timed_off_cmd_t *cmd_req)

Send on-off On With Timed Off command.

Note

The On With Timed Off command allows devices to be turned on for a specific duration with a guarded off duration so that SHOULD the device be subsequently switched off.

Parameters

cmd_req[in] pointer to the on-off on with timed off command esp_zb_zcl_on_off_on_with_timed_off_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_identify_cmd_req(esp_zb_zcl_identify_cmd_t *cmd_req)

Send identify command.

Parameters

cmd_req[in] pointer to the identify command esp_zb_zcl_identify_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_identify_trigger_effect_cmd_req(esp_zb_zcl_identify_trigger_effect_cmd_t *cmd_req)

Send identify trigger effect command.

Parameters

cmd_req[in] pointer to the identify trigger variant command refer to esp_zb_zcl_identify_trigger_variant_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_identify_query_cmd_req(esp_zb_zcl_identify_query_cmd_t *cmd_req)

Send identify query command.

Parameters

cmd_req[in] pointer to the identify query command esp_zb_zcl_identify_query_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_comm_restart_device_cmd_req(esp_zb_zcl_comm_restart_device_cmd_t *cmd_req)

Send commissioning restart device command.

Parameters

cmd_req[in] pointer to the commissioning restart device command esp_zb_zcl_comm_restart_device_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_comm_save_startup_params_cmd_req(esp_zb_zcl_comm_save_startup_params_cmd_t *cmd_req)

Send commissioning save startup parameters command.

Parameters

cmd_req[in] pointer to the commissioning save startup parameters command esp_zb_zcl_comm_save_startup_params_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_comm_restore_startup_params_cmd_req(esp_zb_zcl_comm_restore_startup_params_cmd_t *cmd_req)

Send commissioning restore startup parameters command.

Parameters

cmd_req[in] pointer to the commissioning restore startup parameters command esp_zb_zcl_comm_restore_startup_params_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_comm_reset_startup_params_cmd_req(esp_zb_zcl_comm_reset_startup_params_cmd_t *cmd_req)

Send commissioning reset startup parameters command.

Parameters

cmd_req[in] pointer to the commissioning reset startup parameters command esp_zb_zcl_comm_reset_startup_params_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_move_to_level_cmd_req(esp_zb_zcl_move_to_level_cmd_t *cmd_req)

Send move to level command.

Parameters

cmd_req[in] pointer to the move to level command esp_zb_zcl_move_to_level_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_move_to_level_with_onoff_cmd_req(esp_zb_zcl_move_to_level_cmd_t *cmd_req)

Send move to level with on/off effect command.

Parameters

cmd_req[in] pointer to the move to level command esp_zb_zcl_move_to_level_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_move_cmd_req(esp_zb_zcl_level_move_cmd_t *cmd_req)

Send move level command.

Parameters

cmd_req[in] pointer to the move level command esp_zb_zcl_level_move_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_move_with_onoff_cmd_req(esp_zb_zcl_level_move_cmd_t *cmd_req)

Send move level with on/off effect command.

Parameters

cmd_req[in] pointer to the move level command esp_zb_zcl_level_move_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_step_cmd_req(esp_zb_zcl_level_step_cmd_t *cmd_req)

Send step level command.

Parameters

cmd_req[in] pointer to the step level command esp_zb_zcl_level_step_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_step_with_onoff_cmd_req(esp_zb_zcl_level_step_cmd_t *cmd_req)

Send step level with on/off effect command.

Parameters

cmd_req[in] pointer to the step level command esp_zb_zcl_level_step_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_level_stop_cmd_req(esp_zb_zcl_level_stop_cmd_t *cmd_req)

Send stop level command.

Parameters

cmd_req[in] pointer to the stop level command esp_zb_zcl_level_stop_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_to_hue_cmd_req(esp_zb_zcl_color_move_to_hue_cmd_t *cmd_req)

Send color move to hue command.

Parameters

cmd_req[in] pointer to the move to hue command esp_zb_zcl_color_move_to_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_hue_cmd_req(esp_zb_zcl_color_move_hue_cmd_t *cmd_req)

Send color move hue command.

Parameters

cmd_req[in] pointer to the move hue command esp_zb_zcl_color_move_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_step_hue_cmd_req(esp_zb_zcl_color_step_hue_cmd_t *cmd_req)

Send color step hue command.

Parameters

cmd_req[in] pointer to the step hue command esp_zb_zcl_color_step_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_to_saturation_cmd_req(esp_zb_zcl_color_move_to_saturation_cmd_t *cmd_req)

Send color move to saturation command.

Parameters

cmd_req[in] pointer to the move to saturation command esp_zb_zcl_color_move_to_saturation_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_saturation_cmd_req(esp_zb_zcl_color_move_saturation_cmd_t *cmd_req)

Send color move saturation command.

Parameters

cmd_req[in] pointer to the move saturation command esp_zb_zcl_color_move_saturation_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_step_saturation_cmd_req(esp_zb_zcl_color_step_saturation_cmd_t *cmd_req)

Send color step saturation command.

Parameters

cmd_req[in] pointer to the step saturation command esp_zb_zcl_color_step_saturation_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_to_hue_and_saturation_cmd_req(esp_zb_color_move_to_hue_saturation_cmd_t *cmd_req)

Send color move to hue and saturation command.

Parameters

cmd_req[in] pointer to the move to hue and saturation command esp_zb_color_move_to_hue_saturation_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_to_color_cmd_req(esp_zb_zcl_color_move_to_color_cmd_t *cmd_req)

Send color move to color command.

Parameters

cmd_req[in] pointer to the move to color command esp_zb_zcl_color_move_to_color_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_color_cmd_req(esp_zb_zcl_color_move_color_cmd_t *cmd_req)

Send color move color command.

Parameters

cmd_req[in] pointer to the move color command esp_zb_zcl_color_move_color_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_step_color_cmd_req(esp_zb_zcl_color_step_color_cmd_t *cmd_req)

Send color step color command.

Parameters

cmd_req[in] pointer to the step color command esp_zb_zcl_color_step_color_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_stop_move_step_cmd_req(esp_zb_zcl_color_stop_move_step_cmd_t *cmd_req)

Send color stop color command.

Parameters

cmd_req[in] pointer to the stop color command esp_zb_zcl_color_stop_move_step_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_to_color_temperature_cmd_req(esp_zb_zcl_color_move_to_color_temperature_cmd_t *cmd_req)

Send color control move to color temperature command(0x0a)

Parameters

cmd_req[in] pointer to the move to color temperature command esp_zb_zcl_color_move_to_color_temperature_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_enhanced_move_to_hue_cmd_req(esp_zb_zcl_color_enhanced_move_to_hue_cmd_t *cmd_req)

Send color control enhanced move to hue command(0x40)

Parameters

cmd_req[in] pointer to the enhanced move to hue command esp_zb_zcl_color_enhanced_move_to_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_enhanced_move_hue_cmd_req(esp_zb_zcl_color_enhanced_move_hue_cmd_t *cmd_req)

Send color control enhanced move hue command(0x41)

Parameters

cmd_req[in] pointer to the enhanced move hue command esp_zb_zcl_color_enhanced_move_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_enhanced_step_hue_cmd_req(esp_zb_zcl_color_enhanced_step_hue_cmd_t *cmd_req)

Send color control enhanced step hue command(0x42)

Parameters

cmd_req[in] pointer to the enhanced step hue command esp_zb_zcl_color_enhanced_step_hue_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_req(esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_t *cmd_req)

Send color control move to hue and saturation command(0x43)

Parameters

cmd_req[in] pointer to the enhanced move to hue saturation command esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_color_loop_set_cmd_req(esp_zb_zcl_color_color_loop_set_cmd_t *cmd_req)

Send color control color loop set command(0x44)

Parameters

cmd_req[in] pointer to the color loop set command esp_zb_zcl_color_color_loop_set_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_move_color_temperature_cmd_req(esp_zb_zcl_color_move_color_temperature_cmd_t *cmd_req)

Send color control move color temperature command(0x4b)

Parameters

cmd_req[in] pointer to the move color temperature command esp_zb_zcl_color_move_color_temperature_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_color_step_color_temperature_cmd_req(esp_zb_zcl_color_step_color_temperature_cmd_t *cmd_req)

Send color control step color temperature command(0x4c)

Parameters

cmd_req[in] pointer to the step color temperature command esp_zb_zcl_color_step_color_temperature_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_lock_door_cmd_req(esp_zb_zcl_lock_unlock_door_cmd_t *cmd_req)

Send lock door command.

Parameters

cmd_req[in] pointer to the unlock door command esp_zb_zcl_lock_unlock_door_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_unlock_door_cmd_req(esp_zb_zcl_lock_unlock_door_cmd_t *cmd_req)

Send unlock door command.

Parameters

cmd_req[in] pointer to the unlock door command esp_zb_zcl_lock_unlock_door_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_groups_add_group_cmd_req(esp_zb_zcl_groups_add_group_cmd_t *cmd_req)

Send add group command.

Parameters

cmd_req[in] pointer to the add group command esp_zb_zcl_groups_add_group_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_groups_remove_group_cmd_req(esp_zb_zcl_groups_add_group_cmd_t *cmd_req)

Send remove group command.

Parameters

cmd_req[in] pointer to the add group command esp_zb_zcl_groups_add_group_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_groups_remove_all_groups_cmd_req(esp_zb_zcl_groups_remove_all_groups_cmd_t *cmd_req)

Send remove all groups command.

Parameters

cmd_req[in] pointer to the remove all group command esp_zb_zcl_groups_remove_all_groups_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_groups_view_group_cmd_req(esp_zb_zcl_groups_add_group_cmd_t *cmd_req)

Send view group command.

Parameters

cmd_req[in] pointer to the add group command esp_zb_zcl_groups_add_group_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_groups_get_group_membership_cmd_req(esp_zb_zcl_groups_get_group_membership_cmd_t *cmd_req)

Send get group membership command.

Parameters

cmd_req[in] pointer to the get group membership command esp_zb_zcl_groups_get_group_membership_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_add_scene_cmd_req(esp_zb_zcl_scenes_add_scene_cmd_t *cmd_req)

Send add scene command.

Parameters

cmd_req[in] pointer to the add scene command esp_zb_zcl_scenes_add_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_remove_scene_cmd_req(esp_zb_zcl_scenes_remove_scene_cmd_t *cmd_req)

Send remove scene command.

Parameters

cmd_req[in] pointer to the remove scene command esp_zb_zcl_scenes_remove_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_remove_all_scenes_cmd_req(esp_zb_zcl_scenes_remove_all_scenes_cmd_t *cmd_req)

Send remove all scenes command.

Parameters

cmd_req[in] pointer to the add scenes command esp_zb_zcl_scenes_remove_all_scenes_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_view_scene_cmd_req(esp_zb_zcl_scenes_view_scene_cmd_t *cmd_req)

Send view scene command.

Parameters

cmd_req[in] pointer to the view scene command esp_zb_zcl_scenes_view_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_store_scene_cmd_req(esp_zb_zcl_scenes_store_scene_cmd_t *cmd_req)

Send store scene command.

Parameters

cmd_req[in] pointer to the store scene command esp_zb_zcl_scenes_store_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_recall_scene_cmd_req(esp_zb_zcl_scenes_recall_scene_cmd_t *cmd_req)

Send recall scene command.

Parameters

cmd_req[in] pointer to the recall scene command esp_zb_zcl_scenes_recall_scene_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_scenes_get_scene_membership_cmd_req(esp_zb_zcl_scenes_get_scene_membership_cmd_t *cmd_req)

Send get scene membership command.

Parameters

cmd_req[in] pointer to the get scene membership command esp_zb_zcl_scenes_get_scene_membership_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_ias_zone_enroll_cmd_resp(esp_zb_zcl_ias_zone_enroll_response_cmd_t *cmd_resp)

Send IAS zone enroll response command.

Note

Type 2 cluster from client to server

Parameters

cmd_resp[in] pointer to the zone enroll response command esp_zb_zcl_ias_zone_enroll_response_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_ias_zone_status_change_notif_cmd_req(esp_zb_zcl_ias_zone_status_change_notif_cmd_t *cmd_req)

Send IAS zone status change notification command.

Note

Type 2 cluster from server to client

Parameters

cmd_req[in] pointer to the ias zone status change notification command esp_zb_zcl_ias_zone_status_change_notif_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_ias_zone_enroll_cmd_req(esp_zb_zcl_ias_zone_enroll_request_cmd_t *cmd_req)

Send IAS zone enroll request command.

Note

Type 2 cluster from server to client

Parameters

cmd_req[in] pointer to the ias zone enroll request command esp_zb_zcl_ias_zone_enroll_request_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_window_covering_cluster_send_cmd_req(esp_zb_zcl_window_covering_cluster_send_cmd_req_t *cmd_req)

Send window covering cluster command request.

Parameters

cmd_req[in] pointer to the send custom cluster command request esp_zb_zcl_window_covering_cluster_send_cmd_req_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_electrical_measurement_cluster_get_profile_info_resp(esp_zb_zcl_electrical_profile_info_cmd_resp_t *cmd_req)

Get electrical measurement cluster profile info response.

Parameters

cmd_req[in] pointer to the send custom cluster command response esp_zb_zcl_electrical_profile_info_cmd_resp_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_electrical_measurement_cluster_get_measurement_profile_resp(esp_zb_zcl_electrical_measurement_profile_cmd_resp_t *cmd_req)

Get electrical measurement cluster measurement profile response.

Parameters

cmd_req[in] pointer to the send custom cluster command response esp_zb_zcl_electrical_measurement_profile_cmd_resp_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_thermostat_setpoint_raise_lower_cmd_req(esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_t *cmd_req)

Send thermostat setpoint raise or lower command request.

Parameters

cmd_req[in] pointer to the setpoint raise or lower command esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_thermostat_set_weekly_schedule_cmd_req(esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_t *cmd_req)

Send thermostat set weekly schedule command request.

Parameters

cmd_req[in] pointer to the set weekly schedule command esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_thermostat_get_weekly_schedule_cmd_req(esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_t *cmd_req)

Send thermostat get weekly schedule command request.

Parameters

cmd_req[in] pointer to the get weekly schedule command esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_thermostat_clear_weekly_schedule_cmd_req(esp_zb_thermostat_clear_weekly_schedule_cmd_t *cmd_req)

Send thermostat clear weekly schedule command request.

Parameters

cmd_req[in] pointer to the clear weekly schedule command esp_zb_thermostat_clear_weekly_schedule_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_thermostat_get_relay_status_log_cmd_req(esp_zb_thermostat_get_relay_status_log_cmd_t *cmd_req)

Send thermostat get relay status log command request.

Parameters

cmd_req[in] pointer to the get relay status log command esp_zb_thermostat_get_relay_status_log_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_metering_get_profile_cmd_req(esp_zb_metering_get_profile_cmd_t *cmd_req)

Send metering get profile command request.

Parameters

cmd_req[in] pointer to the get profile command esp_zb_metering_get_profile_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_metering_request_fast_poll_mode_cmd_req(esp_zb_metering_request_fast_poll_mode_cmd_t *cmd_req)

Send metering request fast poll mode command request.

Parameters

cmd_req[in] pointer to the request fast poll mode command esp_zb_metering_request_fast_poll_mode_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_metering_get_snapshot_cmd_req(esp_zb_metering_get_snapshot_cmd_t *cmd_req)

Send metering get snapshot command request.

Parameters

cmd_req[in] pointer to the get snapshot command esp_zb_metering_get_snapshot_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_metering_get_sampled_data_cmd_req(esp_zb_metering_get_sampled_data_cmd_t *cmd_req)

Send metering get sampled data command request.

Parameters

cmd_req[in] pointer to the get sampled data command esp_zb_metering_get_sampled_data_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_price_get_current_price_cmd_req(esp_zb_zcl_price_get_current_price_cmd_t *cmd_req)

Send price get current price command request.

Parameters

cmd_req[in] pointer to the get current price command esp_zb_zcl_price_get_current_price_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_price_get_scheduled_prices_cmd_req(esp_zb_zcl_price_get_scheduled_prices_cmd_t *cmd_req)

Send price get scheduled prices command request.

Parameters

cmd_req[in] pointer to the get scheduled prices command esp_zb_zcl_price_get_scheduled_prices_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_price_get_tier_labels_cmd_req(esp_zb_zcl_price_get_tier_labels_cmd_t *cmd_req)

Send price get tier labels command request.

Parameters

cmd_req[in] pointer to the get tier labels command esp_zb_zcl_price_get_tier_labels_cmd_s

Returns

The transaction sequence number

uint8_t esp_zb_zcl_custom_cluster_cmd_req(esp_zb_zcl_custom_cluster_cmd_req_t *cmd_req)

Send custom cluster command request.

Parameters

cmd_req[in] pointer to the send custom cluster command request, refer to esp_zb_zcl_custom_cluster_cmd_req_t

Returns

The transaction sequence number

uint8_t esp_zb_zcl_custom_cluster_cmd_resp(esp_zb_zcl_custom_cluster_cmd_resp_t *cmd_req)

Send custom cluster command response.

Note

The custom response should align in the same direction as the custom request when providing a reply.

Parameters

cmd_req[in] pointer to the send custom cluster command request, refer to esp_zb_zcl_custom_cluster_cmd_resp_t

Returns

The transaction sequence number

esp_err_t esp_zb_zcl_custom_cluster_handlers_update(esp_zb_zcl_custom_cluster_handlers_t obj)

Update Zigbee ZCL custom cluster handlers.

Parameters

obj[in] The object of cluster handlers will be updated in the stack if the cluster ID exists; otherwise, it will be added.

Returns

  • ESP_OK: On success

  • ESP_ERR_NO_MEM: Out of memory

  • ESP_ERR_INVALID_ARG: Invalid argument

esp_err_t esp_zb_zcl_start_attr_reporting(esp_zb_zcl_attr_location_info_t attr_info)

Start and enable the attribute reporting.

Parameters

attr_info – The location information of attribute which will be enabled to report

Returns

  • ESP_OK: On success

  • ESP_FAIL: The reporting was not set up with attr_info

esp_err_t esp_zb_zcl_stop_attr_reporting(esp_zb_zcl_attr_location_info_t attr_info)

Stop and disable the attribute reporting.

Parameters

attr_info – The location information of attribute which will be disabled to report

Returns

  • ESP_OK: On success

  • ESP_FAIL: The reporting was not set down with attr_info

esp_zb_zcl_reporting_info_t *esp_zb_zcl_find_reporting_info(esp_zb_zcl_attr_location_info_t attr_info)

Find the attribute reporting information from the device.

Parameters

attr_info – The location information of attribute, which will be utilized for looking up

Returns

  • The result of finding the attribute reporting information

esp_err_t esp_zb_zcl_update_reporting_info(esp_zb_zcl_reporting_info_t *report_info)

Update the attribute report information.

Parameters

report_info – The attribute reporting information that will be updated for the related attribute

Returns

  • ESP_OK: On success

  • ESP_ERR_NOT_FOUND: Not found the attribute

  • ESP_ERR_NO_MEM: Not memory

  • ESP_ERR_INVALID_ARG: Invalid argument

  • ESP_FAIL: On failure

void esp_zb_zcl_reset_all_reporting_info(void)

Reset all reporting information of attributes.

Unions

union esp_zb_zcl_metering_snapshot_sub_payload_s
#include <esp_zigbee_zcl_command.h>

The Zigbee zcl metering snapshot sub-payload struct.

Structures

struct esp_zb_zcl_command_send_status_s

The application message of ZCL command send status message.

Public Members

esp_err_t status

command send status

uint8_t tsn

Transaction sequence number

uint8_t dst_endpoint

Destination endpoint

uint8_t src_endpoint

Source endpoint

esp_zb_zcl_addr_t dst_addr

Destination address

struct esp_zb_zcl_attribute_data_s

The Zigbee zcl cluster attribute value struct.

Public Members

esp_zb_zcl_attr_type_t type

The type of attribute, which can refer to esp_zb_zcl_attr_type_t

uint16_t size

The value size of attribute

void *value

The value of attribute, Note that if the type is string/array, the first byte of value indicates the string length

struct esp_zb_zcl_attribute_s

The Zigbee zcl cluster attribute struct.

Public Members

uint16_t id

The identify of attribute

esp_zb_zcl_attribute_data_t data

The data fo attribute

struct esp_zb_zcl_custom_cluster_handlers_s

The Zigbee zcl custom cluster handlers struct.

Public Members

uint16_t cluster_id

Cluster identifier

uint8_t cluster_role

Cluster role

esp_zb_zcl_cluster_check_value_callback_t check_value_cb

The callback for validating the value from ZCL command

esp_zb_zcl_cluster_write_attr_callback_t write_attr_cb

The callback for validating the ZCL write attribute

struct esp_zb_zcl_command_s

The Zigbee zcl cluster command properties struct.

Public Members

uint8_t id

The command id

uint8_t direction

The command direction

uint8_t is_common

The command is common type

struct esp_zb_zcl_basic_cmd_s

The Zigbee ZCL basic command info.

Public Members

esp_zb_addr_u dst_addr_u

Single short address or group address

uint8_t dst_endpoint

Destination endpoint

uint8_t src_endpoint

Source endpoint

struct esp_zb_zcl_read_attr_cmd_s

The Zigbee ZCL read attribute command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t clusterID

Cluster ID to read

uint8_t attr_number

Number of attribute in the attr_field

uint16_t *attr_field

Attribute identifier field to read

struct esp_zb_zcl_write_attr_cmd_s

The Zigbee ZCL write attribute command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t clusterID

Cluster ID to write

uint8_t attr_number

Number of attribute in the attr_field

esp_zb_zcl_attribute_t *attr_field

Attributes which will be writed, esp_zb_zcl_attribute_s

struct esp_zb_zcl_config_report_record_s

The Zigbee zcl configure report record struct.

Public Members

esp_zb_zcl_cmd_direction_t direction

Direction field specifies whether values of the attribute are to be reported, or whether reports of the attribute are to be received.

uint16_t attributeID

Attribute ID to report

uint8_t attrType

Attribute type to report refer to zb_zcl_common.h zcl_attr_type

uint16_t min_interval

Minimum reporting interval

uint16_t max_interval

Maximum reporting interval

void *reportable_change

Minimum change to attribute will result in report

struct esp_zb_zcl_config_report_cmd_s

The Zigbee ZCL configure report command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t clusterID

Cluster ID to report

uint16_t record_number

Number of report configuration record in the record_field

esp_zb_zcl_config_report_record_t *record_field

Report configuration records, esp_zb_zcl_config_report_record_s

struct esp_zb_zcl_report_attr_cmd_s

The Zigbee ZCL report attribute command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t clusterID

Cluster ID to report

uint8_t cluster_role

Cluster role

uint16_t attributeID

Attribute ID to report

struct esp_zb_zcl_disc_attr_cmd_s

The Zigbee ZCL configure report command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t cluster_id

The cluster identifier for which the attribute is discovered.

uint16_t start_attr_id

The attribute identifier at which to begin the attribute discover

uint8_t max_attr_number

The maximum number of attribute identifiers that are to be returned in the resulting Discover Attributes Response command

esp_zb_zcl_cmd_direction_t direction

The command direction, refer to esp_zb_zcl_cmd_direction_t

struct esp_zb_zcl_basic_fact_reset_cmd_s

The Zigbee ZCL basic reset factory default command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_on_off_cmd_s

The Zigbee ZCL on-off command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t on_off_cmd_id

command id for the on-off cluster command

struct esp_zb_zcl_on_off_off_with_effect_cmd_s

The Zigbee ZCL on-off off with effect command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t effect_id

The field specifies the fading effect to use when switching the device off

uint8_t effect_variant

The field is used to indicate which variant of the effect, indicated in the Effect Identifier field, SHOULD be triggered.

struct esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_s

The Zigbee ZCL on-off on with recall global scene command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_on_off_on_with_timed_off_cmd_s

The Zigbee ZCL on-off on with timed off command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t on_off_control

The field contains information on how the device is to be operated

uint16_t on_time

The field specifies the length of time (in 1/10ths second) that the device is to remain “on”, i.e., with its OnOff attribute equal to 0x01, before automatically turning “off”.

uint16_t off_wait_time

The field specifies the length of time (in 1/10ths second) that the device SHALL remain “off”, i.e., with its OnOff attribute equal to 0x00, and guarded to prevent an on command turning the device back “on”

struct esp_zb_zcl_identify_cmd_s

The Zigbee ZCL identify command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t identify_time

identify itself for specific time

struct esp_zb_zcl_identify_trigger_effect_cmd_s

The Zigbee ZCL identify trigger effect command strcut.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t effect_id

The field specifies the identify effect to use, refer to esp_zb_zcl_identify_trigger_effect_s

uint8_t effect_variant

The field is used to indicate which variant of the effect, indicated in the effect identifier field, SHOULD be triggered

struct esp_zb_zcl_identify_query_cmd_s

The Zigbee ZCL identify query command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_comm_restart_device_cmd_s

The Zigbee ZCL commisssioning restart device command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

esp_zb_zcl_commissioning_restart_device_options_t options

Restart device options

uint8_t delay

Seconds of delay before starting the restart procedure

uint8_t jitter

Parameter to calculate the additional milliseconds should be added to delay

struct esp_zb_zcl_comm_save_startup_params_cmd_s

The Zigbee ZCL commisssioning save startup parameters command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t index

Index to save the parameter set

struct esp_zb_zcl_comm_restore_startup_params_cmd_s

The Zigbee ZCL commisssioning restore startup parameters command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t index

Index of the saved the parameter set to be restored

struct esp_zb_zcl_comm_reset_startup_params_cmd_s

The Zigbee ZCL commisssioning reset startup parameters command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

esp_zb_zcl_commissioning_reset_startup_param_options_t options

Reset startup parameter options

uint8_t index

Index of the saved parameters to be erased

struct esp_zb_zcl_move_to_level_cmd_s

The Zigbee ZCL level move to level command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t level

level wants to move to

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_level_move_cmd_s

The Zigbee ZCL level move command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

move mode either up or down

uint8_t rate

move rate wants to movement in units per second

struct esp_zb_zcl_level_step_cmd_s

The Zigbee ZCL level step command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t step_mode

step mode either up or down

uint8_t step_size

step size wants to change

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_level_stop_cmd_s

The Zigbee ZCL level stop command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_color_move_to_hue_cmd_s

The Zigbee ZCL color move to hue command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t hue

current value of hue

uint8_t direction

direction

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_move_hue_cmd_s

The Zigbee ZCL color move hue command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

move mode

uint8_t rate

rate

struct esp_zb_zcl_color_step_hue_cmd_s

The Zigbee ZCL color step hue command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t step_mode

step mode

uint8_t step_size

step size

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_move_to_saturation_cmd_s

The Zigbee ZCL color move to saturation command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t saturation

current value of saturation

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_move_saturation_cmd_s

The Zigbee ZCL color move saturation command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

move mode

uint8_t rate

rate

struct esp_zb_zcl_color_step_saturation_cmd_s

The Zigbee ZCL color step saturation command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t step_mode

step mode

uint8_t step_size

step size

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_color_move_to_hue_saturation_cmd_s

The Zigbee ZCL color move to hue and saturation command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t hue

current value of hue

uint8_t saturation

current value of saturation

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_move_to_color_cmd_s

The Zigbee ZCL color move to color command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t color_x

current value of chromaticity value x from (0 ~ 1) to (0 ~ 65535)

uint16_t color_y

current value of chromaticity value y from (0 ~ 1) to (0 ~ 65535)

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_move_color_cmd_s

The Zigbee ZCL color move color command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

int16_t rate_x

specifies the rate of movement in steps per second of color x

int16_t rate_y

specifies the rate of movement in steps per second of color y

struct esp_zb_zcl_color_step_color_cmd_s

The Zigbee ZCL color step color command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

int16_t step_x

specifies the change to be added to color x

int16_t step_y

specifies the change to be added to color x

uint16_t transition_time

time wants to transition tenths of a second

struct esp_zb_zcl_color_stop_move_step_cmd_s

The Zigbee ZCL color stop command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_color_move_to_color_temperature_cmd_s

The Zigbee ZCL color move to color temperature command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t color_temperature

The field indicates the color-temperature value

uint16_t transition_time

The time wants to transition tenths of a second

struct esp_zb_zcl_color_enhanced_move_to_hue_cmd_s

The Zigbee ZCL color enhanced move to hue command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t enhanced_hue

The field specifies the target enhanced hue for the lamp

uint8_t direction

The direction

uint16_t transition_time

The time wants to transition tenths of a second

struct esp_zb_zcl_color_enhanced_move_hue_cmd_s

The Zigbee ZCL color enhanced move hue.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

The Move Mode, If the Move Mode field is equal to 0x00 (Stop), the Rate field SHALL be ignored

uint16_t rate

The field specifies the rate of movement in steps per second

struct esp_zb_zcl_color_enhanced_step_hue_cmd_s

The Zigbee ZCL color enhanced step hue command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t step_mode

The Step Mode

uint16_t step_size

The Step Size specifies the change to be added to the current value of the device’s enhanced hue.

uint16_t transition_time

The time wants to transition tenths of a second

struct esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_s

The Zigbee ZCL color enhanced move to hue saturation command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t enhanced_hue

The Enhanced Hue specifies the target extended hue for the lamp

uint8_t saturation

The value of Saturation

uint16_t transition_time

The time wants to transition tenths of a second

struct esp_zb_zcl_color_color_loop_set_cmd_s

The Zigbee ZCL color color loop set command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t update_flags

The Update Flags field specifies which color loop attributes to update before the color loop is started

uint8_t action

The Action field specifies the action to take for the color loop, if the Update Action sub-field of the Update Flags field is set to 1.

uint8_t direction

The Direction field of the color loop set command

uint16_t time

The Time field specifies the number of seconds over which to perform a full color loop, if the Update Time field of the Update Flags field is set to 1.

uint16_t start_hue

The field specifies the starting hue to use for the color loop if the Update Start Hue field of the Update Flags field is set to 1

struct esp_zb_zcl_color_move_color_temperature_cmd_s

The Zigbee ZCL color move color temperature command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

The Move Mode field of the Move Hue command, if the Move Mode field is equal to 0x00, the Rate field SHALL be ignored.

uint16_t rate

The Rate field specifies the rate of movement in steps per second

uint16_t color_temperature_minimum

The field specifies a lower bound on the Color-Temperature attribute

uint16_t color_temperature_maximum

The field specifies a upper bound on the Color-Temperature attribute

struct esp_zb_zcl_color_step_color_temperature_cmd_s

The Zigbee ZCL color step color temperature command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t move_mode

The Move Mode field of the Step Hue command, If the Move Mode field is equal to 0x00, the Rate field SHALL be ignored.

uint16_t step_size

The Step Size field specifies the change to be added to (or subtracted from) the current value of the device’s color temperature.

uint16_t transition_time

The time wants to transition tenths of a second

uint16_t color_temperature_minimum

The field specifies a lower bound on the Color-Temperature attribute

uint16_t color_temperature_maximum

The field specifies a upper bound on the Color-Temperature attribute

struct esp_zb_zcl_lock_unlock_door_cmd_s

The Zigbee ZCL lock/unlock door command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_zcl_groups_add_group_cmd_s

The Zigbee ZCL groups add group command struct.

Note

Group name currently is not supported, put empty string, Support of group names is optional, @see ZCL specification, subclause 3.6.2.2.2

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

struct esp_zb_zcl_groups_remove_all_groups_cmd_s

The Zigbee ZCL groups remove all groups command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants esp_zb_zcl_address_mode_t

struct esp_zb_zcl_groups_get_group_membership_cmd_s

The Zigbee ZCL groups get group membership command struct.

Note

Get group membership will set enable ZCL response by default, later will support this feature

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants esp_zb_zcl_address_mode_t

uint8_t group_count

Total group count

uint16_t *group_list

Maximum group list

struct esp_zb_zcl_scenes_extension_field_s

The Zigbee ZCL scenes extension field struct.

Public Members

uint16_t cluster_id

Cluster id

uint8_t length

Length of scenes_extension_field

uint8_t *extension_field_attribute_value_list

Extension field attribute value list

struct esp_zb_zcl_scenes_extension_field_s *next

A pointer to next scenes extension field

struct esp_zb_zcl_scenes_add_scene_cmd_s

The Zigbee ZCL scenes add scene command struct.

The maximum number of scenes capable of being stored in the table is 10.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

uint16_t group_id

Group id

uint8_t scene_id

Scene id

uint16_t transition_time

Time wants to transition tenths of a second

esp_zb_zcl_scenes_extension_field_t *extension_field

The extension field list, please use ‘NULL’ as the end of list

struct esp_zb_zcl_scenes_remove_scene_cmd_s

The Zigbee ZCL scenes remove scene command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

uint8_t scene_id

Scene id

struct esp_zb_zcl_scenes_remove_all_scenes_cmd_s

The Zigbee ZCL scenes remove all scenes command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

struct esp_zb_zcl_scenes_view_scene_cmd_s

The Zigbee ZCL scenes view scene command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

uint16_t group_id

Group id

uint8_t scene_id

Scene id

struct esp_zb_zcl_scenes_store_scene_cmd_s

The Zigbee ZCL scenes store scene command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

uint8_t scene_id

Scene id

struct esp_zb_zcl_scenes_recall_scene_cmd_s

The Zigbee ZCL scenes recall scene command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

uint8_t scene_id

Scene id

struct esp_zb_zcl_scenes_get_scene_membership_cmd_s

The Zigbee ZCL scenes get scene membership command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t group_id

Group id

struct esp_zb_zcl_ias_zone_enroll_response_cmd_s

The Zigbee ZCL IAS zone enroll response command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t enroll_rsp_code

The enroll response code refer to esp_zb_zcl_ias_zone_enroll_response_code_t

uint8_t zone_id

Zone ID is the index of table

struct esp_zb_zcl_ias_zone_status_change_notif_cmd_s

The Zigbee ZCL IAS zone Change Notification command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t zone_status

Zone status shall be current value of the zone status attribute

uint8_t extend_status

Extended status for additional info

uint8_t zone_id

Zone ID is the index of table

uint16_t delay

Delay in quarter-seconds

struct esp_zb_zcl_ias_zone_enroll_request_cmd_s

The Zigbee ZCL IAS zone enroll request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t zone_type

Zone type

uint16_t manuf_code

Manufacturer code

struct esp_zb_zcl_window_covering_cluster_send_cmd_req_s

The Zigbee ZCL window covering send command struct.

Note

value only support uint8_t, uint16_t data types for the Lift/Tilt value/percentage payload. If not, set to NULL

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

void *value

Pointer to value

uint16_t cluster_id

Cluster id

uint8_t cmd_id

Command id

struct esp_zb_zcl_electrical_profile_info_cmd_resp_s

The Zigbee ZCL electrical profile information response command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

esp_zb_electrical_measurement_profile_info_t profile_info

Electrical profile info response command

uint16_t cluster_id

Cluster id

struct esp_zb_zcl_electrical_measurement_profile_cmd_resp_s

The Zigbee ZCL electrical profile response command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

esp_zb_electrical_measurement_profile_t profile

Electrical profile response command

uint16_t cluster_id

Cluster id

struct esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_s

The Zigbee ZCL thermostat setpoint raise lower request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t mode

Mode field SHALL be set to Heat(0x00), Cool(0x01) and Both(0x02). It specifies which setpoint is to be configured

int8_t amount

Amount field specifies the setpoint(s) are to be increased (or decreased) by, in steps of 0.1 degree Celsius

struct esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_s

The Zigbee ZCL thermostat set weekly schedule request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t num_of_transitions

Number of transitions for sequence field indicates how many individual transitions to expect for this sequence of commands

uint8_t day_of_week

Day of week for sequence field represents the day of the week at which all the transitions within the payload of the command SHOULD be associated to

uint8_t mode_for_seq

Mode for sequence field determines how the application SHALL decode the Set Point Fields of each transition for the remaining of the command

uint16_t transition_time

Transition time field represents the start time of the schedule transition during the associated day

uint16_t heat_set_point

Heat set point field represents the heat setpoint(0.01 degree Celsius resolution) to be applied, if the heat bit is enabled in the Mode For Sequence byte

uint16_t cool_set_point

Cool set point field represents the cool setpoint(0.01 degree Celsius resolution) to be applied, if the cool bit is enabled in the Mode For Sequence byte

struct esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_s

The Zigbee ZCL thermostat get weekly schedule request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t days_to_return

Days to return field indicates the number of days the client would like to return the set point values for

uint8_t mode_to_return

Mode to return field indicates the mode(heat only, cool only or heat & cool) the client would like to return the set point values for

struct esp_zb_thermostat_clear_weekly_schedule_cmd_s

The Zigbee ZCL thermostat clear weekly schedule request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_thermostat_get_relay_status_log_cmd_s

The Zigbee ZCL thermostat get relay status log request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

struct esp_zb_metering_get_profile_cmd_s

The Zigbee ZCL metering get profile request command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

esp_zb_zcl_metering_interval_channel_t interval_channel

Interval channel is used to select the quantity of interest by the ‘GetProfileResponse’ command

uint32_t end_time

End time is a 32-bit value (in UTC) used to select an Intervals block from all the Intervals blocks available

uint8_t number_of_periods

Number of periods represents the number of intervals being requested, which cannot exceed MaxNumberOfPeriodsDelivered

struct esp_zb_metering_request_fast_poll_mode_cmd_s

The Zigbee ZCL metering request fast poll mode command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t fast_poll_update_period

Desired fast poll period (seconds) not to be less than the FastPollUpdatePeriod attribute

uint8_t duration

Desired duration (minutes) for the server to remain in fast poll mode not to exceed 15 minutes

struct esp_zb_metering_get_snapshot_cmd_s

The Zigbee ZCL metering get snapshot command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint32_t earliest_start_time

A UTC Timestamp indicating the earliest time of a snapshot to be returned by a corresponding Publish Snapshot command

uint32_t latest_end_time

A UTC Timestamp indicating the latest time of a snapshot to be returned by a corresponding Publish Snapshot command

uint8_t snapshot_offset

This field identifies the individual snapshot to be returned, where multiple snapshots satisfy the selection criteria specified by the other fields in this command

esp_zb_zcl_metering_snapshot_cause_t snapshot_cause

This field is used to select only snapshots that were taken due to a specific cause, setting 0xFFFFFFFF indicates that all snapshots should be selected, irrespective of the cause

struct esp_zb_metering_get_sampled_data_cmd_s

The Zigbee ZCL metering get sampled data command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t sample_id

Unique identifier allocated to this Sampling session. This field allows devices to match response data with the appropriate request

uint32_t earliest_sample_time

A UTC Timestamp indicating the earliest time of a sample to be returned. Samples with a timestamp equal to or greater than the specified EarliestSampleTime shall be returned

esp_zb_zcl_metering_sample_type_t sample_type

Sample_type identifies the required type of sampled data

uint16_t number_of_samples

This filed represents the number of samples being requested. This value cannot exceed the size stipulated in the MaxNumberOfSamples field. If fewer samples are available for the time period, only those available are returned

struct esp_zb_zcl_price_get_current_price_cmd_s

The Zigbee ZCL price get current price command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint8_t command_options

Zero bit is Requestor Rx On When Idle, others are reserved.

struct esp_zb_zcl_price_get_scheduled_prices_cmd_s

The Zigbee ZCL price get scheduled prices command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint32_t start_time

UTC timestamp represents the minimum ending time for any scheduled or currently active pricing events to be resent.

Note

Value 0x00000000 will be replaced with the current time stamp.

uint8_t number_of_events

NumberOfEvents represents the maximum number of events to be sent.

Note

Value 0 indicates no maximum limit.

struct esp_zb_zcl_price_get_tier_labels_cmd_s

The Zigbee ZCL price get tier labels command struct.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint32_t issuer_tariff_id

Unique identifier generated by the commodity supplier. This is used to identify the tariff that the labels apply to.

struct esp_zb_zcl_custom_cluster_cmd_s

The Zigbee ZCL custom cluster command struct.

Note

For string data type, the first byte should be the length of string. For array, array16, array32, and long string data types, the first 2 bytes should represent the number of elements in the array. The size of data is only required when the type is ESP_ZB_ZCL_ATTR_TYPE_SET, ESP_ZB_ZCL_ATTR_TYPE_BAG, or CUSTOM_TYPE.

Public Members

esp_zb_zcl_basic_cmd_t zcl_basic_cmd

Basic command info

esp_zb_zcl_address_mode_t address_mode

APS addressing mode constants refer to esp_zb_zcl_address_mode_t

uint16_t profile_id

Profile id

uint16_t cluster_id

Cluster id

uint16_t custom_cmd_id

Custom command id

esp_zb_zcl_cmd_direction_t direction

Direction of command

esp_zb_zcl_attr_type_t type

The type of custom data, refer to esp_zb_zcl_attr_type_t

uint16_t size

The size of custom data

void *value

The value of custom data

struct esp_zb_zcl_custom_cluster_cmd_s::[anonymous] data

The custom data

struct esp_zb_device_cb_common_info_s

The Zigbee zcl cluster device callback common information.

Public Members

esp_zb_zcl_status_t status

The operation status of ZCL, refer to esp_zb_zcl_status_t

uint8_t dst_endpoint

The destination endpoint id of the ZCL indication

uint16_t cluster

The cluster id of the ZCL indication

struct esp_zb_zcl_set_attr_value_message_s

The Zigbee zcl set attribute value device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_attribute_t attribute

The attribute entry whose value is set

struct esp_zb_zcl_store_scene_message_s

The Zigbee zcl scene cluster store scene device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_command_t command

The ZCL indication for command

uint16_t group_id

The group id of Zigbee scenes cluster

uint8_t scene_id

The scene id of Zigbee scenes cluster

struct esp_zb_zcl_recall_scene_message_s

The Zigbee zcl scene cluster recall scene device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_command_t command

The ZCL indication for command

uint16_t group_id

The group id of Zigbee scenes cluster

uint8_t scene_id

The scene id of Zigbee scenes cluster

uint16_t transition_time

The recall transition time of Zigbee scenes cluster

esp_zb_zcl_scenes_extension_field_t *field_set

The extension field of Zigbee scenes cluster,{{cluster_id, length, value},…, {cluster_id, length, value}}, note that the NULL is the end of field

struct esp_zb_zcl_ias_zone_enroll_response_message_s

The Zigbee zcl ias zone cluster enroll response device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t response_code

The response code of Zigbee ias zone cluster

uint8_t zone_id

The id of Zigbee ias zone cluster, refer to esp_zb_zcl_ias_zone_enroll_response_code_t

struct esp_zb_zcl_ota_upgrade_value_message_s

The Zigbee zcl ota upgrade value device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_ota_upgrade_status_t upgrade_status

The update status for Zigbee ota update

esp_zb_ota_file_header_t ota_header

The header indicates the basic OTA upgrade information

uint16_t payload_size

The OTA payload size

uint8_t *payload

The OTA payload

struct esp_zb_zcl_ota_upgrade_server_status_message_s

The Zigbee zcl ota upgrade server status message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_addr_t zcl_addr

The address information is sourced from the OTA upgrade client

esp_zb_ota_upgrade_server_status_t server_status

The status of OTA upgrade server, which can refer to esp_zb_ota_upgrade_server_status_t

uint16_t image_type

The image type of OTA file

uint32_t version

The version of OTA file

uint32_t *upgrade_time

The upgrade time of OTA file, which indicates the interval time when the received OTA image will be updated

struct esp_zb_zcl_ota_upgrade_server_query_image_message_s

The Zigbee zcl ota upgrade server query image message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_addr_t zcl_addr

The address information is sourced from the OTA upgrade client

uint16_t image_type

The image type of OTA file

uint16_t manufacturer_code

The manufacturer code of OTA file

uint32_t version

The version code of OTA file

uint8_t *table_idx

The pointer for the index of variable table

struct esp_zb_zcl_thermostat_value_message_s

The Zigbee zcl thermostat value callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t mode

Mode for Sequence

uint16_t heat_setpoint

Heat Set Point

uint16_t cool_setpoint

Cool Set Point

struct esp_zb_zcl_frame_header_s

The frame header of Zigbee zcl command struct.

Note

frame control field: |-&#8212;1 bit&#8212;|——&#8212;1 bit——&#8212;|&#8212;1 bit&#8212;|——-&#8212;1 bit——–&#8212;|&#8212;4 bit&#8212;| | Frame type | Manufacturer specific | Direction | Disable Default Response | Reserved |

Public Members

uint8_t fc

A 8-bit Frame control

uint16_t manuf_code

Manufacturer code

uint8_t tsn

Transaction sequence number

int8_t rssi

Signal strength

struct esp_zb_zcl_metering_get_profile_resp_info_offered_s

The Zigbee zcl metering get profile response info offered by user struct.

Public Members

uint32_t end_time

It is 32-bit value (in UTC) representing the end time of the most chronologically recent interval being requested

esp_zb_zcl_metering_status_field_t status

Status of ‘GetProfile’ command

esp_zb_zcl_metering_profile_interval_period_t profile_interval_period

Represents the interval or time frame used to capture metered Energy, Gas, and Water consumption for profiling purposes

uint8_t number_of_periods_delivered

Number of periods represents the number of intervals being requested, it cannot exceed the MaxNumberOfPeriodsDelivered attribute. If fewer intervals are available for the time period, only those available are returned

esp_zb_uint24_t *intervals

Series of interval data captured using the period specified by the ‘ProfileIntervalPeriod’ attribute. The content of the interval data depends of the type of information requested using the Channel field in the ‘GetProfile’ command, and will represent the change in that information since the previous interval

struct esp_zb_zcl_metering_get_profile_message_s

The Zigbee zcl metering get profile callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_metering_interval_channel_t interval_channel

Interval channel is used to select the quantity of interest by the ‘GetProfileResponse’ command

uint32_t end_time

End time is a 32-bit value (in UTC) used to select an Intervals block from all the Intervals blocks available

uint8_t number_of_periods

Number of periods represents the number of intervals being requested

esp_zb_zcl_metering_get_profile_resp_info_offered_t resp_info_offered

The info used for ‘GetProfileResponse’ command, to response ‘GetProfile’ command. The info SHOULD be offered by user, otherwise, the response has no sense

struct esp_zb_zcl_metering_get_profile_resp_message_s

The Zigbee zcl metering get profile response callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t end_time

Represents the end time of the most chronologically recent interval being requested

esp_zb_zcl_metering_status_field_t status

Status of GetProfile command

esp_zb_zcl_metering_profile_interval_period_t profile_interval_period

Represents the interval or time frame used to capture metered Energy, Gas, and Water consumption for profiling purposes

uint8_t number_of_periods_delivered

Represents the number of intervals the device returned

esp_zb_uint24_t *intervals

Series of interval data captured using the period specified by the ProfileIntervalPeriod field. The content of the interval data depends of the type of information requested using the Channel field in GetProfile command, and will represent the change in that information since the previous interval

struct esp_zb_zcl_metering_request_fast_poll_mode_resp_info_offered_s

The Zigbee zcl metering get profile response info offered by user struct.

Public Members

uint8_t applied_update_period_in_seconds

The period at which metering data shall be updated, shall be greater than or equal to the minimum FastPollUpdatePeriod Attribute and less than or equal to the FastPollUpdatePeriod in RequestFastPollMode command

uint32_t fast_poll_mode_end_time

UTC time that indicates when the metering server will terminate fast poll mode and resume updating at the rate specified by DefaultUpdatePeriod

struct esp_zb_zcl_metering_request_fast_poll_mode_message_s

The Zigbee zcl metering request fast poll mode callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t fast_poll_update_period

Desired fast poll period (seconds) not to be less than the FastPollUpdatePeriod attribute

uint8_t duration

Desired duration (minutes) for the server to remain in fast poll mode not to exceed 15 minutes

esp_zb_zcl_metering_request_fast_poll_mode_resp_info_offered_t resp_info_offered

The info used for ‘RequestFastPollModeResponse’ command, to response ‘RequestFastPollMode’ command. The info SHOULD be offered by user, otherwise, the response has no sense

struct esp_zb_zcl_metering_request_fast_poll_mode_resp_message_s

The Zigbee zcl metering request fast poll mode response callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t applied_update_period_in_seconds

The period at which metering data shall be updated, shall be greater than or equal to the minimum FastPollUpdatePeriod Attribute and less than or equal to the FastPollUpdatePeriod in ‘RequestFastPollMode’ command

uint32_t fast_poll_mode_end_time

UTC time that indicates when the metering server will terminate fast poll mode and resume updating at the rate specified by DefaultUpdatePeriod

struct esp_zb_zcl_metering_tou_delivered_payload_s

The Zigbee zcl metering snapshot tou delivered sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_delivered

An unsigned 48-bit integer that returns the value of the CurrentSummationDelivered attribute at the stated snapshot timestamp

uint32_t bill_to_date_delivered

An unsigned 32-bit integer that provides a value for the costs in the current billing period

uint32_t bill_to_date_time_stamp_delivered

A UTC timestamp that indicates when the value of the associated BillToDateDelivered parameter was last updated

uint32_t projected_bill_delivered

An unsigned 32-bit integer that provides a value indicating what the estimated state of the account will be at the end of the billing period based on past consumption

uint32_t projected_bill_time_stamp_delivered

A UTC timestamp that indicates when the associated ProjectedBillDelivered parameter was last updated

uint8_t bill_delivered_trailing_digit

An 8-bit BitMap used to determine where the decimal point is located in the BillToDateDelivered and ProjectedBillDelivered fields

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationDelivered attributes from the TOU Information Set. The Metering server shall send only the number of tiers in use, as stated in this command

struct esp_zb_zcl_metering_tou_received_payload_s

The Zigbee zcl metering snapshot tou received sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_received

An unsigned 48-bit integer that returns the value of the CurrentSummationReceived attribute at the stated snapshot timestamp

uint32_t bill_to_date_received

An unsigned 32-bit integer that provides a value for the costs in the current billing period

uint32_t bill_to_date_time_stamp_received

A UTC timestamp that indicates when the value of the associated BillToDateReceived parameter was last updated

uint32_t projected_bill_received

An unsigned 32-bit integer that provides a value indicating what the estimated state of the account will be at the end of the billing period based on past generation

uint32_t projected_bill_time_stamp_received

A UTC timestamp that indicates when the associated ProjectedBillReceived parameter was last updated

uint8_t bill_received_trailing_digit

An 8-bit BitMap used to determine where the decimal point is located in the BillToDateReceived and ProjectedBillReceived fields

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationReceived attributes from the TOU Information Set. The Metering server shall send only the number of tiers in use, as stated in this command

struct esp_zb_zcl_metering_block_tier_delivered_payload_s

The Zigbee zcl metering snapshot block delivered sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_delivered

An unsigned 48-bit integer that returns the value of the CurrentSummationDelivered attribute at the stated snapshot timestamp

uint32_t bill_to_date_delivered

An unsigned 32-bit integer that provides a value for the costs in the current billing period

uint32_t bill_to_date_time_stamp_delivered

A UTC timestamp that indicates when the value of the associated BillToDateDelivered parameter was last updated

uint32_t projected_bill_delivered

An unsigned 32-bit integer that provides a value indicating what the estimated state of the account will be at the end of the billing period based on past consumption

uint32_t projected_bill_time_stamp_delivered

A UTC timestamp that indicates when the associated ProjectedBillDelivered parameter was last updated

uint8_t bill_delivered_trailing_digit

An 8-bit BitMap used to determine where the decimal point is located in the BillToDateDelivered and ProjectedBillDelivered fields

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationDelivered attributes from the TOU Information Set

uint8_t number_of_tiers_and_block_thresholds_in_use

An 8-bit BitMap representing the number of tiers and block thresholds in use at the time the snapshot was taken

esp_zb_uint48_t *tier_block_summation

The Publish Snapshot command contains N elements of the Block Information Attribute Set (Delivered). The metering server shall send only the number of Tiers and Blocks in use as stated in this command

struct esp_zb_zcl_metering_block_tier_received_payload_s

The Zigbee zcl metering snapshot block received sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_received

An unsigned 48-bit integer that returns the value of the CurrentSummationReceived attribute at the stated snapshot timestamp

uint32_t bill_to_date_received

An unsigned 32-bit integer that provides a value for the costs in the current billing period

uint32_t bill_to_date_time_stamp_received

A UTC timestamp that indicates when the value of the associated BillToDateReceived parameter was last updated

uint32_t projected_bill_received

An unsigned 32-bit integer that provides a value indicating what the estimated state of the account will be at the end of the billing period based on past generation

uint32_t projected_bill_time_stamp_received

A UTC timestamp that indicates when the associated ProjectedBillReceived parameter was last updated

uint8_t bill_received_trailing_digit

An 8-bit BitMap used to determine where the decimal point is located in the BillToDateReceived and ProjectedBillReceived fields

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationReceived attributes from the TOU Information Set

uint8_t number_of_tiers_and_block_thresholds_in_use

An 8-bit BitMap representing the number of tiers and block thresholds in use at the time the snapshot was taken

esp_zb_uint48_t *tier_block_summation

The Publish Snapshot command contains N elements of the Block Information Attribute Set (Received). The metering server shall send only the number of Tiers and Blocks in use as stated in this command

struct esp_zb_zcl_metering_tou_delivered_no_billing_payload_s

The Zigbee zcl metering snapshot tou delivered no billing sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_delivered

An unsigned 48-bit integer that returns the value of the CurrentSummationDelivered attribute at the stated snapshot timestamp

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationDelivered attributes from the TOU Information Set. The metering server shall send only the number of Tiers in use as stated in this command

struct esp_zb_zcl_metering_tou_received_no_billing_payload_s

The Zigbee zcl metering snapshot tou received no billing sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_received

An unsigned 48-bit integer that returns the value of the CurrentSummationReceived attribute at the stated snapshot timestamp

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationReceived attributes from the TOU Information Set. The metering server shall send only the number of Tiers in use as stated in this command

struct esp_zb_zcl_metering_block_tier_delivered_no_billing_payload_s

The Zigbee zcl metering snapshot block tier delivered no billing sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_delivered

An unsigned 48-bit integer that returns the value of the CurrentSummationDelivered attribute at the stated snapshot timestamp

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationDelivered attributes from the TOU Information Set

uint8_t number_of_tiers_and_block_thresholds_in_use

An 8-bit BitMap representing the number of tiers and block thresholds in use at the time the snapshot was taken

esp_zb_uint48_t *tier_block_summation

The Publish Snapshot command contains N elements of the Block Information Attribute Set (Delivered). The metering server shall send only the number of Tiers and Blocks in use as stated in this command

struct esp_zb_zcl_metering_block_tier_received_no_billing_payload_s

The Zigbee zcl metering snapshot block tier received no billing sub-payload struct.

Public Members

esp_zb_uint48_t current_summation_received

An unsigned 48-bit integer that returns the value of the CurrentSummationReceived attribute at the stated snapshot timestamp

uint8_t number_of_tiers_in_use

An 8-bit integer representing the number of tiers in use at the time the snapshot was taken

esp_zb_uint48_t *tier_summation

The Publish Snapshot command contains N elements of CurrentTierNSummationReceived attributes from the TOU Information Set

uint8_t number_of_tiers_and_block_thresholds_in_use

An 8-bit BitMap representing the number of tiers and block thresholds in use at the time the snapshot was taken

esp_zb_uint48_t *tier_block_summation

The Publish Snapshot command contains N elements of the Block Information Attribute Set (Received). The metering server shall send only the number of Tiers and Blocks in use as stated in this command

struct esp_zb_zcl_metering_snapshot_s

The Zigbee zcl metering snapshot struct.

Public Members

uint32_t snapshot_id

Unique identifier allocated by the device creating the snapshot.

uint32_t snapshot_time

This is a 32-bit value (in UTC Time) representing the time at which the data snapshot was taken.

uint8_t total_snapshots_found

An 8-bit Integer indicating the number of snapshots found, based on the search criteria defined in the associated GetSnapshot command

esp_zb_zcl_metering_snapshot_cause_t snapshot_cause

A 32-bit BitMap indicating the cause of the snapshot

esp_zb_zcl_metering_snapshot_payload_type_t snapshot_payload_type

The SnapshotPayloadType is an 8-bit enumerator defining the format of the Snapshot Sub-Payload in this message

esp_zb_zcl_metering_snapshot_sub_payload_t snapshot_sub_payload

esp_zb_zcl_metering_snapshot_sub_payload_s

struct esp_zb_zcl_metering_get_snapshot_message_s

The Zigbee zcl metering get snapshot callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t earliest_start_time

A UTC Timestamp indicating the earliest time of a snapshot to be returned by a corresponding Publish Snapshot command

uint32_t latest_end_time

A UTC Timestamp indicating the latest time of a snapshot to be returned by a corresponding Publish Snapshot command

uint8_t snapshot_offset

This field identifies the individual snapshot to be returned, where multiple snapshots satisfy the selection criteria specified by the other fields in this command

esp_zb_zcl_metering_snapshot_cause_t snapshot_cause

This field is used to select only snapshots that were taken due to a specific cause, setting 0xFFFFFFFF indicates that all snapshots should be selected, irrespective of the cause

esp_zb_zcl_metering_snapshot_t resp_info_offered

The info used for ‘PublishSnapshot’ command, to response ‘GetSnapshot’ command. The info SHOULD be offered by user, otherwise, the response has no sense

struct esp_zb_zcl_metering_publish_snapshot_message_s

The Zigbee zcl metering publish snapshot struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t snapshot_id

Unique identifier allocated by the device creating the snapshot.

uint32_t snapshot_time

This is a 32-bit value (in UTC Time) representing the time at which the data snapshot was taken.

uint8_t total_snapshots_found

An 8-bit Integer indicating the number of snapshots found, based on the search criteria defined in the associated GetSnapshot command

uint8_t command_index

The CommandIndex is used to count the payload fragments in the case where the entire payload (snapshot) does not fit into one message

uint8_t total_number_of_commands

In the case where the entire payload (snapshot) does not fit into one message, the Total Number of Commands field indicates the total number of sub-commands that will be returned

esp_zb_zcl_metering_snapshot_cause_t snapshot_cause

A 32-bit BitMap indicating the cause of the snapshot

esp_zb_zcl_metering_snapshot_payload_type_t snapshot_payload_type

The SnapshotPayloadType is an 8-bit enumerator defining the format of the Snapshot Sub-Payload in this message

esp_zb_zcl_metering_snapshot_sub_payload_t snapshot_sub_payload

esp_zb_zcl_metering_snapshot_sub_payload_s

struct esp_zb_zcl_metering_get_sampled_data_resp_info_offered_s

The Zigbee zcl metering get sampled data response info offered by user struct.

Public Members

uint16_t sample_id

Unique identifier allocated to this Sampling session

uint32_t sample_start_time

A UTC Time field to denote the time of the first sample returned

esp_zb_zcl_metering_sample_type_t sample_type

An 8 bit enumeration that identifies the type of data being sampled

uint16_t sample_request_interval

An unsigned 16-bit field representing the interval or time in seconds between samples

uint16_t number_of_samples

Represents the number of samples being requested, cannot exceed MaxNumberOfSamples. And if fewer samples are available for the time period, only those available shall be returned

esp_zb_uint24_t *samples

Series of data samples captured using the interval specified by the Sample RequestInterval field in the StartSampling command. Invalid samples should be marked as 0xFFFFFF

struct esp_zb_zcl_metering_get_sampled_data_message_s

The Zigbee zcl metering get sampled data callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint16_t sample_id

Unique identifier allocated to this Sampling session

uint32_t earliest_sample_time

A UTC Timestamp indicating the earliest time of a sample to be returned

esp_zb_zcl_metering_sample_type_t sample_type

An 8 bit enumeration that identifies the type of data being sampled

uint16_t number_of_samples

Represents the number of samples being requested, This value cannot exceed the size stipulated in the MaxNumberOfSamples field in the StartSampling command

esp_zb_zcl_metering_get_sampled_data_resp_info_offered_t resp_info_offered

The info used for ‘GetSampledDataResponse’ command, to response ‘GetSampledData’ command. The info SHOULD be offered by user, otherwise, the response has no sense

struct esp_zb_zcl_metering_get_sampled_data_resp_message_s

The Zigbee zcl metering get sampled data response callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint16_t sample_id

Unique identifier allocated to this Sampling session

uint32_t sample_start_time

A UTC Time field to denote the time of the first sample returned

esp_zb_zcl_metering_sample_type_t sample_type

An 8 bit enumeration that identifies the type of data being sampled

uint16_t sample_request_interval

An unsigned 16-bit field representing the interval or time in seconds between samples

uint16_t number_of_samples

Represents the number of samples being requested, cannot exceed MaxNumberOfSamples. And if fewer samples are available for the time period, only those available shall be returned

esp_zb_uint24_t *samples

Series of data samples captured using the interval specified by the Sample RequestInterval field in the StartSampling command. Invalid samples should be marked as 0xFFFFFF

struct esp_zb_zcl_price_publish_price_s

The Zigbee zcl price publish price struct.

Public Members

uint32_t provider_id

Unique identifier for the commodity provider.

uint8_t rate_label[13]

Commodity provider-specific information regarding the current billing rate.

uint32_t issuer_event_id

Unique identifier generated by the commodity provider allows devices to determine which pricing information is newer.

uint32_t current_time

UTC Time field containing the current time as determined by the device.

uint8_t unit_of_measure

Field identifying the commodity as well as this base units of measure.

uint16_t currency

Field identifying information concerning the local unit of currency used in the price field.

uint32_t price_trailing_digit

Determines where the decimal point is located in the price field

uint32_t price_tier

Indicates the current price tier as chosen by the commodity provider

uint32_t number_of_price_tiers

Represents the maximum number of price tiers available.

uint32_t register_tier

Indicates the register tier used with the current Price Tier.

uint32_t start_time

Denotes the time at which the signal becomes valid. Value 0x00000000 is a special time denoting “now”.

uint16_t duration_in_minutes

Denotes amount of time in minutes after Start Time during which the price signal is valid.

uint32_t price

Contains the price of the commodity measured in base unit of Currency per Unit of Measure with the decimal point located as indicated by the Price Trailing Digit field when the commodity is delivered to premises.

uint8_t price_ratio

Gives the ratio of the price denoted in the Price field to the “normal” price, chosen by the commodity provider.

uint32_t generation_price

Contains the price of the commodity measured in base unit of Currency per Unit of Measure with the decimal point located as indicated by the Price Trailing Digit field when the commodity is received from premises.

uint8_t generation_price_ratio

Gives the ratio of the price denoted in the Generation Price field to the “normal” price, chosen by the commodity provider.

uint32_t alternate_cost_delivered

Provides mechanism to describe an alternative measure of the cost of the energy consumed.

uint8_t alternate_cost_unit

Identifies the unit for Alternate Cost Delivered field

uint8_t alternate_cost_trailing_digit

Determines where the decimal point is located in the alternate cost field.

uint8_t number_of_block_thresholds

Indicates the number of block thresholds available.

uint8_t price_control

Identifies additional control options (PriceAcknowledgement policy and total number of tier flag).

uint8_t number_of_generation_tiers

Specifies the total number of generation tiers applicable in the current tariff.

uint8_t generation_tier

Specifies the current generation tier.

uint8_t extended_number_of_price_tiers

Indicates a maximum number of tier available.

uint8_t extended_price_tier

Indicates the current price tier.

uint8_t extended_register_tier

Indicates the register tier used with the current Price Tier.

struct esp_zb_zcl_price_get_current_price_message_s

The Zigbee zcl price get current price callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t command_options

Zero bit is Requestor Rx On When Idle, others are reserved.

uint8_t resp_count

Number of prices in resp_info_offered to be responded.

esp_zb_zcl_price_publish_price_t *resp_info_offered

The info used for ‘PublishPrice’ command, to response ‘GetCurrent’ command. The info SHOULD be offered by user, otherwise, the response has no sense

struct esp_zb_zcl_price_get_scheduled_prices_message_s

The Zigbee zcl price get scheduled prices callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t start_time

The minimum ending time for any scheduled or currently active pricing events to be resent.

Note

Value 0x00000000 will be replaced with the current time stamp.

uint8_t number_of_events

The maximum number of events to be sent. Value 0 indicates no maximum limit.

uint8_t resp_count

Number of prices in resp_info_offered to be responded.

esp_zb_zcl_price_publish_price_t *resp_info_offered

The info used for ‘PublishPrice’ command, to response ‘GetCurrent’ command. The info SHOULD be offered by user, otherwise, the response has no sense.

struct esp_zb_zcl_price_publish_price_message_s

The Zigbee zcl price publish price callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_price_publish_price_t price

Recived publish price information

struct esp_zb_zcl_price_ack_message_s

The Zigbee zcl price acknowledgement callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t provider_id

Unique identifier for the commodity provider.

uint32_t issuer_event_id

Unique identifier generated by the commodity provider.

uint32_t current_time

This field containing the current time as determined by the device.

uint8_t price_control

Identifies additional control options (PriceAcknowledgement policy and total number of tier flag).

struct esp_zb_zcl_price_tier_label_entry_s

The Zigbee ZCL price tier label entry struct.

Public Members

uint8_t tier_id

The tier number that the associated TierLabel applies to.

uint8_t tier_label[13]

Octet String field capable of storing a 12 character string (the first character indicates the string length, represented in hexadecimal format) encoded in the UTF-8 format.

struct esp_zb_price_publish_tier_labels_info_s

The Zigbee ZCL price publish tier labels information struct.

Public Members

uint32_t provider_id

An unsigned 32-bit field containing a unique identifier for the commodity provider.

uint32_t issuer_event_id

Unique identifier generated by the commodity provider.

uint32_t issuer_tariff_id

Unique identifier generated by the commodity supplier.

uint8_t number_of_labels

The number of TierID/Tier Label sets contained within the command.

esp_zb_zcl_price_tier_label_entry_t *tier_labels

Tier labels need to be published in the command

struct esp_zb_zcl_price_get_tier_labels_message_s

The Zigbee ZCL price publish tier labels callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t issuer_tariff_id

Unique identifier generated by the commodity supplier.

esp_zb_price_publish_tier_labels_info_t resp_info_offered

Information of the response

struct esp_zb_zcl_price_publish_tier_labels_message_s

The Zigbee ZCL price publish tier labels callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint32_t provider_id

An unsigned 32-bit field containing a unique identifier for the commodity provider.

uint32_t issuer_event_id

Unique identifier generated by the commodity provider.

uint32_t issuer_tariff_id

Unique identifier generated by the commodity supplier.

uint8_t command_index

This is used to count the payload fragments in the case where the entire payload does not fit into one message.

uint8_t total_number_of_commands

In the case where the entire payload does not fit into one message, this field indicates the total number of sub-commands in the message.

uint8_t number_of_labels

The number of TierID/Tier Label sets contained within the command.

esp_zb_zcl_price_tier_label_entry_t *tier_labels

Tier labels published in the command

struct esp_zigbee_zcl_commissioning_restart_device_message_s

The Zigbee ZCL commissioning restart device callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_commissioning_restart_device_payload_t msg_in

Received restart device payload

struct esp_zigbee_zcl_commissioning_operate_startup_parameters_message_s

The Zigbee ZCL commissioning startup parameters operation callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_commissioning_startup_parameters_operation_t operation

Operation on startup parameter set

uint8_t index

Index of the startup parameter set to be operated on

esp_zb_zcl_status_t status

Result of the operation, will be sent in the response

struct esp_zigbee_zcl_commissioning_command_response_message_s

The Zigbee ZCL commissioning startup parameters operation callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_status_t status

Status of the received response

struct esp_zb_zcl_door_lock_lock_door_message_s

The Zigbee zcl door lock callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_door_lock_cmd_id_t cmd_id

The lock or unlock command identifier

struct esp_zb_zcl_door_lock_lock_door_resp_message_s

The Zigbee zcl door lock repsonse callback message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

esp_zb_zcl_door_lock_cmd_resp_t cmd_id

The lock or unlock response command identifier

esp_zb_zcl_status_t req_status

The status of request command indicates if the message has received successfully.

struct esp_zb_zcl_identify_effect_message_s

The Zigbee zcl identify cluster calls identify effect command message struct.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

uint8_t effect_id

The field specifies the identify effect to use, refer to esp_zb_zcl_identify_trigger_effect_s

uint8_t effect_variant

The field is used to indicate which variant of the effect, indicated in the effect identifier field, SHOULD be triggered

struct esp_zb_zcl_basic_reset_factory_default_message_s

The Zigbee zcl basic cluster reset to factory defualt message.

Public Members

esp_zb_device_cb_common_info_t info

The common information for Zigbee device callback

struct esp_zb_zcl_cmd_info_s

The Zigbee zcl command basic application information struct.

Public Members

esp_zb_zcl_status_t status

The status of command, which can refer to esp_zb_zcl_status_t

esp_zb_zcl_frame_header_t header

The command frame properties, which can refer to esp_zb_zcl_frame_field_t

esp_zb_zcl_addr_t src_address

The struct of address contains short and ieee address, which can refer to esp_zb_zcl_addr_s

uint16_t dst_address

The destination short address of command

uint8_t src_endpoint

The source endpoint of command

uint8_t dst_endpoint

The destination endpoint of command

uint16_t cluster

The cluster id for command

uint16_t profile

The application profile identifier

esp_zb_zcl_command_t command

The properties of command

struct esp_zb_zcl_report_attr_message_s

The Zigbee zcl attribute report message struct.

Public Members

esp_zb_zcl_status_t status

The status of the report attribute response, which can refer to esp_zb_zcl_status_t

esp_zb_zcl_addr_t src_address

The struct of address contains short and ieee address, which can refer to esp_zb_zcl_addr_s

uint8_t src_endpoint

The endpoint id which comes from report device

uint8_t dst_endpoint

The destination endpoint id

uint16_t cluster

The cluster id that reported

esp_zb_zcl_attribute_t attribute

The attribute entry of report response

struct esp_zb_zcl_read_attr_resp_variable_s

The variable of Zigbee zcl read attribute response.

Public Members

esp_zb_zcl_status_t status

The field specifies the status of the read operation on this attribute

esp_zb_zcl_attribute_t attribute

The field contain the current value of this attribute, esp_zb_zcl_attribute_s

struct esp_zb_zcl_read_attr_resp_variable_s *next

Next variable

struct esp_zb_zcl_cmd_read_attr_resp_message_s

The Zigbee zcl read attribute response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of reading attribute response message that refers to esp_zb_zcl_cmd_info_t

esp_zb_zcl_read_attr_resp_variable_t *variables

The variable items, esp_zb_zcl_read_attr_resp_variable_s

struct esp_zb_zcl_write_attr_resp_variable_s

The variable of Zigbee zcl write attribute response.

Public Members

esp_zb_zcl_status_t status

The field specifies the status of the write operation on this attribute

uint16_t attribute_id

The attribute id of the write attribute response, please note that when info.status does not equal ESP_ZB_ZCL_STATUS_SUCCESS, the attribute_id is reported; otherwise, it is an invalid value (0xFFFF)

struct esp_zb_zcl_write_attr_resp_variable_s *next

Next variable

struct esp_zb_zcl_cmd_write_attr_resp_message_s

The Zigbee zcl response struct for writing attribute.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of the write attribute response message that refers to esp_zb_zcl_cmd_info_t

esp_zb_zcl_write_attr_resp_variable_t *variables

The variable items, esp_zb_zcl_write_attr_resp_variable_s

struct esp_zb_zcl_config_report_resp_variable_s

The variable of Zigbee zcl configures report attribute response.

Public Members

esp_zb_zcl_status_t status

The field specifies the status of the Configure Reporting operation attempted on this attribute

uint8_t direction

The direction field specifies whether values of the attribute are reported (0x00), or whether reports of the attribute are received (0x01).

uint16_t attribute_id

The The attribute id of configuring report response, please note that when info.status does not equal ESP_ZB_ZCL_STATUS_SUCCESS, the attribute_id is reported; otherwise, it is an invalid value (0xFFFF).

struct esp_zb_zcl_config_report_resp_variable_s *next

Next variable

struct esp_zb_zcl_cmd_config_report_resp_message_s

The Zigbee zcl configure report response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of configuring report response message, esp_zb_zcl_cmd_info_s

esp_zb_zcl_config_report_resp_variable_t *variables

The variable items, esp_zb_zcl_config_report_resp_variable_s

struct esp_zb_zcl_cmd_read_report_config_resp_message_s

The Zigbee zcl reading report configuration response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of reading report configuration response message that refers to esp_zb_zcl_cmd_info_t

uint8_t report_direction

Direction: report is client or server

uint16_t attribute_id

The attribute id, please note that when info.status does not equal ESP_ZB_ZCL_STATUS_SUCCESS, the attribute_id is reported; otherwise, it is an invalid value (0xFFFF).

uint8_t attr_type

Attribute type

uint16_t min_interval

Minimum interval time

uint16_t max_interval

Maximum interval time

uint8_t delta[1]

Actual reportable change

struct esp_zb_zcl_cmd_read_report_config_resp_message_s::[anonymous]::[anonymous] client

Describes how attribute should be reported

uint16_t timeout

Timeout period

struct esp_zb_zcl_cmd_read_report_config_resp_message_s::[anonymous]::[anonymous] server

Describes how attribute report is received

struct esp_zb_zcl_disc_attr_variable_s

Attribute information field for discovering attributes response struct.

Public Members

uint16_t attr_id

The field contain the identifier of a discovered attribute

esp_zb_zcl_attr_type_t data_type

The field contain the data type of the attribute in the same attribute report field

struct esp_zb_zcl_disc_attr_variable_s *next

Next variable

struct esp_zb_zcl_cmd_discover_attributes_resp_message_s

The Zigbee zcl discover attribute response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of configuring report response message that refers to esp_zb_zcl_cmd_info_t

uint8_t is_completed

A value of 0 indicates that there are more attributes to be discovered, otherwise, it is completed

esp_zb_zcl_disc_attr_variable_t *variables

The variable items, which can refer to esp_zb_zcl_attr_info_field_t

struct esp_zb_zcl_cmd_default_resp_message_s

The Zigbee command default response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of configuring report response message that refers to esp_zb_zcl_cmd_info_t

uint8_t resp_to_cmd

The field specifies the identifier of the received command to which this command is a response

esp_zb_zcl_status_t status_code

The field specifies the nature of the error that was detected in the received command, refer to esp_zb_zcl_status_t

struct esp_zb_zcl_groups_operate_group_resp_message_s

The Zigbee zcl group operation response struct.

Note

Operation: add or remove

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of group cluster response that refers to esp_zb_zcl_cmd_info_t

uint16_t group_id

The Group id of adding group response

struct esp_zb_zcl_groups_view_group_resp_message_s

The Zigbee zcl group view response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of group cluster response that refers to esp_zb_zcl_cmd_info_t

uint16_t group_id

The group id of adding group response

uint8_t *group_name

The group name

struct esp_zb_zcl_groups_get_group_membership_resp_message_s

The Zigbee zcl group get membership response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of group cluster response that refers to esp_zb_zcl_cmd_info_t

uint8_t capacity

The Capacity of group table

uint8_t group_count

The Group count

uint16_t *group_id

The Group id list

struct esp_zb_zcl_scenes_operate_scene_resp_message_s

The Zigbee ZCL scenes operate response struct.

Note

Operation: add or remove or remove_all or store, refer to esp_zb_zcl_scenes_cmd_resp_id_t

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of scene cluster response that refers to esp_zb_zcl_cmd_info_t

uint16_t group_id

The Scene group identifier

uint8_t scene_id

The Scene identifier

struct esp_zb_zcl_scenes_view_scene_resp_message_s

The Zigbee ZCL scenes view scene response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of scene cluster response that refers to esp_zb_zcl_cmd_info_t

uint16_t group_id

The Scene group identifier

uint8_t scene_id

The Scene identifier

uint16_t transition_time

The Scene transition time Valid if status is refers to ESP_ZB_ZCL_STATUS_SUCCESS only

esp_zb_zcl_scenes_extension_field_t *field_set

Extension field, {{cluster_id, length, value}, … , {cluster_id, length, value}}

struct esp_zb_zcl_scenes_get_scene_membership_resp_message_s

The Zigbee ZCL scenes get scene membership response struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of scene cluster response that refers to esp_zb_zcl_cmd_info_t

uint8_t capacity

The Scene table capacity(Mandatory)

uint16_t group_id

The Group identifier(Mandatory)

uint8_t scene_count

The Number of scenes(Optional)

uint8_t *scene_list

The Array of scenes corresponding to the group identifier(Optional)

struct esp_zb_zcl_ias_zone_enroll_request_message_s

The Zigbee ZCL IAS Zone enroll request message struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of ias zone message that refers to esp_zb_zcl_cmd_info_t

uint16_t zone_type

The zone type, refer to esp_zb_zcl_ias_zone_zonetype_t

uint16_t manufacturer_code

The manufacturer code

struct esp_zb_zcl_ias_zone_status_change_notification_message_s

The Zigbee ZCL IAS Zone status change notification response message struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of ias zone status message that refers to esp_zb_zcl_report_attr_message_t

uint16_t zone_status

The zone status attribute, which can refer esp_zb_zcl_ias_zone_zonestatus_t

uint8_t extended_status

Reserved for additional status information and SHALL be set to zero

uint8_t zone_id

The Zone ID is the index of the Zone in the CIE’s zone table

uint16_t delay

The amount of time, in quarter-seconds, from the moment when a change takes place in one or more bits of the Zone Status attribute

struct esp_zb_zcl_privilege_command_message_s

The Zigbee zcl privilege command message struct.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of privilege command message that refers to esp_zb_zcl_report_attr_message_t

uint16_t size

The size of data

void *data

The privilege command data

struct esp_zb_zcl_custom_cluster_command_message_s

The Zigbee zcl customized cluster message struct.

Note

For string data type, the first byte should be the length of string. For array, array16, array32, and long string data types, the first 2 bytes should represent the number of elements in the array.

Public Members

esp_zb_zcl_cmd_info_t info

The basic information of customized cluster command message that refers to esp_zb_zcl_report_attr_message_t

uint16_t size

The size of custom data

void *value

The value of custom data

struct esp_zb_zcl_custom_cluster_command_message_s::[anonymous] data

The custom data

The Zigbee touchlink group information record struct.

Public Members

The identifier of the group described by this record

The group type shall indicate the meaning of a group in the user interface. In the current version of this specification, this value shall be set to 0x00

Next variable

The Zigbee ZCL touchlink commissioning get group identifiers response struct.

Public Members

The basic information of touclink get group identifiers response that refers to esp_zb_zcl_cmd_info_t

The total number of group identifiers supported by the device

The internal starting index from which the following group identifiers are taken

The number of entries in the group information record list field

Group information record list , {{Group identifier, Group type}, … , {Group identifier, Group type}}

The Zigbee touchlink endpoint list record struct.

Public Members

The short network address of the device specified by the current endpoint information record

The identifier of the endpoint on the device specified by the network address field

The identifier of the profile supported on the endpoint

The identifier of the device description supported on the endpoint

Specifies the version of the device description supported by the sub-device on the endpoin

Next variable

The Zigbee ZCL touchlink commissioning get endpoint list response struct.

Public Members

The basic information of touclink get endpoint list response that refers to esp_zb_zcl_cmd_info_t

The total number of endpoints supported by the device

The internal starting index from which the following list of endpoints are taken

The number of entries in the endpoint information record list field

Endpoint record list , {{Network address, Endpoint identifier, Profile identifier, Device identifier, Version}, … , {Network address, Endpoint identifier, Profile identifier, Device identifier, Version}}

The Zigbee ZCL touchlink commissioning endpoint information struct.

Public Members

The IEEE address of the local device

The short network address of the local device

The identifier of the local endpoint

The identifier of the profile supported on the endpoint specified in the endpoint identifier field

The identifier of the device description supported on the endpoint specified in the endpoint identifier field

The version of the device description supported by the sub-device on the endpoint specified by the endpoint identifier field

The parameter indicates whether the endpoint information is recorded in the record list

The Zigbee touchlink get group identifiers request command struct.

Public Members

Basic command info

The index (starting from 0) at which to start returning group identifiers.

The Zigbee touchlink get endpoint list request command struct.

Public Members

Basic command info

The index (starting from 0) at which to start returning endpoint identifiers.

The Zigbee touchlink endpoint information request command struct.

Public Members

Basic command info

The identifier of the local endpoint

The identifier of the profile supported on the endpoint specified in the endpoint identifier field.

The identifier of the device description supported on the endpoint specified in the endpoint identifier field

Device version;the most significant 4 bits shall be set to 0x0

Type Definitions

typedef struct esp_zb_zcl_command_send_status_s esp_zb_zcl_command_send_status_message_t

The application message of ZCL command send status message.

typedef void (*esp_zb_zcl_command_send_status_callback_t)(esp_zb_zcl_command_send_status_message_t message)

The callback of Zigbee zcl command send status.

typedef struct esp_zb_zcl_attribute_data_s esp_zb_zcl_attribute_data_t

The Zigbee zcl cluster attribute value struct.

typedef struct esp_zb_zcl_attribute_s esp_zb_zcl_attribute_t

The Zigbee zcl cluster attribute struct.

typedef struct esp_zb_zcl_custom_cluster_handlers_s esp_zb_zcl_custom_cluster_handlers_t

The Zigbee zcl custom cluster handlers struct.

typedef struct esp_zb_zcl_command_s esp_zb_zcl_command_t

The Zigbee zcl cluster command properties struct.

typedef struct esp_zb_zcl_basic_cmd_s esp_zb_zcl_basic_cmd_t

The Zigbee ZCL basic command info.

typedef struct esp_zb_zcl_read_attr_cmd_s esp_zb_zcl_read_attr_cmd_t

The Zigbee ZCL read attribute command struct.

typedef struct esp_zb_zcl_write_attr_cmd_s esp_zb_zcl_write_attr_cmd_t

The Zigbee ZCL write attribute command struct.

typedef struct esp_zb_zcl_config_report_record_s esp_zb_zcl_config_report_record_t

The Zigbee zcl configure report record struct.

typedef struct esp_zb_zcl_config_report_cmd_s esp_zb_zcl_config_report_cmd_t

The Zigbee ZCL configure report command struct.

typedef struct esp_zb_zcl_report_attr_cmd_s esp_zb_zcl_report_attr_cmd_t

The Zigbee ZCL report attribute command struct.

typedef struct esp_zb_zcl_disc_attr_cmd_s esp_zb_zcl_disc_attr_cmd_t

The Zigbee ZCL configure report command struct.

typedef struct esp_zb_zcl_basic_fact_reset_cmd_s esp_zb_zcl_basic_fact_reset_cmd_t

The Zigbee ZCL basic reset factory default command struct.

typedef struct esp_zb_zcl_on_off_cmd_s esp_zb_zcl_on_off_cmd_t

The Zigbee ZCL on-off command struct.

typedef struct esp_zb_zcl_on_off_off_with_effect_cmd_s esp_zb_zcl_on_off_off_with_effect_cmd_t

The Zigbee ZCL on-off off with effect command struct.

typedef struct esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_s esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_t

The Zigbee ZCL on-off on with recall global scene command struct.

typedef struct esp_zb_zcl_on_off_on_with_timed_off_cmd_s esp_zb_zcl_on_off_on_with_timed_off_cmd_t

The Zigbee ZCL on-off on with timed off command struct.

typedef struct esp_zb_zcl_identify_cmd_s esp_zb_zcl_identify_cmd_t

The Zigbee ZCL identify command struct.

typedef struct esp_zb_zcl_identify_trigger_effect_cmd_s esp_zb_zcl_identify_trigger_effect_cmd_t

The Zigbee ZCL identify trigger effect command strcut.

typedef struct esp_zb_zcl_identify_query_cmd_s esp_zb_zcl_identify_query_cmd_t

The Zigbee ZCL identify query command struct.

typedef struct esp_zb_zcl_comm_restart_device_cmd_s esp_zb_zcl_comm_restart_device_cmd_t

The Zigbee ZCL commisssioning restart device command struct.

typedef struct esp_zb_zcl_comm_save_startup_params_cmd_s esp_zb_zcl_comm_save_startup_params_cmd_t

The Zigbee ZCL commisssioning save startup parameters command struct.

typedef struct esp_zb_zcl_comm_restore_startup_params_cmd_s esp_zb_zcl_comm_restore_startup_params_cmd_t

The Zigbee ZCL commisssioning restore startup parameters command struct.

typedef struct esp_zb_zcl_comm_reset_startup_params_cmd_s esp_zb_zcl_comm_reset_startup_params_cmd_t

The Zigbee ZCL commisssioning reset startup parameters command struct.

typedef struct esp_zb_zcl_move_to_level_cmd_s esp_zb_zcl_move_to_level_cmd_t

The Zigbee ZCL level move to level command struct.

typedef struct esp_zb_zcl_level_move_cmd_s esp_zb_zcl_level_move_cmd_t

The Zigbee ZCL level move command struct.

typedef struct esp_zb_zcl_level_step_cmd_s esp_zb_zcl_level_step_cmd_t

The Zigbee ZCL level step command struct.

typedef struct esp_zb_zcl_level_stop_cmd_s esp_zb_zcl_level_stop_cmd_t

The Zigbee ZCL level stop command struct.

typedef struct esp_zb_zcl_color_move_to_hue_cmd_s esp_zb_zcl_color_move_to_hue_cmd_t

The Zigbee ZCL color move to hue command struct.

typedef struct esp_zb_zcl_color_move_hue_cmd_s esp_zb_zcl_color_move_hue_cmd_t

The Zigbee ZCL color move hue command struct.

typedef struct esp_zb_zcl_color_step_hue_cmd_s esp_zb_zcl_color_step_hue_cmd_t

The Zigbee ZCL color step hue command struct.

typedef struct esp_zb_zcl_color_move_to_saturation_cmd_s esp_zb_zcl_color_move_to_saturation_cmd_t

The Zigbee ZCL color move to saturation command struct.

typedef struct esp_zb_zcl_color_move_saturation_cmd_s esp_zb_zcl_color_move_saturation_cmd_t

The Zigbee ZCL color move saturation command struct.

typedef struct esp_zb_zcl_color_step_saturation_cmd_s esp_zb_zcl_color_step_saturation_cmd_t

The Zigbee ZCL color step saturation command struct.

typedef struct esp_zb_color_move_to_hue_saturation_cmd_s esp_zb_color_move_to_hue_saturation_cmd_t

The Zigbee ZCL color move to hue and saturation command struct.

typedef struct esp_zb_zcl_color_move_to_color_cmd_s esp_zb_zcl_color_move_to_color_cmd_t

The Zigbee ZCL color move to color command struct.

typedef struct esp_zb_zcl_color_move_color_cmd_s esp_zb_zcl_color_move_color_cmd_t

The Zigbee ZCL color move color command struct.

typedef struct esp_zb_zcl_color_step_color_cmd_s esp_zb_zcl_color_step_color_cmd_t

The Zigbee ZCL color step color command struct.

typedef struct esp_zb_zcl_color_stop_move_step_cmd_s esp_zb_zcl_color_stop_move_step_cmd_t

The Zigbee ZCL color stop command struct.

typedef struct esp_zb_zcl_color_move_to_color_temperature_cmd_s esp_zb_zcl_color_move_to_color_temperature_cmd_t

The Zigbee ZCL color move to color temperature command struct.

typedef struct esp_zb_zcl_color_enhanced_move_to_hue_cmd_s esp_zb_zcl_color_enhanced_move_to_hue_cmd_t

The Zigbee ZCL color enhanced move to hue command struct.

typedef struct esp_zb_zcl_color_enhanced_move_hue_cmd_s esp_zb_zcl_color_enhanced_move_hue_cmd_t

The Zigbee ZCL color enhanced move hue.

typedef struct esp_zb_zcl_color_enhanced_step_hue_cmd_s esp_zb_zcl_color_enhanced_step_hue_cmd_t

The Zigbee ZCL color enhanced step hue command struct.

typedef struct esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_s esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_t

The Zigbee ZCL color enhanced move to hue saturation command struct.

typedef struct esp_zb_zcl_color_color_loop_set_cmd_s esp_zb_zcl_color_color_loop_set_cmd_t

The Zigbee ZCL color color loop set command struct.

typedef struct esp_zb_zcl_color_move_color_temperature_cmd_s esp_zb_zcl_color_move_color_temperature_cmd_t

The Zigbee ZCL color move color temperature command struct.

typedef struct esp_zb_zcl_color_step_color_temperature_cmd_s esp_zb_zcl_color_step_color_temperature_cmd_t

The Zigbee ZCL color step color temperature command struct.

typedef struct esp_zb_zcl_lock_unlock_door_cmd_s esp_zb_zcl_lock_unlock_door_cmd_t

The Zigbee ZCL lock/unlock door command struct.

typedef struct esp_zb_zcl_groups_add_group_cmd_s esp_zb_zcl_groups_add_group_cmd_t

The Zigbee ZCL groups add group command struct.

Note

Group name currently is not supported, put empty string, Support of group names is optional, @see ZCL specification, subclause 3.6.2.2.2

typedef struct esp_zb_zcl_groups_remove_all_groups_cmd_s esp_zb_zcl_groups_remove_all_groups_cmd_t

The Zigbee ZCL groups remove all groups command struct.

typedef struct esp_zb_zcl_groups_get_group_membership_cmd_s esp_zb_zcl_groups_get_group_membership_cmd_t

The Zigbee ZCL groups get group membership command struct.

Note

Get group membership will set enable ZCL response by default, later will support this feature

typedef struct esp_zb_zcl_scenes_extension_field_s esp_zb_zcl_scenes_extension_field_t

The Zigbee ZCL scenes extension field struct.

typedef struct esp_zb_zcl_scenes_add_scene_cmd_s esp_zb_zcl_scenes_add_scene_cmd_t

The Zigbee ZCL scenes add scene command struct.

The maximum number of scenes capable of being stored in the table is 10.

typedef struct esp_zb_zcl_scenes_remove_scene_cmd_s esp_zb_zcl_scenes_remove_scene_cmd_t

The Zigbee ZCL scenes remove scene command struct.

typedef struct esp_zb_zcl_scenes_remove_all_scenes_cmd_s esp_zb_zcl_scenes_remove_all_scenes_cmd_t

The Zigbee ZCL scenes remove all scenes command struct.

typedef struct esp_zb_zcl_scenes_view_scene_cmd_s esp_zb_zcl_scenes_view_scene_cmd_t

The Zigbee ZCL scenes view scene command struct.

typedef struct esp_zb_zcl_scenes_store_scene_cmd_s esp_zb_zcl_scenes_store_scene_cmd_t

The Zigbee ZCL scenes store scene command struct.

typedef struct esp_zb_zcl_scenes_recall_scene_cmd_s esp_zb_zcl_scenes_recall_scene_cmd_t

The Zigbee ZCL scenes recall scene command struct.

typedef struct esp_zb_zcl_scenes_get_scene_membership_cmd_s esp_zb_zcl_scenes_get_scene_membership_cmd_t

The Zigbee ZCL scenes get scene membership command struct.

typedef struct esp_zb_zcl_ias_zone_enroll_response_cmd_s esp_zb_zcl_ias_zone_enroll_response_cmd_t

The Zigbee ZCL IAS zone enroll response command struct.

typedef struct esp_zb_zcl_ias_zone_status_change_notif_cmd_s esp_zb_zcl_ias_zone_status_change_notif_cmd_t

The Zigbee ZCL IAS zone Change Notification command struct.

typedef struct esp_zb_zcl_ias_zone_enroll_request_cmd_s esp_zb_zcl_ias_zone_enroll_request_cmd_t

The Zigbee ZCL IAS zone enroll request command struct.

typedef struct esp_zb_zcl_window_covering_cluster_send_cmd_req_s esp_zb_zcl_window_covering_cluster_send_cmd_req_t

The Zigbee ZCL window covering send command struct.

Note

value only support uint8_t, uint16_t data types for the Lift/Tilt value/percentage payload. If not, set to NULL

typedef struct esp_zb_zcl_electrical_profile_info_cmd_resp_s esp_zb_zcl_electrical_profile_info_cmd_resp_t

The Zigbee ZCL electrical profile information response command struct.

typedef struct esp_zb_zcl_electrical_measurement_profile_cmd_resp_s esp_zb_zcl_electrical_measurement_profile_cmd_resp_t

The Zigbee ZCL electrical profile response command struct.

typedef struct esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_s esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_t

The Zigbee ZCL thermostat setpoint raise lower request command struct.

typedef struct esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_s esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_t

The Zigbee ZCL thermostat set weekly schedule request command struct.

typedef struct esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_s esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_t

The Zigbee ZCL thermostat get weekly schedule request command struct.

typedef struct esp_zb_thermostat_clear_weekly_schedule_cmd_s esp_zb_thermostat_clear_weekly_schedule_cmd_t

The Zigbee ZCL thermostat clear weekly schedule request command struct.

typedef struct esp_zb_thermostat_get_relay_status_log_cmd_s esp_zb_thermostat_get_relay_status_log_cmd_t

The Zigbee ZCL thermostat get relay status log request command struct.

typedef struct esp_zb_metering_get_profile_cmd_s esp_zb_metering_get_profile_cmd_t

The Zigbee ZCL metering get profile request command struct.

typedef struct esp_zb_metering_request_fast_poll_mode_cmd_s esp_zb_metering_request_fast_poll_mode_cmd_t

The Zigbee ZCL metering request fast poll mode command struct.

typedef struct esp_zb_metering_get_snapshot_cmd_s esp_zb_metering_get_snapshot_cmd_t

The Zigbee ZCL metering get snapshot command struct.

typedef struct esp_zb_metering_get_sampled_data_cmd_s esp_zb_metering_get_sampled_data_cmd_t

The Zigbee ZCL metering get sampled data command struct.

typedef struct esp_zb_zcl_price_get_current_price_cmd_s esp_zb_zcl_price_get_current_price_cmd_t

The Zigbee ZCL price get current price command struct.

typedef struct esp_zb_zcl_price_get_scheduled_prices_cmd_s esp_zb_zcl_price_get_scheduled_prices_cmd_t

The Zigbee ZCL price get scheduled prices command struct.

typedef struct esp_zb_zcl_price_get_tier_labels_cmd_s esp_zb_zcl_price_get_tier_labels_cmd_t

The Zigbee ZCL price get tier labels command struct.

typedef struct esp_zb_zcl_custom_cluster_cmd_s esp_zb_zcl_custom_cluster_cmd_t

The Zigbee ZCL custom cluster command struct.

Note

For string data type, the first byte should be the length of string. For array, array16, array32, and long string data types, the first 2 bytes should represent the number of elements in the array. The size of data is only required when the type is ESP_ZB_ZCL_ATTR_TYPE_SET, ESP_ZB_ZCL_ATTR_TYPE_BAG, or CUSTOM_TYPE.

typedef esp_zb_zcl_custom_cluster_cmd_t esp_zb_zcl_custom_cluster_cmd_req_t

The Zigbee ZCL custom cluster request command struct.

typedef esp_zb_zcl_custom_cluster_cmd_t esp_zb_zcl_custom_cluster_cmd_resp_t

The Zigbee ZCL custom cluster response command struct.

typedef struct esp_zb_device_cb_common_info_s esp_zb_device_cb_common_info_t

The Zigbee zcl cluster device callback common information.

typedef struct esp_zb_zcl_set_attr_value_message_s esp_zb_zcl_set_attr_value_message_t

The Zigbee zcl set attribute value device callback message struct.

typedef struct esp_zb_zcl_store_scene_message_s esp_zb_zcl_store_scene_message_t

The Zigbee zcl scene cluster store scene device callback message struct.

typedef struct esp_zb_zcl_recall_scene_message_s esp_zb_zcl_recall_scene_message_t

The Zigbee zcl scene cluster recall scene device callback message struct.

typedef struct esp_zb_zcl_ias_zone_enroll_response_message_s esp_zb_zcl_ias_zone_enroll_response_message_t

The Zigbee zcl ias zone cluster enroll response device callback message struct.

typedef struct esp_zb_zcl_ota_upgrade_value_message_s esp_zb_zcl_ota_upgrade_value_message_t

The Zigbee zcl ota upgrade value device callback message struct.

typedef struct esp_zb_zcl_ota_upgrade_server_status_message_s esp_zb_zcl_ota_upgrade_server_status_message_t

The Zigbee zcl ota upgrade server status message struct.

typedef struct esp_zb_zcl_ota_upgrade_server_query_image_message_s esp_zb_zcl_ota_upgrade_server_query_image_message_t

The Zigbee zcl ota upgrade server query image message struct.

typedef struct esp_zb_zcl_thermostat_value_message_s esp_zb_zcl_thermostat_value_message_t

The Zigbee zcl thermostat value callback message struct.

typedef struct esp_zb_zcl_frame_header_s esp_zb_zcl_frame_header_t

The frame header of Zigbee zcl command struct.

Note

frame control field: |-&#8212;1 bit&#8212;|——&#8212;1 bit——&#8212;|&#8212;1 bit&#8212;|——-&#8212;1 bit——–&#8212;|&#8212;4 bit&#8212;| | Frame type | Manufacturer specific | Direction | Disable Default Response | Reserved |

typedef struct esp_zb_zcl_metering_get_profile_resp_info_offered_s esp_zb_zcl_metering_get_profile_resp_info_offered_t

The Zigbee zcl metering get profile response info offered by user struct.

typedef struct esp_zb_zcl_metering_get_profile_message_s esp_zb_zcl_metering_get_profile_message_t

The Zigbee zcl metering get profile callback message struct.

typedef struct esp_zb_zcl_metering_get_profile_resp_message_s esp_zb_zcl_metering_get_profile_resp_message_t

The Zigbee zcl metering get profile response callback message struct.

typedef struct esp_zb_zcl_metering_request_fast_poll_mode_resp_info_offered_s esp_zb_zcl_metering_request_fast_poll_mode_resp_info_offered_t

The Zigbee zcl metering get profile response info offered by user struct.

typedef struct esp_zb_zcl_metering_request_fast_poll_mode_message_s esp_zb_zcl_metering_request_fast_poll_mode_message_t

The Zigbee zcl metering request fast poll mode callback message struct.

typedef struct esp_zb_zcl_metering_request_fast_poll_mode_resp_message_s esp_zb_zcl_metering_request_fast_poll_mode_resp_message_t

The Zigbee zcl metering request fast poll mode response callback message struct.

typedef struct esp_zb_zcl_metering_tou_delivered_payload_s esp_zb_zcl_metering_tou_delivered_payload_t

The Zigbee zcl metering snapshot tou delivered sub-payload struct.

typedef struct esp_zb_zcl_metering_tou_received_payload_s esp_zb_zcl_metering_tou_received_payload_t

The Zigbee zcl metering snapshot tou received sub-payload struct.

typedef struct esp_zb_zcl_metering_block_tier_delivered_payload_s esp_zb_zcl_metering_block_tier_delivered_payload_t

The Zigbee zcl metering snapshot block delivered sub-payload struct.

typedef struct esp_zb_zcl_metering_block_tier_received_payload_s esp_zb_zcl_metering_block_tier_received_payload_t

The Zigbee zcl metering snapshot block received sub-payload struct.

typedef struct esp_zb_zcl_metering_tou_delivered_no_billing_payload_s esp_zb_zcl_metering_tou_delivered_no_billing_payload_t

The Zigbee zcl metering snapshot tou delivered no billing sub-payload struct.

typedef struct esp_zb_zcl_metering_tou_received_no_billing_payload_s esp_zb_zcl_metering_tou_received_no_billing_payload_t

The Zigbee zcl metering snapshot tou received no billing sub-payload struct.

typedef struct esp_zb_zcl_metering_block_tier_delivered_no_billing_payload_s esp_zb_zcl_metering_block_tier_delivered_no_billing_payload_t

The Zigbee zcl metering snapshot block tier delivered no billing sub-payload struct.

typedef struct esp_zb_zcl_metering_block_tier_received_no_billing_payload_s esp_zb_zcl_metering_block_tier_received_no_billing_payload_t

The Zigbee zcl metering snapshot block tier received no billing sub-payload struct.

typedef union esp_zb_zcl_metering_snapshot_sub_payload_s esp_zb_zcl_metering_snapshot_sub_payload_t

The Zigbee zcl metering snapshot sub-payload struct.

typedef struct esp_zb_zcl_metering_snapshot_s esp_zb_zcl_metering_snapshot_t

The Zigbee zcl metering snapshot struct.

typedef struct esp_zb_zcl_metering_get_snapshot_message_s esp_zb_zcl_metering_get_snapshot_message_t

The Zigbee zcl metering get snapshot callback message struct.

typedef struct esp_zb_zcl_metering_publish_snapshot_message_s esp_zb_zcl_metering_publish_snapshot_message_t

The Zigbee zcl metering publish snapshot struct.

typedef struct esp_zb_zcl_metering_get_sampled_data_resp_info_offered_s esp_zb_zcl_metering_get_sampled_data_resp_info_offered_t

The Zigbee zcl metering get sampled data response info offered by user struct.

typedef struct esp_zb_zcl_metering_get_sampled_data_message_s esp_zb_zcl_metering_get_sampled_data_message_t

The Zigbee zcl metering get sampled data callback message struct.

typedef struct esp_zb_zcl_metering_get_sampled_data_resp_message_s esp_zb_zcl_metering_get_sampled_data_resp_message_t

The Zigbee zcl metering get sampled data response callback message struct.

typedef struct esp_zb_zcl_price_publish_price_s esp_zb_zcl_price_publish_price_t

The Zigbee zcl price publish price struct.

typedef struct esp_zb_zcl_price_get_current_price_message_s esp_zb_zcl_price_get_current_price_message_t

The Zigbee zcl price get current price callback message struct.

typedef struct esp_zb_zcl_price_get_scheduled_prices_message_s esp_zb_zcl_price_get_scheduled_prices_message_t

The Zigbee zcl price get scheduled prices callback message struct.

typedef struct esp_zb_zcl_price_publish_price_message_s esp_zb_zcl_price_publish_price_message_t

The Zigbee zcl price publish price callback message struct.

typedef struct esp_zb_zcl_price_ack_message_s esp_zb_zcl_price_ack_message_t

The Zigbee zcl price acknowledgement callback message struct.

typedef struct esp_zb_zcl_price_tier_label_entry_s esp_zb_zcl_price_tier_label_entry_t

The Zigbee ZCL price tier label entry struct.

typedef struct esp_zb_price_publish_tier_labels_info_s esp_zb_price_publish_tier_labels_info_t

The Zigbee ZCL price publish tier labels information struct.

typedef struct esp_zb_zcl_price_get_tier_labels_message_s esp_zb_zcl_price_get_tier_labels_message_t

The Zigbee ZCL price publish tier labels callback message struct.

typedef struct esp_zb_zcl_price_publish_tier_labels_message_s esp_zb_zcl_price_publish_tier_labels_message_t

The Zigbee ZCL price publish tier labels callback message struct.

typedef struct esp_zigbee_zcl_commissioning_restart_device_message_s esp_zigbee_zcl_commissioning_restart_device_message_t

The Zigbee ZCL commissioning restart device callback message struct.

typedef struct esp_zigbee_zcl_commissioning_operate_startup_parameters_message_s esp_zigbee_zcl_commissioning_operate_startup_parameters_message_t

The Zigbee ZCL commissioning startup parameters operation callback message struct.

typedef struct esp_zigbee_zcl_commissioning_command_response_message_s esp_zigbee_zcl_commissioning_command_response_message_t

The Zigbee ZCL commissioning startup parameters operation callback message struct.

typedef struct esp_zb_zcl_door_lock_lock_door_message_s esp_zb_zcl_door_lock_lock_door_message_t

The Zigbee zcl door lock callback message struct.

typedef struct esp_zb_zcl_door_lock_lock_door_resp_message_s esp_zb_zcl_door_lock_lock_door_resp_message_t

The Zigbee zcl door lock repsonse callback message struct.

typedef struct esp_zb_zcl_identify_effect_message_s esp_zb_zcl_identify_effect_message_t

The Zigbee zcl identify cluster calls identify effect command message struct.

typedef struct esp_zb_zcl_basic_reset_factory_default_message_s esp_zb_zcl_basic_reset_factory_default_message_t

The Zigbee zcl basic cluster reset to factory defualt message.

typedef struct esp_zb_zcl_cmd_info_s esp_zb_zcl_cmd_info_t

The Zigbee zcl command basic application information struct.

typedef struct esp_zb_zcl_report_attr_message_s esp_zb_zcl_report_attr_message_t

The Zigbee zcl attribute report message struct.

typedef struct esp_zb_zcl_read_attr_resp_variable_s esp_zb_zcl_read_attr_resp_variable_t

The variable of Zigbee zcl read attribute response.

typedef struct esp_zb_zcl_cmd_read_attr_resp_message_s esp_zb_zcl_cmd_read_attr_resp_message_t

The Zigbee zcl read attribute response struct.

typedef struct esp_zb_zcl_write_attr_resp_variable_s esp_zb_zcl_write_attr_resp_variable_t

The variable of Zigbee zcl write attribute response.

typedef struct esp_zb_zcl_cmd_write_attr_resp_message_s esp_zb_zcl_cmd_write_attr_resp_message_t

The Zigbee zcl response struct for writing attribute.

typedef struct esp_zb_zcl_config_report_resp_variable_s esp_zb_zcl_config_report_resp_variable_t

The variable of Zigbee zcl configures report attribute response.

typedef struct esp_zb_zcl_cmd_config_report_resp_message_s esp_zb_zcl_cmd_config_report_resp_message_t

The Zigbee zcl configure report response struct.

typedef struct esp_zb_zcl_cmd_read_report_config_resp_message_s esp_zb_zcl_cmd_read_report_config_resp_message_t

The Zigbee zcl reading report configuration response struct.

typedef struct esp_zb_zcl_disc_attr_variable_s esp_zb_zcl_disc_attr_variable_t

Attribute information field for discovering attributes response struct.

typedef struct esp_zb_zcl_cmd_discover_attributes_resp_message_s esp_zb_zcl_cmd_discover_attributes_resp_message_t

The Zigbee zcl discover attribute response struct.

typedef struct esp_zb_zcl_cmd_default_resp_message_s esp_zb_zcl_cmd_default_resp_message_t

The Zigbee command default response struct.

typedef struct esp_zb_zcl_groups_operate_group_resp_message_s esp_zb_zcl_groups_operate_group_resp_message_t

The Zigbee zcl group operation response struct.

Note

Operation: add or remove

typedef struct esp_zb_zcl_groups_view_group_resp_message_s esp_zb_zcl_groups_view_group_resp_message_t

The Zigbee zcl group view response struct.

typedef struct esp_zb_zcl_groups_get_group_membership_resp_message_s esp_zb_zcl_groups_get_group_membership_resp_message_t

The Zigbee zcl group get membership response struct.

typedef struct esp_zb_zcl_scenes_operate_scene_resp_message_s esp_zb_zcl_scenes_operate_scene_resp_message_t

The Zigbee ZCL scenes operate response struct.

Note

Operation: add or remove or remove_all or store, refer to esp_zb_zcl_scenes_cmd_resp_id_t

typedef struct esp_zb_zcl_scenes_view_scene_resp_message_s esp_zb_zcl_scenes_view_scene_resp_message_t

The Zigbee ZCL scenes view scene response struct.

typedef struct esp_zb_zcl_scenes_get_scene_membership_resp_message_s esp_zb_zcl_scenes_get_scene_membership_resp_message_t

The Zigbee ZCL scenes get scene membership response struct.

typedef struct esp_zb_zcl_ias_zone_enroll_request_message_s esp_zb_zcl_ias_zone_enroll_request_message_t

The Zigbee ZCL IAS Zone enroll request message struct.

typedef struct esp_zb_zcl_ias_zone_status_change_notification_message_s esp_zb_zcl_ias_zone_status_change_notification_message_t

The Zigbee ZCL IAS Zone status change notification response message struct.

typedef struct esp_zb_zcl_privilege_command_message_s esp_zb_zcl_privilege_command_message_t

The Zigbee zcl privilege command message struct.

typedef struct esp_zb_zcl_custom_cluster_command_message_s esp_zb_zcl_custom_cluster_command_message_t

The Zigbee zcl customized cluster message struct.

Note

For string data type, the first byte should be the length of string. For array, array16, array32, and long string data types, the first 2 bytes should represent the number of elements in the array.

The Zigbee touchlink group information record struct.

The Zigbee ZCL touchlink commissioning get group identifiers response struct.

The Zigbee touchlink endpoint list record struct.

The Zigbee ZCL touchlink commissioning get endpoint list response struct.

The Zigbee ZCL touchlink commissioning endpoint information struct.

The Zigbee touchlink get group identifiers request command struct.

The Zigbee touchlink get endpoint list request command struct.

The Zigbee touchlink endpoint information request command struct.

Enumerations

enum esp_zb_zcl_address_mode_t

Enum of the Zigbee ZCL address mode

Note

Defined the ZCL command of address_mode.

Values:

enumerator ESP_ZB_APS_ADDR_MODE_DST_ADDR_ENDP_NOT_PRESENT

DstAddress and DstEndpoint not present

enumerator ESP_ZB_APS_ADDR_MODE_16_GROUP_ENDP_NOT_PRESENT

16-bit group address for DstAddress; DstEndpoint not present

enumerator ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT

16-bit address for DstAddress and DstEndpoint present

enumerator ESP_ZB_APS_ADDR_MODE_64_ENDP_PRESENT

64-bit extended address for DstAddress and DstEndpoint present

enum esp_zb_zcl_cmd_direction_t

ZCL command direction enum.

Values:

enumerator ESP_ZB_ZCL_CMD_DIRECTION_TO_SRV

Command for cluster server side

enumerator ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI

Command for cluster client side

enum esp_zb_zcl_commissioning_startup_parameters_operation_t

The Zigbee ZCL commissioning startup parameters operation struct.

Values:

enumerator ESP_ZB_ZCL_COMMISSIONING_STARTUP_PARAMETERS_OPERATION_SAVE

Indicates to save startup parameter set

enumerator ESP_ZB_ZCL_COMMISSIONING_STARTUP_PARAMETERS_OPERATION_RESTORE

Indicates to restore startup parameter set

enumerator ESP_ZB_ZCL_COMMISSIONING_STARTUP_PARAMETERS_OPERATION_ERASE

Indicates to erase startup parameter set

enumerator ESP_ZB_ZCL_COMMISSIONING_STARTUP_PARAMETERS_OPERATION_RESET

Indicates to reset startup parameter set

enumerator ESP_ZB_ZCL_COMMISSIONING_STARTUP_PARAMETERS_OPERATION_RESET_ALL

Indicates to reset all startup parameter set