How to add a basic swicth in design of Knxweb2
Add a widget "button" :
Change the text or remove it if you want, add an active and no-active picture in this exemple 3d/light_on.png and 3d/light_off.png
choose the feedback object of an actuator in the exemple "Applique 1 Cuisine" is an object type 1.OO1 the value are "on" or "off" so "Value for active" is "on"
Add some actions :
whit the button "Edit" of "Action when inactive" :
when the "feedback object" not equal to the "Value for active" when we click on the button we send this actions
so we have to send a "on" on the command object of the same actuator
so we add a "set-value" action on the command object for send "on"
whit the button "Edit" of "Action when active" :
when the "feedback object" equal to the "Value for active" when we click on the button we send this actions
so we have to send a "off" on the command object of the same actuator
so we add a "set-value" action on the command object for send "off"
Then save the design and try