
13
86 Transition: pressed -> kept pressed, has alternate
14
02 Source: Endpoint #2 (hosts primary level control client cluster on
D1)
15
08 00 Cluster ID: 0x0008 – level control
16
05 00 32 ZCL Command Template: Move with on/off, upwards, rate = 50
17
18
08 element #3: eight bytes
19
00 InputAndOptions: 0x00
20
C6 Transition: pressed -> kept pressed, is alternate
21
02 Source: Endpoint #2 (hosts primary level control client cluster on
D1)
22
08 00 Cluster ID: 0x0008 – level control
23
05 01 32 ZCL Command Template: Move with on/off, downwards, rate = 50
24
25
06 element #4: six bytes
26
00 InputAndOptions: 0x00
27
0B Transition: kept pressed -> released
28
02 Source: Endpoint #2 (hosts primary level control client cluster on
D1)
29
08 00 Cluster ID: 0x0008 – level control
30
07 ZCL Command Template: Stop with on/off
31
32
06 element #5: six bytes
33
01 InputAndOptions: 0x01
34
07 Transition: pressed -> released
35
03 Source: Endpoint #3 (hosts secondary on/off client cluster on D1)
36
06 00 Cluster ID: 0x0006 - on/off
37
02 ZCL Command Template: Toggle
38
39
08 element #6: eight bytes
40
01 InputAndOptions: 0x01
41
86 Transition: pressed -> kept pressed, has alternate
42
03 Source: Endpoint #3 (hosts secondary level control client cluster on
D1)
43
08 00 Cluster ID: 0x0008 – level control
44
05 00 32 ZCL Command Template: Move with on/off, upwards, rate = 50
45
46
08 element #7: eight bytes
47
01 InputAndOptions: 0x01
48
C6 Transition: pressed -> kept pressed, is alternate
49
03 Source: Endpoint #3 (hosts secondary level control client cluster on
D1)
50
08 00 Cluster ID: 0x0008 – level control
51
05 01 32 ZCL Command Template: Move with on/off, downwards, rate = 50
52
53
06 element #8: six bytes
54
01 InputAndOptions: 0x01
55
0B Transition: kept pressed -> released
56
03 Source: Endpoint #3 (hosts secondary level control client cluster on
D1)
57
08 00 Cluster ID: 0x0008 – level control
58
07 ZCL Command Template: Stop with on/off
This will allow to control a dimmer with one push button. A short press will toggle the light on/off,
while a longer press starts dimming up or down (alternating) in order to allow adjusting the brightness
with the button. Dimming stops, when the button is released. The code is for two buttons, i.e. it
configures both inputs available on the device.
11