Hallo zusammen,
ich versuche meine KNX Rollos in einer Mushroom cover card anzuzeigen was auch schon ganz gut funktioniert, nur das die Anzeige eines entsprechenden Icons entsprechend der aktuellen Höhe des Rolls will mir nicht gelingen. Kann mir jemand helfen?
Hier der Yaml Code der Karte:
type: custom:mushroom-cover-card
entity: cover.wohnzimmer_schiebetur_rollo
show_position_control: true
show_buttons_control: true
icon: |-
"{{% if state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 90 %}}"
kuf:fts_shutter_100
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 80 %}}"
kuf:fts_shutter_90
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 70 %}}"
kuf:fts_shutter_80
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 60 %}}"
kuf:fts_shutter_70
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 50 %}}"
kuf:fts_shutter_60
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 40 %}}"
kuf:fts_shutter_50
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 30 %}}"
kuf:fts_shutter_40
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 20 %}}"
kuf:fts_shutter_30
"{{% elif state_attr('cover.wohnzimmer_fenster_rollo','current_position') | float > 10 %}}"
kuf:fts_shutter_20
"{{% else %}}"
kuf:fts_shutter_10
"{{% endif %}}"
Hier die Fehlermeldung im Code Editor:
Konfigurationsfehler erkannt:
can not read an implicit mapping pair; a colon is missed (6:90)
3 | ...
4 | ...
5 | ...
6 | ... nt_position') | float > 90 %}}"
-----------------------------------------^
7 | ...
8 | ... rent_position') | float > 80 %}}"