Added initial device light detection

Changed detection

Added exteded devicelight detection

Refactored detection

Added doc description