Lost on rule using switch/case statements

Such long thread:sleeps can have unwanted side effects.
Try removing them, or use expire timers instead.
See Design Pattern: Expire Binding Based Timers - Tutorials & Examples - openHAB Community
Note, expire is now part of Core, not a binding anymore (OH3)