Stun lasting forever is kinda much and a little boring for battles
I took a look at it. Stunned (and Sleep) has Auto-Removal Timing set to Action End, which never happens because the state keeps the target from acting. It needs to be set to Turn End instead. You'll also want to have YEP_CoreEngine load before YEP_BattleEngineCore, or else it'll last half as long as it should.