zigbee-zcl 0.3.0

The Zigbee Cluster Library: data types, frames, global commands and cluster definitions generated from data files
Documentation
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
# Zigbee Cluster Library definitions, from the ZCL specification
# (revision 8, document 07-5123) and the Zigbee Lighting & Occupancy and
# Smart Energy specifications. build.rs turns this file into the crate's
# tables and constants; nothing is written by hand per cluster.
#
# attributes: id, name, type (a ZCL data type name), write (writable),
#   report = [min_interval_s, max_interval_s, reportable_change]: the
#   reporting configuration a host writes by default when it configures the
#   attribute (no change for discrete types).
# commands:  received by the cluster's server (client to server).
# responses: generated by the cluster's server (server to client).
#   fields = ["name:type", ...]; a trailing ? marks an optional trailing
#   field; list8<type> is a one-byte count followed by items; rest is the
#   remaining bytes.

[[cluster]]
id = 0x0000
name = "basic"
attributes = [
  { id = 0x0000, name = "zcl_version", type = "uint8" },
  { id = 0x0001, name = "application_version", type = "uint8" },
  { id = 0x0002, name = "stack_version", type = "uint8" },
  { id = 0x0003, name = "hw_version", type = "uint8" },
  { id = 0x0004, name = "manufacturer_name", type = "string" },
  { id = 0x0005, name = "model_identifier", type = "string" },
  { id = 0x0006, name = "date_code", type = "string" },
  { id = 0x0007, name = "power_source", type = "enum8" },
  { id = 0x0008, name = "generic_device_class", type = "enum8" },
  { id = 0x0009, name = "generic_device_type", type = "enum8" },
  { id = 0x000A, name = "product_code", type = "octstr" },
  { id = 0x000B, name = "product_url", type = "string" },
  { id = 0x000C, name = "manufacturer_version_details", type = "string" },
  { id = 0x000D, name = "serial_number", type = "string" },
  { id = 0x000E, name = "product_label", type = "string" },
  { id = 0x0010, name = "location_description", type = "string", write = true },
  { id = 0x0011, name = "physical_environment", type = "enum8", write = true },
  { id = 0x0012, name = "device_enabled", type = "bool", write = true },
  { id = 0x0013, name = "alarm_mask", type = "map8", write = true },
  { id = 0x0014, name = "disable_local_config", type = "map8", write = true },
  { id = 0x4000, name = "sw_build_id", type = "string" },
]
commands = [
  { id = 0x00, name = "reset_to_factory_defaults" },
]

[[cluster]]
id = 0x0001
name = "power_configuration"
attributes = [
  { id = 0x0000, name = "mains_voltage", type = "uint16" },
  { id = 0x0001, name = "mains_frequency", type = "uint8" },
  { id = 0x0020, name = "battery_voltage", type = "uint8", report = [3600, 62000, 0] },
  { id = 0x0021, name = "battery_percentage_remaining", type = "uint8", report = [3600, 62000, 0] },
  { id = 0x0030, name = "battery_manufacturer", type = "string", write = true },
  { id = 0x0031, name = "battery_size", type = "enum8", write = true },
  { id = 0x0033, name = "battery_quantity", type = "uint8", write = true },
  { id = 0x0034, name = "battery_rated_voltage", type = "uint8", write = true },
  { id = 0x0035, name = "battery_alarm_mask", type = "map8", write = true },
  { id = 0x0036, name = "battery_voltage_min_threshold", type = "uint8", write = true },
  { id = 0x003E, name = "battery_alarm_state", type = "map32" },
]

[[cluster]]
id = 0x0002
name = "device_temperature_configuration"
attributes = [
  { id = 0x0000, name = "current_temperature", type = "int16" },
  { id = 0x0001, name = "min_temp_experienced", type = "int16" },
  { id = 0x0002, name = "max_temp_experienced", type = "int16" },
]

[[cluster]]
id = 0x0003
name = "identify"
attributes = [
  { id = 0x0000, name = "identify_time", type = "uint16", write = true },
]
commands = [
  { id = 0x00, name = "identify", fields = ["identify_time:uint16"] },
  { id = 0x01, name = "identify_query" },
  { id = 0x40, name = "trigger_effect", fields = ["effect_identifier:enum8", "effect_variant:enum8"] },
]
responses = [
  { id = 0x00, name = "identify_query_response", fields = ["timeout:uint16"] },
]

[[cluster]]
id = 0x0004
name = "groups"
attributes = [
  { id = 0x0000, name = "name_support", type = "map8" },
]
commands = [
  { id = 0x00, name = "add_group", fields = ["group_id:uint16", "group_name:string"] },
  { id = 0x01, name = "view_group", fields = ["group_id:uint16"] },
  { id = 0x02, name = "get_group_membership", fields = ["group_list:list8<uint16>"] },
  { id = 0x03, name = "remove_group", fields = ["group_id:uint16"] },
  { id = 0x04, name = "remove_all_groups" },
  { id = 0x05, name = "add_group_if_identifying", fields = ["group_id:uint16", "group_name:string"] },
]
responses = [
  { id = 0x00, name = "add_group_response", fields = ["status:enum8", "group_id:uint16"] },
  { id = 0x01, name = "view_group_response", fields = ["status:enum8", "group_id:uint16", "group_name:string"] },
  { id = 0x02, name = "get_group_membership_response", fields = ["capacity:uint8", "group_list:list8<uint16>"] },
  { id = 0x03, name = "remove_group_response", fields = ["status:enum8", "group_id:uint16"] },
]

[[cluster]]
id = 0x0005
name = "scenes"
attributes = [
  { id = 0x0000, name = "scene_count", type = "uint8" },
  { id = 0x0001, name = "current_scene", type = "uint8" },
  { id = 0x0002, name = "current_group", type = "uint16" },
  { id = 0x0003, name = "scene_valid", type = "bool" },
  { id = 0x0004, name = "name_support", type = "map8" },
]
commands = [
  { id = 0x00, name = "add_scene", fields = ["group_id:uint16", "scene_id:uint8", "transition_time:uint16", "scene_name:string", "extension_field_sets:rest"] },
  { id = 0x01, name = "view_scene", fields = ["group_id:uint16", "scene_id:uint8"] },
  { id = 0x02, name = "remove_scene", fields = ["group_id:uint16", "scene_id:uint8"] },
  { id = 0x03, name = "remove_all_scenes", fields = ["group_id:uint16"] },
  { id = 0x04, name = "store_scene", fields = ["group_id:uint16", "scene_id:uint8"] },
  { id = 0x05, name = "recall_scene", fields = ["group_id:uint16", "scene_id:uint8", "transition_time:uint16?"] },
  { id = 0x06, name = "get_scene_membership", fields = ["group_id:uint16"] },
]
responses = [
  { id = 0x00, name = "add_scene_response", fields = ["status:enum8", "group_id:uint16", "scene_id:uint8"] },
  { id = 0x01, name = "view_scene_response", fields = ["status:enum8", "group_id:uint16", "scene_id:uint8", "rest:rest"] },
  { id = 0x02, name = "remove_scene_response", fields = ["status:enum8", "group_id:uint16", "scene_id:uint8"] },
  { id = 0x03, name = "remove_all_scenes_response", fields = ["status:enum8", "group_id:uint16"] },
  { id = 0x04, name = "store_scene_response", fields = ["status:enum8", "group_id:uint16", "scene_id:uint8"] },
  { id = 0x06, name = "get_scene_membership_response", fields = ["status:enum8", "capacity:uint8", "group_id:uint16", "scene_list:rest"] },
]

[[cluster]]
id = 0x0006
name = "on_off"
attributes = [
  { id = 0x0000, name = "on_off", type = "bool", report = [0, 3600] },
  { id = 0x4000, name = "global_scene_control", type = "bool" },
  { id = 0x4001, name = "on_time", type = "uint16", write = true },
  { id = 0x4002, name = "off_wait_time", type = "uint16", write = true },
  { id = 0x4003, name = "start_up_on_off", type = "enum8", write = true },
]
commands = [
  { id = 0x00, name = "off" },
  { id = 0x01, name = "on" },
  { id = 0x02, name = "toggle" },
  { id = 0x40, name = "off_with_effect", fields = ["effect_identifier:enum8", "effect_variant:uint8"] },
  { id = 0x41, name = "on_with_recall_global_scene" },
  { id = 0x42, name = "on_with_timed_off", fields = ["on_off_control:map8", "on_time:uint16", "off_wait_time:uint16"] },
]

[[cluster]]
id = 0x0007
name = "on_off_switch_configuration"
attributes = [
  { id = 0x0000, name = "switch_type", type = "enum8" },
  { id = 0x0010, name = "switch_actions", type = "enum8", write = true },
]

[[cluster]]
id = 0x0008
name = "level_control"
attributes = [
  { id = 0x0000, name = "current_level", type = "uint8", report = [1, 3600, 1] },
  { id = 0x0001, name = "remaining_time", type = "uint16" },
  { id = 0x0002, name = "min_level", type = "uint8" },
  { id = 0x0003, name = "max_level", type = "uint8" },
  { id = 0x000F, name = "options", type = "map8", write = true },
  { id = 0x0010, name = "on_off_transition_time", type = "uint16", write = true },
  { id = 0x0011, name = "on_level", type = "uint8", write = true },
  { id = 0x0012, name = "on_transition_time", type = "uint16", write = true },
  { id = 0x0013, name = "off_transition_time", type = "uint16", write = true },
  { id = 0x0014, name = "default_move_rate", type = "uint8", write = true },
  { id = 0x4000, name = "start_up_current_level", type = "uint8", write = true },
]
commands = [
  { id = 0x00, name = "move_to_level", fields = ["level:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x01, name = "move", fields = ["move_mode:enum8", "rate:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x02, name = "step", fields = ["step_mode:enum8", "step_size:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x03, name = "stop", fields = ["options_mask:map8?", "options_override:map8?"] },
  { id = 0x04, name = "move_to_level_with_on_off", fields = ["level:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x05, name = "move_with_on_off", fields = ["move_mode:enum8", "rate:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x06, name = "step_with_on_off", fields = ["step_mode:enum8", "step_size:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x07, name = "stop_with_on_off", fields = ["options_mask:map8?", "options_override:map8?"] },
]

[[cluster]]
id = 0x0009
name = "alarms"
attributes = [
  { id = 0x0000, name = "alarm_count", type = "uint16" },
]
commands = [
  { id = 0x00, name = "reset_alarm", fields = ["alarm_code:enum8", "cluster_id:clusterid"] },
  { id = 0x01, name = "reset_all_alarms" },
  { id = 0x02, name = "get_alarm" },
  { id = 0x03, name = "reset_alarm_log" },
]
responses = [
  { id = 0x00, name = "alarm", fields = ["alarm_code:enum8", "cluster_id:clusterid"] },
  { id = 0x01, name = "get_alarm_response", fields = ["status:enum8", "alarm_code:enum8?", "cluster_id:clusterid?", "time_stamp:uint32?"] },
]

[[cluster]]
id = 0x000A
name = "time"
attributes = [
  { id = 0x0000, name = "time", type = "utc", write = true },
  { id = 0x0001, name = "time_status", type = "map8", write = true },
  { id = 0x0002, name = "time_zone", type = "int32", write = true },
  { id = 0x0003, name = "dst_start", type = "uint32", write = true },
  { id = 0x0004, name = "dst_end", type = "uint32", write = true },
  { id = 0x0005, name = "dst_shift", type = "int32", write = true },
  { id = 0x0006, name = "standard_time", type = "uint32" },
  { id = 0x0007, name = "local_time", type = "uint32" },
  { id = 0x0008, name = "last_set_time", type = "utc" },
  { id = 0x0009, name = "valid_until_time", type = "utc", write = true },
]

[[cluster]]
id = 0x000C
name = "analog_input"
attributes = [
  { id = 0x001C, name = "description", type = "string", write = true },
  { id = 0x0041, name = "max_present_value", type = "single", write = true },
  { id = 0x0045, name = "min_present_value", type = "single", write = true },
  { id = 0x0051, name = "out_of_service", type = "bool", write = true },
  { id = 0x0055, name = "present_value", type = "single", write = true },
  { id = 0x0067, name = "reliability", type = "enum8", write = true },
  { id = 0x006A, name = "resolution", type = "single", write = true },
  { id = 0x006F, name = "status_flags", type = "map8" },
  { id = 0x0075, name = "engineering_units", type = "enum16", write = true },
  { id = 0x0100, name = "application_type", type = "uint32" },
]

[[cluster]]
id = 0x000D
name = "analog_output"
attributes = [
  { id = 0x001C, name = "description", type = "string", write = true },
  { id = 0x0041, name = "max_present_value", type = "single", write = true },
  { id = 0x0045, name = "min_present_value", type = "single", write = true },
  { id = 0x0051, name = "out_of_service", type = "bool", write = true },
  { id = 0x0055, name = "present_value", type = "single", write = true },
  { id = 0x0067, name = "reliability", type = "enum8", write = true },
  { id = 0x0068, name = "relinquish_default", type = "single", write = true },
  { id = 0x006A, name = "resolution", type = "single", write = true },
  { id = 0x006F, name = "status_flags", type = "map8" },
  { id = 0x0075, name = "engineering_units", type = "enum16", write = true },
  { id = 0x0100, name = "application_type", type = "uint32" },
]

[[cluster]]
id = 0x000F
name = "binary_input"
attributes = [
  { id = 0x0004, name = "active_text", type = "string", write = true },
  { id = 0x001C, name = "description", type = "string", write = true },
  { id = 0x002E, name = "inactive_text", type = "string", write = true },
  { id = 0x0051, name = "out_of_service", type = "bool", write = true },
  { id = 0x0054, name = "polarity", type = "enum8" },
  { id = 0x0055, name = "present_value", type = "bool", write = true, report = [0, 3600] },
  { id = 0x0067, name = "reliability", type = "enum8", write = true },
  { id = 0x006F, name = "status_flags", type = "map8" },
  { id = 0x0100, name = "application_type", type = "uint32" },
]

[[cluster]]
id = 0x0010
name = "binary_output"
attributes = [
  { id = 0x0004, name = "active_text", type = "string", write = true },
  { id = 0x001C, name = "description", type = "string", write = true },
  { id = 0x002E, name = "inactive_text", type = "string", write = true },
  { id = 0x0051, name = "out_of_service", type = "bool", write = true },
  { id = 0x0054, name = "polarity", type = "enum8" },
  { id = 0x0055, name = "present_value", type = "bool", write = true },
  { id = 0x0067, name = "reliability", type = "enum8", write = true },
  { id = 0x006F, name = "status_flags", type = "map8" },
  { id = 0x0100, name = "application_type", type = "uint32" },
]

[[cluster]]
id = 0x0012
name = "multistate_input"
attributes = [
  { id = 0x001C, name = "description", type = "string", write = true },
  { id = 0x004A, name = "number_of_states", type = "uint16", write = true },
  { id = 0x0051, name = "out_of_service", type = "bool", write = true },
  { id = 0x0055, name = "present_value", type = "uint16", write = true, report = [0, 3600, 1] },
  { id = 0x0067, name = "reliability", type = "enum8", write = true },
  { id = 0x006F, name = "status_flags", type = "map8" },
  { id = 0x0100, name = "application_type", type = "uint32" },
]

[[cluster]]
id = 0x0019
name = "ota_upgrade"
attributes = [
  { id = 0x0000, name = "upgrade_server_id", type = "ieee" },
  { id = 0x0001, name = "file_offset", type = "uint32" },
  { id = 0x0002, name = "current_file_version", type = "uint32" },
  { id = 0x0003, name = "current_zigbee_stack_version", type = "uint16" },
  { id = 0x0004, name = "downloaded_file_version", type = "uint32" },
  { id = 0x0005, name = "downloaded_zigbee_stack_version", type = "uint16" },
  { id = 0x0006, name = "image_upgrade_status", type = "enum8" },
  { id = 0x0007, name = "manufacturer_id", type = "uint16" },
  { id = 0x0008, name = "image_type_id", type = "uint16" },
  { id = 0x0009, name = "minimum_block_period", type = "uint16" },
]
commands = [
  { id = 0x01, name = "query_next_image_request", fields = ["field_control:map8", "manufacturer_code:uint16", "image_type:uint16", "file_version:uint32", "hardware_version:uint16?"] },
  { id = 0x03, name = "image_block_request", fields = ["field_control:map8", "manufacturer_code:uint16", "image_type:uint16", "file_version:uint32", "file_offset:uint32", "maximum_data_size:uint8", "rest:rest"] },
  { id = 0x04, name = "image_page_request", fields = ["field_control:map8", "manufacturer_code:uint16", "image_type:uint16", "file_version:uint32", "file_offset:uint32", "maximum_data_size:uint8", "page_size:uint16", "response_spacing:uint16", "rest:rest"] },
  { id = 0x06, name = "upgrade_end_request", fields = ["status:enum8", "manufacturer_code:uint16", "image_type:uint16", "file_version:uint32"] },
  { id = 0x08, name = "query_device_specific_file_request", fields = ["request_node_address:ieee", "manufacturer_code:uint16", "image_type:uint16", "file_version:uint32", "current_zigbee_stack_version:uint16"] },
]
responses = [
  { id = 0x00, name = "image_notify", fields = ["payload_type:enum8", "query_jitter:uint8", "rest:rest"] },
  { id = 0x02, name = "query_next_image_response", fields = ["status:enum8", "rest:rest"] },
  { id = 0x05, name = "image_block_response", fields = ["status:enum8", "rest:rest"] },
  { id = 0x07, name = "upgrade_end_response", fields = ["manufacturer_code:uint16", "image_type:uint16", "file_version:uint32", "current_time:utc", "upgrade_time:utc"] },
]

[[cluster]]
id = 0x0020
name = "poll_control"
attributes = [
  { id = 0x0000, name = "check_in_interval", type = "uint32", write = true },
  { id = 0x0001, name = "long_poll_interval", type = "uint32" },
  { id = 0x0002, name = "short_poll_interval", type = "uint16" },
  { id = 0x0003, name = "fast_poll_timeout", type = "uint16", write = true },
  { id = 0x0004, name = "check_in_interval_min", type = "uint32" },
  { id = 0x0005, name = "long_poll_interval_min", type = "uint32" },
  { id = 0x0006, name = "fast_poll_timeout_max", type = "uint16" },
]
commands = [
  { id = 0x00, name = "check_in_response", fields = ["start_fast_polling:bool", "fast_poll_timeout:uint16"] },
  { id = 0x01, name = "fast_poll_stop" },
  { id = 0x02, name = "set_long_poll_interval", fields = ["new_long_poll_interval:uint32"] },
  { id = 0x03, name = "set_short_poll_interval", fields = ["new_short_poll_interval:uint16"] },
]
responses = [
  { id = 0x00, name = "check_in" },
]

[[cluster]]
id = 0x0101
name = "door_lock"
attributes = [
  { id = 0x0000, name = "lock_state", type = "enum8", report = [0, 3600] },
  { id = 0x0001, name = "lock_type", type = "enum8" },
  { id = 0x0002, name = "actuator_enabled", type = "bool" },
  { id = 0x0003, name = "door_state", type = "enum8", report = [0, 3600] },
  { id = 0x0004, name = "door_open_events", type = "uint32", write = true },
  { id = 0x0005, name = "door_closed_events", type = "uint32", write = true },
  { id = 0x0006, name = "open_period", type = "uint16", write = true },
  { id = 0x0011, name = "number_of_total_users_supported", type = "uint16" },
  { id = 0x0012, name = "number_of_pin_users_supported", type = "uint16" },
  { id = 0x0021, name = "language", type = "string", write = true },
  { id = 0x0023, name = "auto_relock_time", type = "uint32", write = true },
  { id = 0x0024, name = "sound_volume", type = "uint8", write = true },
  { id = 0x0025, name = "operating_mode", type = "enum8", write = true },
]
commands = [
  { id = 0x00, name = "lock_door", fields = ["pin_code:octstr?"] },
  { id = 0x01, name = "unlock_door", fields = ["pin_code:octstr?"] },
  { id = 0x02, name = "toggle", fields = ["pin_code:octstr?"] },
  { id = 0x03, name = "unlock_with_timeout", fields = ["timeout:uint16", "pin_code:octstr?"] },
]
responses = [
  { id = 0x00, name = "lock_door_response", fields = ["status:enum8"] },
  { id = 0x01, name = "unlock_door_response", fields = ["status:enum8"] },
  { id = 0x02, name = "toggle_response", fields = ["status:enum8"] },
  { id = 0x03, name = "unlock_with_timeout_response", fields = ["status:enum8"] },
  { id = 0x20, name = "operation_event_notification", fields = ["operation_event_source:uint8", "operation_event_code:uint8", "user_id:uint16", "pin:octstr", "local_time:uint32", "data:string?"] },
]

[[cluster]]
id = 0x0102
name = "window_covering"
attributes = [
  { id = 0x0000, name = "window_covering_type", type = "enum8" },
  { id = 0x0003, name = "current_position_lift", type = "uint16" },
  { id = 0x0004, name = "current_position_tilt", type = "uint16" },
  { id = 0x0007, name = "config_status", type = "map8" },
  { id = 0x0008, name = "current_position_lift_percentage", type = "uint8", report = [1, 3600, 1] },
  { id = 0x0009, name = "current_position_tilt_percentage", type = "uint8", report = [1, 3600, 1] },
  { id = 0x0010, name = "installed_open_limit_lift", type = "uint16" },
  { id = 0x0011, name = "installed_closed_limit_lift", type = "uint16" },
  { id = 0x0012, name = "installed_open_limit_tilt", type = "uint16" },
  { id = 0x0013, name = "installed_closed_limit_tilt", type = "uint16" },
  { id = 0x0017, name = "mode", type = "map8", write = true },
]
commands = [
  { id = 0x00, name = "up_open" },
  { id = 0x01, name = "down_close" },
  { id = 0x02, name = "stop" },
  { id = 0x04, name = "go_to_lift_value", fields = ["lift_value:uint16"] },
  { id = 0x05, name = "go_to_lift_percentage", fields = ["percentage_lift_value:uint8"] },
  { id = 0x07, name = "go_to_tilt_value", fields = ["tilt_value:uint16"] },
  { id = 0x08, name = "go_to_tilt_percentage", fields = ["percentage_tilt_value:uint8"] },
]

[[cluster]]
id = 0x0201
name = "thermostat"
attributes = [
  { id = 0x0000, name = "local_temperature", type = "int16", report = [10, 3600, 10] },
  { id = 0x0001, name = "outdoor_temperature", type = "int16" },
  { id = 0x0002, name = "occupancy", type = "map8" },
  { id = 0x0003, name = "abs_min_heat_setpoint_limit", type = "int16" },
  { id = 0x0004, name = "abs_max_heat_setpoint_limit", type = "int16" },
  { id = 0x0005, name = "abs_min_cool_setpoint_limit", type = "int16" },
  { id = 0x0006, name = "abs_max_cool_setpoint_limit", type = "int16" },
  { id = 0x0007, name = "pi_cooling_demand", type = "uint8" },
  { id = 0x0008, name = "pi_heating_demand", type = "uint8", report = [10, 3600, 5] },
  { id = 0x0010, name = "local_temperature_calibration", type = "int8", write = true },
  { id = 0x0011, name = "occupied_cooling_setpoint", type = "int16", write = true, report = [0, 3600, 10] },
  { id = 0x0012, name = "occupied_heating_setpoint", type = "int16", write = true, report = [0, 3600, 10] },
  { id = 0x0013, name = "unoccupied_cooling_setpoint", type = "int16", write = true },
  { id = 0x0014, name = "unoccupied_heating_setpoint", type = "int16", write = true },
  { id = 0x0015, name = "min_heat_setpoint_limit", type = "int16", write = true },
  { id = 0x0016, name = "max_heat_setpoint_limit", type = "int16", write = true },
  { id = 0x0017, name = "min_cool_setpoint_limit", type = "int16", write = true },
  { id = 0x0018, name = "max_cool_setpoint_limit", type = "int16", write = true },
  { id = 0x0019, name = "min_setpoint_dead_band", type = "int8", write = true },
  { id = 0x001A, name = "remote_sensing", type = "map8", write = true },
  { id = 0x001B, name = "control_sequence_of_operation", type = "enum8", write = true },
  { id = 0x001C, name = "system_mode", type = "enum8", write = true, report = [0, 3600] },
  { id = 0x001E, name = "running_mode", type = "enum8" },
  { id = 0x0029, name = "running_state", type = "map16" },
]
commands = [
  { id = 0x00, name = "setpoint_raise_lower", fields = ["mode:enum8", "amount:int8"] },
  { id = 0x01, name = "set_weekly_schedule", fields = ["schedule:rest"] },
  { id = 0x02, name = "get_weekly_schedule", fields = ["days_to_return:map8", "mode_to_return:map8"] },
  { id = 0x03, name = "clear_weekly_schedule" },
]
responses = [
  { id = 0x00, name = "get_weekly_schedule_response", fields = ["schedule:rest"] },
]

[[cluster]]
id = 0x0202
name = "fan_control"
attributes = [
  { id = 0x0000, name = "fan_mode", type = "enum8", write = true, report = [0, 3600] },
  { id = 0x0001, name = "fan_mode_sequence", type = "enum8", write = true },
]

[[cluster]]
id = 0x0204
name = "thermostat_user_interface_configuration"
attributes = [
  { id = 0x0000, name = "temperature_display_mode", type = "enum8", write = true },
  { id = 0x0001, name = "keypad_lockout", type = "enum8", write = true },
  { id = 0x0002, name = "schedule_programming_visibility", type = "enum8", write = true },
]

[[cluster]]
id = 0x0300
name = "color_control"
attributes = [
  { id = 0x0000, name = "current_hue", type = "uint8", report = [1, 3600, 1] },
  { id = 0x0001, name = "current_saturation", type = "uint8", report = [1, 3600, 1] },
  { id = 0x0002, name = "remaining_time", type = "uint16" },
  { id = 0x0003, name = "current_x", type = "uint16", report = [1, 3600, 10] },
  { id = 0x0004, name = "current_y", type = "uint16", report = [1, 3600, 10] },
  { id = 0x0007, name = "color_temperature_mireds", type = "uint16", report = [1, 3600, 1] },
  { id = 0x0008, name = "color_mode", type = "enum8" },
  { id = 0x000F, name = "options", type = "map8", write = true },
  { id = 0x4000, name = "enhanced_current_hue", type = "uint16" },
  { id = 0x4001, name = "enhanced_color_mode", type = "enum8" },
  { id = 0x4002, name = "color_loop_active", type = "uint8" },
  { id = 0x400A, name = "color_capabilities", type = "map16" },
  { id = 0x400B, name = "color_temp_physical_min_mireds", type = "uint16" },
  { id = 0x400C, name = "color_temp_physical_max_mireds", type = "uint16" },
  { id = 0x4010, name = "start_up_color_temperature_mireds", type = "uint16", write = true },
]
commands = [
  { id = 0x00, name = "move_to_hue", fields = ["hue:uint8", "direction:enum8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x01, name = "move_hue", fields = ["move_mode:enum8", "rate:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x02, name = "step_hue", fields = ["step_mode:enum8", "step_size:uint8", "transition_time:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x03, name = "move_to_saturation", fields = ["saturation:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x04, name = "move_saturation", fields = ["move_mode:enum8", "rate:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x05, name = "step_saturation", fields = ["step_mode:enum8", "step_size:uint8", "transition_time:uint8", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x06, name = "move_to_hue_and_saturation", fields = ["hue:uint8", "saturation:uint8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x07, name = "move_to_color", fields = ["color_x:uint16", "color_y:uint16", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x08, name = "move_color", fields = ["rate_x:int16", "rate_y:int16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x09, name = "step_color", fields = ["step_x:int16", "step_y:int16", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x0A, name = "move_to_color_temperature", fields = ["color_temperature_mireds:uint16", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x40, name = "enhanced_move_to_hue", fields = ["enhanced_hue:uint16", "direction:enum8", "transition_time:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x47, name = "stop_move_step", fields = ["options_mask:map8?", "options_override:map8?"] },
  { id = 0x4B, name = "move_color_temperature", fields = ["move_mode:map8", "rate:uint16", "color_temperature_min_mireds:uint16", "color_temperature_max_mireds:uint16", "options_mask:map8?", "options_override:map8?"] },
  { id = 0x4C, name = "step_color_temperature", fields = ["step_mode:map8", "step_size:uint16", "transition_time:uint16", "color_temperature_min_mireds:uint16", "color_temperature_max_mireds:uint16", "options_mask:map8?", "options_override:map8?"] },
]

[[cluster]]
id = 0x0400
name = "illuminance_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "uint16", report = [10, 3600, 100] },
  { id = 0x0001, name = "min_measured_value", type = "uint16" },
  { id = 0x0002, name = "max_measured_value", type = "uint16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
  { id = 0x0004, name = "light_sensor_type", type = "enum8" },
]

[[cluster]]
id = 0x0401
name = "illuminance_level_sensing"
attributes = [
  { id = 0x0000, name = "level_status", type = "enum8" },
  { id = 0x0001, name = "light_sensor_type", type = "enum8" },
  { id = 0x0010, name = "illuminance_target_level", type = "uint16", write = true },
]

[[cluster]]
id = 0x0402
name = "temperature_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "int16", report = [10, 3600, 10] },
  { id = 0x0001, name = "min_measured_value", type = "int16" },
  { id = 0x0002, name = "max_measured_value", type = "int16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
]

[[cluster]]
id = 0x0403
name = "pressure_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "int16", report = [10, 3600, 1] },
  { id = 0x0001, name = "min_measured_value", type = "int16" },
  { id = 0x0002, name = "max_measured_value", type = "int16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
  { id = 0x0010, name = "scaled_value", type = "int16" },
  { id = 0x0011, name = "min_scaled_value", type = "int16" },
  { id = 0x0012, name = "max_scaled_value", type = "int16" },
  { id = 0x0013, name = "scaled_tolerance", type = "uint16" },
  { id = 0x0014, name = "scale", type = "int8" },
]

[[cluster]]
id = 0x0404
name = "flow_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "uint16", report = [10, 3600, 10] },
  { id = 0x0001, name = "min_measured_value", type = "uint16" },
  { id = 0x0002, name = "max_measured_value", type = "uint16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
]

[[cluster]]
id = 0x0405
name = "relative_humidity_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "uint16", report = [10, 3600, 100] },
  { id = 0x0001, name = "min_measured_value", type = "uint16" },
  { id = 0x0002, name = "max_measured_value", type = "uint16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
]

[[cluster]]
id = 0x0406
name = "occupancy_sensing"
attributes = [
  { id = 0x0000, name = "occupancy", type = "map8", report = [0, 3600] },
  { id = 0x0001, name = "occupancy_sensor_type", type = "enum8" },
  { id = 0x0002, name = "occupancy_sensor_type_bitmap", type = "map8" },
  { id = 0x0010, name = "pir_occupied_to_unoccupied_delay", type = "uint16", write = true },
  { id = 0x0011, name = "pir_unoccupied_to_occupied_delay", type = "uint16", write = true },
  { id = 0x0012, name = "pir_unoccupied_to_occupied_threshold", type = "uint8", write = true },
]

[[cluster]]
id = 0x0408
name = "soil_moisture_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "uint16", report = [10, 3600, 100] },
  { id = 0x0001, name = "min_measured_value", type = "uint16" },
  { id = 0x0002, name = "max_measured_value", type = "uint16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
]

[[cluster]]
id = 0x0409
name = "ph_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "uint16", report = [10, 3600, 10] },
  { id = 0x0001, name = "min_measured_value", type = "uint16" },
  { id = 0x0002, name = "max_measured_value", type = "uint16" },
  { id = 0x0003, name = "tolerance", type = "uint16" },
]

[[cluster]]
id = 0x040D
name = "carbon_dioxide_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "single" },
  { id = 0x0001, name = "min_measured_value", type = "single" },
  { id = 0x0002, name = "max_measured_value", type = "single" },
  { id = 0x0003, name = "tolerance", type = "single" },
]

[[cluster]]
id = 0x042A
name = "pm25_measurement"
attributes = [
  { id = 0x0000, name = "measured_value", type = "single" },
  { id = 0x0001, name = "min_measured_value", type = "single" },
  { id = 0x0002, name = "max_measured_value", type = "single" },
  { id = 0x0003, name = "tolerance", type = "single" },
]

[[cluster]]
id = 0x0500
name = "ias_zone"
attributes = [
  { id = 0x0000, name = "zone_state", type = "enum8" },
  { id = 0x0001, name = "zone_type", type = "enum16" },
  { id = 0x0002, name = "zone_status", type = "map16" },
  { id = 0x0010, name = "ias_cie_address", type = "ieee", write = true },
  { id = 0x0011, name = "zone_id", type = "uint8" },
  { id = 0x0012, name = "number_of_zone_sensitivity_levels_supported", type = "uint8" },
  { id = 0x0013, name = "current_zone_sensitivity_level", type = "uint8", write = true },
]
commands = [
  { id = 0x00, name = "zone_enroll_response", fields = ["enroll_response_code:enum8", "zone_id:uint8"] },
  { id = 0x01, name = "initiate_normal_operation_mode" },
  { id = 0x02, name = "initiate_test_mode", fields = ["test_mode_duration:uint8", "current_zone_sensitivity_level:uint8"] },
]
responses = [
  { id = 0x00, name = "zone_status_change_notification", fields = ["zone_status:map16", "extended_status:map8", "zone_id:uint8?", "delay:uint16?"] },
  { id = 0x01, name = "zone_enroll_request", fields = ["zone_type:enum16", "manufacturer_code:uint16"] },
]

[[cluster]]
id = 0x0501
name = "ias_ace"
commands = [
  { id = 0x00, name = "arm", fields = ["arm_mode:enum8", "arm_disarm_code:string", "zone_id:uint8"] },
  { id = 0x01, name = "bypass", fields = ["zones:rest"] },
  { id = 0x02, name = "emergency" },
  { id = 0x03, name = "fire" },
  { id = 0x04, name = "panic" },
  { id = 0x05, name = "get_zone_id_map" },
  { id = 0x06, name = "get_zone_information", fields = ["zone_id:uint8"] },
  { id = 0x07, name = "get_panel_status" },
]
responses = [
  { id = 0x00, name = "arm_response", fields = ["arm_notification:enum8"] },
  { id = 0x04, name = "panel_status_changed", fields = ["panel_status:enum8", "seconds_remaining:uint8", "audible_notification:enum8", "alarm_status:enum8"] },
  { id = 0x05, name = "get_panel_status_response", fields = ["panel_status:enum8", "seconds_remaining:uint8", "audible_notification:enum8", "alarm_status:enum8"] },
]

[[cluster]]
id = 0x0502
name = "ias_wd"
attributes = [
  { id = 0x0000, name = "max_duration", type = "uint16", write = true },
]
commands = [
  { id = 0x00, name = "start_warning", fields = ["warning_info:map8", "warning_duration:uint16", "strobe_duty_cycle:uint8", "strobe_level:enum8"] },
  { id = 0x01, name = "squawk", fields = ["squawk_info:map8"] },
]

[[cluster]]
id = 0x0702
name = "metering"
attributes = [
  { id = 0x0000, name = "current_summation_delivered", type = "uint48", report = [10, 3600, 10] },
  { id = 0x0001, name = "current_summation_received", type = "uint48" },
  { id = 0x0200, name = "status", type = "map8" },
  { id = 0x0300, name = "unit_of_measure", type = "enum8" },
  { id = 0x0301, name = "multiplier", type = "uint24" },
  { id = 0x0302, name = "divisor", type = "uint24" },
  { id = 0x0303, name = "summation_formatting", type = "map8" },
  { id = 0x0304, name = "demand_formatting", type = "map8" },
  { id = 0x0306, name = "metering_device_type", type = "map8" },
  { id = 0x0400, name = "instantaneous_demand", type = "int24", report = [10, 3600, 1] },
]

[[cluster]]
id = 0x0B04
name = "electrical_measurement"
attributes = [
  { id = 0x0000, name = "measurement_type", type = "map32" },
  { id = 0x0300, name = "ac_frequency", type = "uint16" },
  { id = 0x0304, name = "total_active_power", type = "int32" },
  { id = 0x0505, name = "rms_voltage", type = "uint16", report = [10, 3600, 5] },
  { id = 0x0508, name = "rms_current", type = "uint16", report = [10, 3600, 50] },
  { id = 0x050B, name = "active_power", type = "int16", report = [10, 3600, 10] },
  { id = 0x050E, name = "reactive_power", type = "int16" },
  { id = 0x050F, name = "apparent_power", type = "uint16" },
  { id = 0x0510, name = "power_factor", type = "int8" },
  { id = 0x0600, name = "ac_voltage_multiplier", type = "uint16" },
  { id = 0x0601, name = "ac_voltage_divisor", type = "uint16" },
  { id = 0x0602, name = "ac_current_multiplier", type = "uint16" },
  { id = 0x0603, name = "ac_current_divisor", type = "uint16" },
  { id = 0x0604, name = "ac_power_multiplier", type = "uint16" },
  { id = 0x0605, name = "ac_power_divisor", type = "uint16" },
]

[[cluster]]
id = 0x0B05
name = "diagnostics"
attributes = [
  { id = 0x0000, name = "number_of_resets", type = "uint16" },
  { id = 0x0001, name = "persistent_memory_writes", type = "uint16" },
  { id = 0x0100, name = "mac_rx_bcast", type = "uint32" },
  { id = 0x0101, name = "mac_tx_bcast", type = "uint32" },
  { id = 0x0102, name = "mac_rx_ucast", type = "uint32" },
  { id = 0x0103, name = "mac_tx_ucast", type = "uint32" },
  { id = 0x0104, name = "mac_tx_ucast_retry", type = "uint16" },
  { id = 0x0105, name = "mac_tx_ucast_fail", type = "uint16" },
  { id = 0x011B, name = "average_mac_retry_per_aps_message_sent", type = "uint16" },
  { id = 0x011C, name = "last_message_lqi", type = "uint8" },
  { id = 0x011D, name = "last_message_rssi", type = "int8" },
]