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('', 'on') %}
{% endif %}

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


{{ is_state_attr('', 'is_volume_muted', false) }}

1 Like