I’m really struggling with binary sensor templates.
Plugging the value_template into the Template Dev Tools it results correctly. So based on the on/off result I then assumed that is converted into open/closed based on the device_class.
But then when viewed under States in the UI it shows as closed, and never changes. Not sure where I am going wrong.
After many, many, many hours of trial and error, I finally figured it out.
For others reading this in the future, the following is working. I just need to better understand the formatting. I previously tried this with Open and Close, but instead needed True and False.