
3.5. Single Momentary Switch as Timed On/off Switch
Related C++ class: CZigBeeDeviceSetupInputPatternPushTimedOnOff.
This recipe sends an “on with timed off” command when the push button is pressed. It is particularly
useful to control lights in a corridor application, or interfacing with garage door openers, valves, and
other equipment, which must return to the off state after a predetermine time. For certain critical
applications, this also ensures that the device turns off, unless it is frequently triggered to either turn
on, or remain on and thus tolerates missing an off command for equipment that could potentially be
damaged or cause damage when operated continuously.
The idea is that each transition from the released state to the pressed state fires an “on with timed
off” command; no other transitions are taken into account.
3.5.1. Example
This would be a configuration for C4, which assigns each of the four inputs as a momentary switch
(one stable position) 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:
8