-
Notifications
You must be signed in to change notification settings - Fork 25
/
esp_zigbee_zcl_command.h
3314 lines (2984 loc) · 174 KB
/
esp_zigbee_zcl_command.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_err.h"
#include "esp_zigbee_ota.h"
#include <stdint.h>
#include "aps/esp_zigbee_aps.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "esp_zigbee_type.h"
#include "esp_zigbee_zcl_common.h"
#ifdef CONFIG_ZB_GP_ENABLED
#include "zgp/esp_zigbee_zgp.h"
#endif /* CONFIG_ZB_GP_ENABLED */
/** Defined the ZCL command of address_mode */
typedef esp_zb_aps_address_mode_t esp_zb_zcl_address_mode_t;
/**
* @brief ZCL command direction enum
* @anchor esp_zb_zcl_cmd_direction
*/
typedef enum {
ESP_ZB_ZCL_CMD_DIRECTION_TO_SRV = 0x00U, /*!< Command for cluster server side */
ESP_ZB_ZCL_CMD_DIRECTION_TO_CLI = 0x01U, /*!< Command for cluster client side */
} esp_zb_zcl_cmd_direction_t;
/**
* @brief ZCL report direction enum of attribute
* @anchor esp_zb_zcl_report_direction_t
*/
typedef enum {
ESP_ZB_ZCL_REPORT_DIRECTION_SEND = 0x00U, /**< Report should be sent by a cluster. */
ESP_ZB_ZCL_REPORT_DIRECTION_RECV = 0x01U, /**< Report should be received by a cluster. */
} esp_zb_zcl_report_direction_t;
/**
* @brief The application message of ZCL command send status message
*
*/
typedef struct esp_zb_zcl_command_send_status_s {
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 */
} esp_zb_zcl_command_send_status_message_t;
/**
* @brief The callback of Zigbee zcl command send status
*
*/
typedef void (*esp_zb_zcl_command_send_status_callback_t)(esp_zb_zcl_command_send_status_message_t message);
/**
* @brief The Zigbee zcl cluster attribute value struct
*
*/
typedef struct esp_zb_zcl_attribute_data_s {
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 */
} ESP_ZB_PACKED_STRUCT esp_zb_zcl_attribute_data_t;
/**
* @brief The Zigbee zcl cluster attribute struct
*
*/
typedef struct esp_zb_zcl_attribute_s {
uint16_t id; /*!< The identify of attribute */
esp_zb_zcl_attribute_data_t data; /*!< The data fo attribute */
} esp_zb_zcl_attribute_t;
/**
* @brief The Zigbee zcl custom cluster handlers struct
*
*/
typedef struct esp_zb_zcl_custom_cluster_handlers_s {
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 */
} esp_zb_zcl_custom_cluster_handlers_t;
/**
* @brief The Zigbee zcl cluster command properties struct
*
*/
typedef struct esp_zb_zcl_command_s {
uint8_t id; /*!< The command id */
uint8_t direction; /*!< The command direction */
uint8_t is_common; /*!< The command is common type */
} esp_zb_zcl_command_t;
/**
* @brief The Zigbee ZCL basic command info
*
*/
typedef struct esp_zb_zcl_basic_cmd_s {
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 */
} esp_zb_zcl_basic_cmd_t;
/**
* @brief The Zigbee ZCL command common struct, no command specific payload
*
*/
typedef struct esp_zb_zcl_common_cmd_s {
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_common_cmd_t;
/**
* @brief The Zigbee ZCL read attribute command struct
*
*/
typedef struct esp_zb_zcl_read_attr_cmd_s {
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 */
} esp_zb_zcl_read_attr_cmd_t;
/**
* @brief The Zigbee ZCL write attribute command struct
*
*/
typedef struct esp_zb_zcl_write_attr_cmd_s {
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, @ref esp_zb_zcl_attribute_s */
} esp_zb_zcl_write_attr_cmd_t;
/**
* @brief The Zigbee zcl configure report record struct
*
*/
typedef struct esp_zb_zcl_config_report_record_s {
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 */
} esp_zb_zcl_config_report_record_t;
/**
* @brief The Zigbee ZCL configure report command struct
*
*/
typedef struct esp_zb_zcl_config_report_cmd_s {
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, @ref esp_zb_zcl_config_report_record_s */
} esp_zb_zcl_config_report_cmd_t;
/**
* @brief The Zigbee ZCL Attribute record struct
*
*/
typedef struct esp_zb_zcl_attribute_record_s {
uint8_t report_direction; /*!< Report direction of this attribute, @ref esp_zb_zcl_report_direction_t */
uint16_t attributeID; /*!< Attribute ID to report */
} esp_zb_zcl_attribute_record_t;
/**
* @brief The Zigbee ZCL read report configuration command struct
*
*/
typedef struct esp_zb_zcl_read_report_config_cmd_s {
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 attribute records in the record_field */
esp_zb_zcl_attribute_record_t *record_field; /*!< Attribute records, @ref esp_zb_zcl_attribute_record_s */
} esp_zb_zcl_read_report_config_cmd_t;
/**
* @brief The Zigbee ZCL report attribute command struct
*
*/
typedef struct esp_zb_zcl_report_attr_cmd_s {
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 */
} esp_zb_zcl_report_attr_cmd_t;
/* ZCL basic cluster */
/**
* @brief The Zigbee ZCL configure report command struct
*
*/
typedef struct esp_zb_zcl_disc_attr_cmd_s {
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 */
} esp_zb_zcl_disc_attr_cmd_t;
/**
* @brief The Zigbee ZCL basic reset factory default command struct
*
*/
typedef struct esp_zb_zcl_basic_fact_reset_cmd_s {
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_basic_fact_reset_cmd_t;
/* ZCL on/off cluster */
/**
* @brief The Zigbee ZCL on-off command struct
*
*/
typedef struct esp_zb_zcl_on_off_cmd_s {
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 */
} esp_zb_zcl_on_off_cmd_t;
/**
* @brief The Zigbee ZCL on-off off with effect command struct
*
*/
typedef struct esp_zb_zcl_on_off_off_with_effect_cmd_s {
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. */
} esp_zb_zcl_on_off_off_with_effect_cmd_t;
/**
* @brief The Zigbee ZCL on-off on with recall global scene command struct
*
*/
typedef struct esp_zb_zcl_on_off_on_with_recall_global_scene_cmd_s {
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_on_off_on_with_recall_global_scene_cmd_t;
/**
* @brief The Zigbee ZCL on-off on with timed off command struct
*
*/
typedef struct esp_zb_zcl_on_off_on_with_timed_off_cmd_s {
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" */
} esp_zb_zcl_on_off_on_with_timed_off_cmd_t;
/* ZCL identify cluster */
/**
* @brief The Zigbee ZCL identify command struct
*
*/
typedef struct esp_zb_zcl_identify_cmd_s {
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 */
} esp_zb_zcl_identify_cmd_t;
/**
* @brief The Zigbee ZCL identify trigger effect command strcut
*
*/
typedef struct esp_zb_zcl_identify_trigger_effect_cmd_s {
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 */
} esp_zb_zcl_identify_trigger_effect_cmd_t;
/**
* @brief The Zigbee ZCL identify query command struct
*
*/
typedef struct esp_zb_zcl_identify_query_cmd_s {
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_identify_query_cmd_t;
/* ZCL commisssioning cluster */
/**
* @brief The Zigbee ZCL commisssioning restart device command struct
*
*/
typedef struct esp_zb_zcl_comm_restart_device_cmd_s {
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 */
} esp_zb_zcl_comm_restart_device_cmd_t;
/**
* @brief The Zigbee ZCL commisssioning save startup parameters command struct
*
*/
typedef struct esp_zb_zcl_comm_save_startup_params_cmd_s {
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 */
} esp_zb_zcl_comm_save_startup_params_cmd_t;
/**
* @brief The Zigbee ZCL commisssioning restore startup parameters command struct
*
*/
typedef struct esp_zb_zcl_comm_restore_startup_params_cmd_s {
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 */
} esp_zb_zcl_comm_restore_startup_params_cmd_t;
/**
* @brief The Zigbee ZCL commisssioning reset startup parameters command struct
*
*/
typedef struct esp_zb_zcl_comm_reset_startup_params_cmd_s {
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 */
} esp_zb_zcl_comm_reset_startup_params_cmd_t;
/* ZCL level cluster */
/**
* @brief The Zigbee ZCL level move to level command struct
*
*/
typedef struct esp_zb_zcl_move_to_level_cmd_s {
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 */
} esp_zb_zcl_move_to_level_cmd_t;
/**
* @brief The Zigbee ZCL level move command struct
*
*/
typedef struct esp_zb_zcl_level_move_cmd_s {
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 */
} esp_zb_zcl_level_move_cmd_t;
/**
* @brief The Zigbee ZCL level step command struct
*
*/
typedef struct esp_zb_zcl_level_step_cmd_s {
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 */
} esp_zb_zcl_level_step_cmd_t;
/**
* @brief The Zigbee ZCL level stop command struct
*
*/
typedef struct esp_zb_zcl_level_stop_cmd_s {
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_level_stop_cmd_t;
/* ZCL color cluster */
/**
* @brief The Zigbee ZCL color move to hue command struct
*
*/
typedef struct esp_zb_zcl_color_move_to_hue_cmd_s {
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 */
} esp_zb_zcl_color_move_to_hue_cmd_t;
/**
* @brief The Zigbee ZCL color move hue command struct
*
*/
typedef struct esp_zb_zcl_color_move_hue_cmd_s {
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 */
} esp_zb_zcl_color_move_hue_cmd_t;
/**
* @brief The Zigbee ZCL color step hue command struct
*
*/
typedef struct esp_zb_zcl_color_step_hue_cmd_s {
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 */
} esp_zb_zcl_color_step_hue_cmd_t;
/**
* @brief The Zigbee ZCL color move to saturation command struct
*
*/
typedef struct esp_zb_zcl_color_move_to_saturation_cmd_s {
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 */
} esp_zb_zcl_color_move_to_saturation_cmd_t;
/**
* @brief The Zigbee ZCL color move saturation command struct
*
*/
typedef struct esp_zb_zcl_color_move_saturation_cmd_s {
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 */
} esp_zb_zcl_color_move_saturation_cmd_t;
/**
* @brief The Zigbee ZCL color step saturation command struct
*
*/
typedef struct esp_zb_zcl_color_step_saturation_cmd_s {
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 */
} esp_zb_zcl_color_step_saturation_cmd_t;
/**
* @brief The Zigbee ZCL color move to hue and saturation command struct
*
*/
typedef struct esp_zb_color_move_to_hue_saturation_cmd_s {
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 */
} esp_zb_color_move_to_hue_saturation_cmd_t;
/**
* @brief The Zigbee ZCL color move to color command struct
*
*/
typedef struct esp_zb_zcl_color_move_to_color_cmd_s {
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 */
} esp_zb_zcl_color_move_to_color_cmd_t;
/**
* @brief The Zigbee ZCL color move color command struct
*
*/
typedef struct esp_zb_zcl_color_move_color_cmd_s {
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 */
} esp_zb_zcl_color_move_color_cmd_t;
/**
* @brief The Zigbee ZCL color step color command struct
*
*/
typedef struct esp_zb_zcl_color_step_color_cmd_s {
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 */
} esp_zb_zcl_color_step_color_cmd_t;
/**
* @brief The Zigbee ZCL color stop command struct
*
*/
typedef struct esp_zb_zcl_color_stop_move_step_cmd_s {
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_color_stop_move_step_cmd_t;
/**
* @brief The Zigbee ZCL color move to color temperature command struct
*
*/
typedef struct esp_zb_zcl_color_move_to_color_temperature_cmd_s {
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 */
} esp_zb_zcl_color_move_to_color_temperature_cmd_t;
/**
* @brief The Zigbee ZCL color enhanced move to hue command struct
*
*/
typedef struct esp_zb_zcl_color_enhanced_move_to_hue_cmd_s {
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 */
} esp_zb_zcl_color_enhanced_move_to_hue_cmd_t;
/**
* @brief The Zigbee ZCL color enhanced move hue
*
*/
typedef struct esp_zb_zcl_color_enhanced_move_hue_cmd_s {
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 */
} esp_zb_zcl_color_enhanced_move_hue_cmd_t;
/**
* @brief The Zigbee ZCL color enhanced step hue command struct
*
*/
typedef struct esp_zb_zcl_color_enhanced_step_hue_cmd_s {
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 */
} esp_zb_zcl_color_enhanced_step_hue_cmd_t;
/**
* @brief The Zigbee ZCL color enhanced move to hue saturation command struct
*
*/
typedef struct esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_s {
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 */
} esp_zb_zcl_color_enhanced_move_to_hue_saturation_cmd_t;
/**
* @brief The Zigbee ZCL color color loop set command struct
*
*/
typedef struct esp_zb_zcl_color_color_loop_set_cmd_s {
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 */
} esp_zb_zcl_color_color_loop_set_cmd_t;
/**
* @brief The Zigbee ZCL color move color temperature command struct
*
*/
typedef struct esp_zb_zcl_color_move_color_temperature_cmd_s {
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 */
} esp_zb_zcl_color_move_color_temperature_cmd_t;
/**
* @brief The Zigbee ZCL color step color temperature command struct
*
*/
typedef struct esp_zb_zcl_color_step_color_temperature_cmd_s {
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*/
} esp_zb_zcl_color_step_color_temperature_cmd_t;
/**
* @brief The Zigbee ZCL lock/unlock door command struct
*
*/
typedef struct esp_zb_zcl_lock_unlock_door_cmd_s {
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_lock_unlock_door_cmd_t;
/**
* @brief 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_add_group_cmd_s {
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 */
} esp_zb_zcl_groups_add_group_cmd_t;
/**
* @brief The Zigbee ZCL groups remove all groups command struct
*
*/
typedef struct esp_zb_zcl_groups_remove_all_groups_cmd_s {
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_groups_remove_all_groups_cmd_t;
/**
* @brief 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_groups_get_group_membership_cmd_s {
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 group_count; /*!< Total group count */
uint16_t *group_list; /*!< Maximum group list */
} esp_zb_zcl_groups_get_group_membership_cmd_t;
/**
* @brief The Zigbee ZCL scenes extension field struct
*
*/
typedef struct esp_zb_zcl_scenes_extension_field_s {
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 */
} esp_zb_zcl_scenes_extension_field_t;
/**
* @brief 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_add_scene_cmd_s {
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 */
} esp_zb_zcl_scenes_add_scene_cmd_t;
/**
* @brief The Zigbee ZCL scenes remove scene command struct
*
*/
typedef struct esp_zb_zcl_scenes_remove_scene_cmd_s {
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 */
} esp_zb_zcl_scenes_remove_scene_cmd_t;
/**
* @brief The Zigbee ZCL scenes remove all scenes command struct
*
*/
typedef struct esp_zb_zcl_scenes_remove_all_scenes_cmd_s {
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 */
} esp_zb_zcl_scenes_remove_all_scenes_cmd_t;
/**
* @brief The Zigbee ZCL scenes view scene command struct
*
*/
typedef struct esp_zb_zcl_scenes_view_scene_cmd_s {
esp_zb_zcl_basic_cmd_t zcl_basic_cmd; /*!< Basic command info */
uint16_t group_id; /*!< Group id */
uint8_t scene_id; /*!< Scene id */
} esp_zb_zcl_scenes_view_scene_cmd_t;
/**
* @brief The Zigbee ZCL scenes store scene command struct
*
*/
typedef struct esp_zb_zcl_scenes_store_scene_cmd_s {
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 */
} esp_zb_zcl_scenes_store_scene_cmd_t;
/**
* @brief The Zigbee ZCL scenes recall scene command struct
*
*/
typedef struct esp_zb_zcl_scenes_recall_scene_cmd_s {
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 */
} esp_zb_zcl_scenes_recall_scene_cmd_t;
/**
* @brief The Zigbee ZCL scenes get scene membership command struct
*
*/
typedef struct esp_zb_zcl_scenes_get_scene_membership_cmd_s {
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 */
} esp_zb_zcl_scenes_get_scene_membership_cmd_t;
/**
* @brief The Zigbee ZCL IAS zone enroll response command struct
*/
typedef struct esp_zb_zcl_ias_zone_enroll_response_cmd_s {
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 */
} esp_zb_zcl_ias_zone_enroll_response_cmd_t;
/**
* @brief The Zigbee ZCL IAS zone Change Notification command struct
*/
typedef struct esp_zb_zcl_ias_zone_status_change_notif_cmd_s {
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 */
} esp_zb_zcl_ias_zone_status_change_notif_cmd_t;
/**
* @brief The Zigbee ZCL IAS zone enroll request command struct
*/
typedef struct esp_zb_zcl_ias_zone_enroll_request_cmd_s {
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 */
} esp_zb_zcl_ias_zone_enroll_request_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Arm command struct
*/
typedef struct esp_zb_zcl_ias_ace_arm_cmd_s {
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_ias_ace_arm_t payload; /*!< Arm command payload */
} esp_zb_zcl_ias_ace_arm_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Bypass command struct
*/
typedef struct esp_zb_zcl_ias_ace_bypass_cmd_s {
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_ias_ace_bypass_t payload; /*!< Bypass command payload */
} esp_zb_zcl_ias_ace_bypass_cmd_t;
/**
* @brief The Zigbee ZCL IAS_WD Start Warning command struct
*/
typedef struct esp_zb_zcl_ias_wd_start_warning_cmd_s {
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_ias_wd_start_warning_t payload; /*!< Start Warning command payload */
} esp_zb_zcl_ias_wd_start_warning_cmd_t;
/**
* @brief The Zigbee ZCL IAS_WD Squawk command struct
*/
typedef struct esp_zb_zcl_ias_wd_squawk_cmd_s {
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_ias_wd_squawk_t payload; /*!< Squawk command payload */
} esp_zb_zcl_ias_wd_squawk_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Emergency command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_emergency_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Fire command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_fire_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Panic command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_panic_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Get Zone ID Map command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_get_zone_id_map_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Get Zone Information command struct
*/
typedef struct esp_zb_zcl_ias_ace_get_zone_info_cmd_s {
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 zone_id; /*!< ID of the Zone to get the information */
} esp_zb_zcl_ias_ace_get_zone_info_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Get Panel Status command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_get_panel_status_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Get Bypassed Zone List command struct
*/
typedef esp_zb_zcl_common_cmd_t esp_zb_zcl_ias_ace_get_bypassed_zone_list_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Get Zone Status command struct
*/
typedef struct esp_zb_zcl_ias_ace_get_zone_status_cmd_s {
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_ias_ace_get_zone_status_t payload; /*!< Get Zone Status command payload */
} esp_zb_zcl_ias_ace_get_zone_status_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Zone Status Changed command struct
*/
typedef struct esp_zb_zcl_ias_ace_zone_status_changed_cmd_s {
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_ias_ace_zone_status_changed_t payload; /*!< Zone Status Changed command payload */
} esp_zb_zcl_ias_ace_zone_status_changed_cmd_t;
/**
* @brief The Zigbee ZCL IAS_ACE Panel Status Changed command struct
*/
typedef struct esp_zb_zcl_ias_ace_panel_status_changed_cmd_s {
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_ias_ace_panel_status_changed_t payload; /*!< Panel Status Changed command payload */
} esp_zb_zcl_ias_ace_panel_status_changed_cmd_t;
/**
* @brief 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_window_covering_cluster_send_cmd_req_s {
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 payload value of window covering command */
uint8_t cmd_id; /*!< Command id, refer to esp_zb_zcl_window_covering_cmd_t */
} esp_zb_zcl_window_covering_cluster_send_cmd_req_t;
/**
* @brief The Zigbee ZCL electrical profile information response command struct
*/
typedef struct esp_zb_zcl_electrical_profile_info_cmd_resp_s {
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 */
} esp_zb_zcl_electrical_profile_info_cmd_resp_t;
/**
* @brief The Zigbee ZCL electrical profile response command struct
*/
typedef struct esp_zb_zcl_electrical_measurement_profile_cmd_resp_s {
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 */
} esp_zb_zcl_electrical_measurement_profile_cmd_resp_t;
/**
* @brief The Zigbee ZCL thermostat setpoint raise lower request command struct
*/
typedef struct esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_s {
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 */
} esp_zb_zcl_thermostat_setpoint_raise_lower_request_cmd_t;
/**
* @brief The Zigbee ZCL thermostat set weekly schedule request command struct
*/
typedef struct esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_s {
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 */
} esp_zb_zcl_thermostat_set_weekly_schedule_request_cmd_t;
/**
* @brief The Zigbee ZCL thermostat get weekly schedule request command struct
*/
typedef struct esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_s {
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 */
} esp_zb_zcl_thermostat_get_weekly_schedule_request_cmd_t;
/**
* @brief The Zigbee ZCL thermostat clear weekly schedule request command struct
*/
typedef struct esp_zb_thermostat_clear_weekly_schedule_cmd_s {
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_thermostat_clear_weekly_schedule_cmd_t;
/**
* @brief The Zigbee ZCL thermostat get relay status log request command struct
*/
typedef struct esp_zb_thermostat_get_relay_status_log_cmd_s {
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_thermostat_get_relay_status_log_cmd_t;
/**
* @brief The Zigbee ZCL metering get profile request command struct
*/
typedef struct esp_zb_metering_get_profile_cmd_s {
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 */
} esp_zb_metering_get_profile_cmd_t;
/**
* @brief The Zigbee ZCL metering request fast poll mode command struct
*/
typedef struct esp_zb_metering_request_fast_poll_mode_cmd_s {
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 */
} esp_zb_metering_request_fast_poll_mode_cmd_t;
/**
* @brief The Zigbee ZCL metering get snapshot command struct
*/
typedef struct esp_zb_metering_get_snapshot_cmd_s {
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 */