Isn't it possible to create a global rule etc, so once after the 5second delay, the rule is if the alternatorPin is low, the ignitionPin is set high until the alternatorPin goes high?
Then so long as the alternatorPin is HIGH, it waits either 10 minutes or for a brakePin to go HIGH, then loops the code back to the beginning waiting for another serial input?