Delaying action on State Change

thanks for taking a look, I am going to look further into the state machine, I think that should be very similar to the StateChangeDetection example sketch?