Detect when Apple TV off/sleeps?

This is how i do it, i have the strip taped over the LED on the Apple TV.