Trigger preset for a specified time

I may be missing something obvious, but is there a way to trigger a preset to run for X seconds and then return to the previous preset?

I’ve got a GPIO trigger but it’s exceptionally momentary, I want to run an effect for a few seconds in response to the input.

I’ve used wled before but not with button inputs.

PIR usermod might be able to be “abused” to do that