I can’t see your 7 minute problem in the trace… getting 10 minutes and 45 minutes correctly.
I did however see an issue with the set level followed by off command though, wasn’t working in my virtual environment.
Also, I didn’t realise you wanted the lights to return to 75% when opening the shower door… seems like an odd time to do that safety wise.
Anyway… try this: