Knx button to turn off all lights

i am an noob on programming and home assistant
i have a knx button i want to turn off all my lights. and i have no idea how im going to do it.

Do you want to turn off all knx lights or all HA lights?
If latter use a knx binary_sensor or switch with group.all_lights as action.

Here is some documentation to start: