New function to get on/off state of specific light