Is is possible to place an if statement into the layout of a "grid(layout-card)
i want it to swap over depending on the state of a bulb etc i can get it to work in templating and see it swap but getting errors when i try to put it in the layout section
grid-template-columns: 1fr 1fr 1fr
{% if is_state(“light.study_light”, “on”) -%}
grid-template-areas: |
“slider button button”
{-% else %-}
grid-template-areas: |
“slider slider button”
{%- endif %}
I’ve tried all various options of brackets but to no avail
1 post - 1 participant