If I use {% if … %} in an automation the script is replaced with null after watching it in GUI. How is this supposed to work?
You’re going to have to elaborate. Possibly with screenshots or configurations.
I will provide an example later. But basically I just replaced the brightness value with a statement.
Templates need to be wrapped in quotes