add example of how to get the state of a light
use fmap instead