KNX binary sensor, resetting

In the knx documentation, you are recommended to use xknx.yaml for setups with many knx-items. The xknx.yaml has a different syntax.

https://xknx.io/binary_sensor

A light switch is a binary sensor in KNX. KNX doesn’t send a pulse when a switch is pressed. It sends “ON” and if you press it again, it sends “ON” again. It never sends “OFF”, so to use the switch state turn off or on lights in HA doesn’t work, because the state never changes.

If you configure without using xknx.yaml, there is a “reset after”-functions that can fix this:

But how do I do this if i use the xknx-notation? Should i just skip using the xknx-notation? And use the regular HA-notatation?