Hi,
I have made a template in a mushroom title card, but I would like to make some text colored (code below).
For example make the word “returning” green.
Is there any way to include this in a mushroom titlte card by making use of css?
{% if is_state("media_player.living_room_google_tv", "playing") %}
{% if state_attr('media_player.living_room_google_tv', 'media_content_type') == 'music' %}
You're listening to:
{{ state_attr('media_player.living_room_google_tv', 'media_title') }}
by {{ state_attr('media_player.living_room_google_tv', 'media_artist') }}.
{% elif state_attr('media_player.living_room_google_tv', 'app_name') == 'YouTube' %}
You're watching: {{ state_attr('media_player.living_room_google_tv', 'media_title') }}
{% else%}
You're watching: {{ state_attr('media_player.living_room_google_tv', 'app_name') }}
{%endif%}
{% elif is_state("media_player.living_room_google_tv", "buffering") %}
The player is buffering...
{% else %}
Currently nothing is being played.
{% endif %}
{% if states('sensor.electricity_meter_power_production')|int > 0 %}
Congrats! 🎉
You're returning {{ states('sensor.electricity_meter_power_production') }} kW to the grid!🌳
{% elif states('sensor.electricity_meter_power_consumption')|int > 0 %}
You're consuming {{ states('sensor.electricity_meter_power_consumption') }} kW! 🔥
{%endif%}