[1/2] Improve led availability checking and caching.

Second part apps/Lightbulb.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>