Float level switches for solids