trying to fix scene trigger out of order

i have multiple door sensors in the house, and i’ve setup scenes to trigger the sensors change state (open/close)

now, my issue is that the vera will often trigger those in the wrong order (vera triggers close then open when I open then close the door)

is there a way i can fix that?

is there a trigger time function i could call? i currently use os.time(), but gives me the out of order time.

thanks