Fritzing view :
The application source is available at https://github.com/franckmarini/KnxDevice/blob/master/examples/KnxDevice_PushButton/KnxDevice_PushButton.ino.
This program manages the signal debounce, and bases on the switch feedback value of the actuator to always toggle the correct value (even after reset or when the switch is driven by several command devices). All the underlying KNX “machinery” is managed by the KnxDevice library.
In term of KNX configuration :
– Group address 0.0.1 drives (one of) the actuator channel. The corresponding communication object is configured to binary output (1.001 B1 DPT_Switch, Communicaion/Read/Transmit indicators).
– Group address 0.0.2 is the feedback value of the channel switch. The corresponding communication object is configured to binary input with init read (1.001 B1 DPT_Switch, Communication/Write/Update/Init indicators).
To finish, let’s watch a small demo :