Deconz event last triggered as condition

Hi
I’m looking for a way to use a deconz switch last triggered timestamp as a condition in a automation. FX

event_type: deconz_event
data:
  id: kon_swi_bord
  unique_id: bc:33:ac:ff:fe:0b:84:4b
  event: 1002
  device_id: 6291e2caa9031e184564c12e738f83dd
origin: LOCAL
time_fired: "2024-03-17T18:42:04.120007+00:00"
context:
  id: 01HS6VH36RQPWM8X7R23P3HB26
  parent_id: null
  user_id: null

Why? I got motion/door sensor and other automation that turn the lights on or off. But if i manual turned the same light on or off on my switch 5min ago the automation shouldn’t run. I can see the event in the logbook, but looking for a way to use it as a condition.
I use MariaDB as recorder and got a few SQL sensors, but it would be a bit cumbersome to make manual sensors for each event.

/Lars