Switch device cannot be set to the Off state through verse

I found the issue in my code. Please ignore this post, i cant delete it