I’ve read your post only know, after I’ve posted my question. But I think I’m getting closer to understand it.
thank you, that’s just what I’m trying to do!
guess this essential
without all of that code, what would your icons needs to be, based on which sensor, or state?
So I have to get rid of the rest of the syntax? How?
by starting with the basics in Markdown card - Home Assistant
create a pure card with some content only
next, add a single icon
next, add color
if all of that works, then add templates to the icon and icon color
dont do this
but learn and understand. There is no other way.
The icon should be
based on the state “off” (or German translation “Aus”?) of the template “binary_sensor.audi_eingesteckt”.
{{ 'on' if is_state('sensor.tronity_q4_sportback_e_tron_plugged', 'True') else 'off' }}
That’s what I meant. Code step by step, fix errors and learn and understand from it.
see my post above…
first try your self and follow that order I posted
(besides all that, is there no binary_sensor available for that? Or maybe even a battery sensor. my guess is there should be, and that sensor should already have the correct icon, if programmed correctly)
again, this is basic knowledge:
the HA system is in English in the backend, and the German translation is only used in the Frontend dashboard. Most of the time…
thats why I also said to Always check in the dev tools, because those are always 100% factual.
dev tools states shows that entity too, with the state you need in the template