'Return True if switch is on.'

@property
def is_on(self):

    set_req = self.gateway.const.SetReq
    if (set_req.V_LIGHT in self._values):
        return (self._values[set_req.V_LIGHT] == STATE_ON)
    return False
