Hi Simon, is there a reason that bed time needs to be in a variable? Could you have a separate sequence set up to run at 23:25 which would set the variable 'running' to off?
I think that would achieve the same outcome. And in future if you wanted to change bed time, you would only need to modify the start time of that one sequence.