Trying out the conversion manually in your head, on paper, in a text editor or in the template editor in the dev tools is a good idea.
Further:
Markdown headers #, ## etc. turn a single line into a header.
HTML attributes shall be on the form attribute="value" with no spaces and with quotes. Other ways often work due to historical reasons, but only until they don’t. This always works.
If a markdown card doesn’t update when an entity changes, try setting the entity_id list manually.
which outputs an rgb value, isnt accepted when I use it in the markdown card, either as template, or a when the full template is used.
Replacing rgb values in the exact same template with color names or hex numbers does show correctly. What am I missing now?
btw it wasn’t the updating, so we can forget about that in this issue
because it’s not a string, its a color. Notice how the rgb is inside quotes? Notice color is not? I don’t know if it will actually work, i’m guessing that the space is screwing it up.
yea, you’re probably right. Will make an extra sensor without the space and let you know.
Though I can already confirm the existing dark_sky_temp_color as posted above works just fine in the custom dark-sky-weather-card.js for coloring the main temp color.
That is not, I tried and the same thing comes out, the literal text, it seems as if I was not able to interpret the template
<font color={% set long =states('binary_sensor.rclone_comando_longitud')%}{% if long == 'on' %}"white"{% else %}"red"{% endif %}>```[[ sensor.rclone_comando_limpio_lovelace ]]```</font>
<font color={% set long =states('binary_sensor.rclone_comando_longitud')%}{% if long == 'on' %}"white"{% else %}"red"{% endif %}>```{{ states('sensor.rclone_comando_limpio_lovelace') }}```</font>
Not even that
<font color={%'white' if is_state('binary_sensor.rclone_comando_longitud','on') else 'red'%}>
```[[ sensor.rclone_comando_limpio_lovelace ]]```</font>
please be more precise about what this means. error in the log?
btw, you didn’t use my previous template, but kept your old. don’t use the square brackets, and don’t use the back ticks.
<font color = {{'white' if is_state('binary_sensor.rclone_comando_longitud','on') else 'red'}} >{{states('sensor.rclone_comando_limpio_lovelace')}} </font>
There is no error in the registry, I am trying to change the text color of a markdown card according to the status of a binary sensor, but I always get the literal text if I try.