
3.2.1. Example
1
41 element type: 0x41 (raw data)
2
04 00 element count: 0x0004 (4 entries)
3
4
06 element #1: six bytes
5
00 InputAndOptions: 0x00
6
0D Transition: released -> pressed
7
01 Source: Endpoint #1 (hosts primary on/off client cluster on C4)
8
06 00 Cluster ID: 0x0006 - on/off
9
02 ZCL Command Template: Toggle
10
11
06 element #2: six bytes
12
01 InputAndOptions: 0x01
13
0D Transition: released -> pressed
14
02 Source: Endpoint #2 (hosts secondary on/off client cluster on C4)
15
06 00 Cluster ID: 0x0006 - on/off
16
02 ZCL Command Template: Toggle
17
18
06 element #3: six bytes
19
02 InputAndOptions: 0x02
20
0D Transition: released -> pressed
21
03 Source: Endpoint #3 (hosts tertiary on/off client cluster on C4)
22
06 00 Cluster ID: 0x0006 - on/off
23
02 ZCL Command Template: Toggle
24
25
06 element #4: six bytes
26
03 InputAndOptions: 0x03
27
0D Transition: released -> pressed
28
04 Source: Endpoint #4 (hosts quaternary on/off client cluster on C4)
29
06 00 Cluster ID: 0x0006 - on/off
30
02 ZCL Command Template: Toggle
3.3. Single Stationary Switch as Toggle Switch
Related C++ class: CZigBeeDeviceSetupInputPatternSwitchToggle.
This is similar to the push button version, but intended for switches with two stable positions. Sends a
“toggle” command on every flip. It is useful when either one or multiple switches control a single light
or, generally speaking, on/off actuator. It is less useful to control a group of lights or multiple
actuators, because there is a potential that part of the group is turned on, part is turned off and in
such a situation a toggle switch would never be able to turn all targets on or off. For a single target,
the advantage is that each switch actuation results in a state change of the target.
The idea is that each transition from the released state to the pressed state fires a “toggle” command
and any transition to the released state (regardless whether the transition started from the pressed or
kept-pressed state) also fires a “toggle” command.
3.3.1. Example
This would be a configuration for C4, which assigns each of the four inputs as a stationary switch
(two stable positions) to a corresponding on/off cluster instance on the primary, secondary, tertiary,
and quaternary level control switch endpoints. The shown configuration must be written to the
InputActions attribute:
4