Toggle mute: change icon colour

I’m new to this so forgive me if this is obvious.

I’m trying to put in a mute button using a mushroom template card, I want it to change color when it’s muted.

This is what I’m using for the on off state

{% if is_state('media_player.kitchen', 'on') %}
  orange
{% endif %}

is there a way of doing this for is_volume_muted = false/true?

image_2023-03-04_183243163

{{ is_state_attr('media_player.kitchen', 'is_volume_muted', false) }}

1 Like