Make switch state and timeout persistent against power loss.