Help with a piston firing 5 hours after a switch closes


#1

I want my wake up lights piston to triggering Mon-Fri 5 hours after a switch closes. The switch may close the night before.

I have a bedtime routine that turns on a virtual bedtime switch when it runs and turns off the switch when it finishes.
I would like to trigger the wake up routine to run 5 hours after the bedtime switch closes. That way the wake up routine adjusts to when I go to bed.

This is my current routine. Open to any and all suggestions and resources for learning!
Thanks!


#2

If you can drop the trigger for Switch 11, this concept works well:

IF Contact Sensor 1's switch stays off for 5 hours
    Then do cool stuff
END IF

Note: other triggers in this piston can break that STAY