Control HC-SR501 and TTP223

Hello. help me implement working with TTP223 button:
-Short press: change effects
-Double press: the timer was set to turn off the LED strip
-Long press: turn on / off the LED strip.
When the LED strip is off and the HC-SR501 motion sensor is triggered - the strip turns on at the specified brightness. After some time of inactivity, the LED strip turns off.
If it is already implemented, please tell me where to see it.

Seems like you would just use those as two buttons and then set up presets to fire from them. See https://kno.wled.ge/ LED Settings for button pin setup and Time & Macros for assigning presets to buttons.