Trying to turn lights off when something is true but not working

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Use backticks ``` not quotes ‘’’ to format your post.