Input_boolean.serrande

Hello everyone, I am new to “Home Assistant.” I have the following problem. I have an “if/then/else” automation that opens and closes the blinds. I assigned this automation to a button. This button works perfectly, but I am not able to change the icon state between “blinds open” and “blinds closed.” I followed a tutorial that told me to add a customize.yaml to include in configuration.yaml and put the following code:

input_boolean.serrande:
icon: >-
{% if is_state(‘c’, ‘on’) %}
mdi:window-shutter
{% else %}
mdi:window-shutter-open
{% endif %}

I have tried many solutions but I cannot switch from “mdi:window-shutter-open” to “mdi:window-shutter”.

How can I solve it, thanks everyone.

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

“c” is a text letter c, is not an entity, and is not ever going to be the state “on”…