Help please, multi purpose sensor trigger for lights after door closes the second time?

Quick question guys, sorry I think I’m missing something, or can I override this automation…

This automation is to “reset” the bulb to then turn on full if no motion and the door opens…

However, I think this is interferring with, turn on the bulb with just motion.

Is there a way to prioritise the other routine “turn on with motion”? (a seperate routine).

I ask this as, earlier the light went out whilst in the bathroom and the motion sensor didn’t turn the light back on?