Closed priyankub closed 3 months ago
Use --icon-color
in the style field instead. It was a minor breaking change in version 3.9.0. in the version 4 beta, you can instead use the icon CSS selector.
.icon {
{% if states("switch.av_room_light_switch") == "on" %}
color: #cfbf0c;
{% endif %}
}
That works. Thanks!
Similar to this topic, how do I change the icon conditionally on the new version? On the old version I did this with my custom button:
icon: > {% if state_attr('media_player.yamaha', 'sound_mode') == 'all_ch_stereo' %} mdi:speaker-multiple {% else %} mdi:speaker {%- endif %}
It should be the same, you just have to switch to the YAML editor. Is it not working anymore?
It should be the same, you just have to switch to the YAML editor. Is it not working anymore?
Sorry, my bad. it is still working. I thought it was not possible to do with the YAML-editor any longer.
Checklist:
Release with the issue:
Last working release (if known):
Browser and Operating System:
Description of problem: I use CSS style and color to change color of icons based on current selected source, and status of lights etc. It seems to have stopped working after some update:
Javascript errors shown in the web inspector (if applicable):
Your Full Remote Config
Additional information: