Using hue_event in a condition possible?

Hi,
I have an automation that sets my kitchen lights to full brightness when a motion detector fires and the lights are already turned on but dimmed down.

Quite often it happens that I set the lights to low brightness manually using a dimmer switch and the motion detector fires immediately afterwards (the switch is “in view” of the detector) - causing the automation to trigger and set the lights to full brightness unintendedly.

I would like to add a condition that prevents the automation execution if the switch has been pressed within the last eg. 5 seconds.
Is that possible?

Alternatively, I could set up an automation that triggers when the switch is pressed and turns on an input_boolean for a couple of seconds, which in turn can be used in the above automation’s conditions.
But I think a hue_event condition is more straight-forward.

EDIT: I now solved this using a second automation that triggers on the switch event and turns off the motion detection automation for a couple of seconds.

Sebastian