A mechanical limit switch is disposed in the awning housing to detect the retracted position.
Lived in that house right up there with the red awning.