The reason the on DEOP doesn't trigger is the @ prefix, which I didn't notice at first. When you deop yourself, you're no longer an op, so the event won't trigger if it has the @ prefix.

Did you try on RAWMODE with the @ too? If yes, remove it and test it again, it should work.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com