When does the LED on the Nintendo Switch dock light up?

The LED on the Nintendo Switch dock, or TV output LED, lights up when the Nintendo Switch console is outputting to a TV.

This LED is not related to charging, and will not go out when the console is fully charged.