
1
41 element type: 0x41 (raw data)
2
01 00 element count: 0x0001 (1 entries)
3
4
0B element #1: 11 bytes
5
00 InputAndOptions: 0x00
6
0D Transition: released -> pressed
7
02 Source: Endpoint #2 (hosts primary on/off client cluster on C4)
8
06 00 Cluster ID: 0x0006 - on/off
9
42 ZCL Command Template: On with timed off
10
00 ZCL Command Template: On/off Control field = 0
11
B0 04 ZCL Command Template: On Time field = 0x04b0 = 1200 * 0.1s = 120s
12
00 00 ZCL Command Template: Off Wait Time = 0
For instance, the following facility-app command could be used to write the input configuration above
to a particular S1 device, where <device-id> is the identifier of the device as shown in the inventory,
and 0x48 is the ZCL data type “array” followed by the actual attribute value above:
1
zcl write
<device-id>
232 0xfc00 0x0001 0x48 0x41 0x01 0x00 0x0b 0x00 0x0d 0x02
0x06 0x00 0x42 0x00 0xb0 0x04 0x00 0x00
3.6. Single Momentary Switch (Push Button) as Dimmer Switch
Related C++ class: CZigBeeDeviceSetupInputPatternSinglePushLevel.
This is a more complex recipe designed for dimming a light, or generally speaking adjusting the level
(intensity, speed, brightness, …) of a level controllable output. Users are able to turn a light on or off
with a short press, i.e. tapping the button for less than a second; and also dim up and down with a
long press, i.e. keeping the button pressed for more than a second.
The idea is that each transition from the pressed state to the released state fires a “toggle” command,
and each transition from the pressed to the kept-pressed state fires a “move with on/off” command,
where the direction is alternating on each subsequent action between “up” and “down”. Notice that
the command templates for moving also contain a configurable move rate. Finally, a transition from the
kept-pressed to the released state fires a “stop” command.
3.6.1. Examples
This the complete default configuration for D1 and D1-R, which is aimed at single push-button
operation (momentary, one stable position):
1
41 element type: 0x41 (raw data)
2
08 00 element count: 0x0008 (8 entries)
3
4
06 element #1: six bytes
5
00 InputAndOptions: 0x00
6
07 Transition: pressed -> released
7
02 Source: Endpoint #2 (hosts primary on/off client cluster on D1)
8
06 00 Cluster ID: 0x0006 - on/off
9
02 ZCL Command Template: Toggle
10
11
08 element #2: eight bytes
12
00 InputAndOptions: 0x00
10