When I create a template fan using more than 3 speeds, the preset speed icons all become dots when using a tile card. Is there a way to specify what icon to use per preset?
I’m looking for this also. I saw your original example but I’m a bit confused by the icon what you are using there, how would you assign a “buil-in” icon like “mdi:water”?
I was thinking something like this (I have a humidifier):
First of all thanks for the answer. My problem is that the humidifier card seems to be bit too complicated for me and I cannot figure out the correct call chain. Here is the full path to the svg icon for one of my options:
As I said before, take the example and set SVG path. Cannot say anything about the path, not using thermostat and away from PC. The card-mod-icon cannot be used here.
Thanks for the clarification, exactly what I was not knowing, how to define the style. But which part of the code defines which icon to be used? Sorry I cannot find it in here:
One question remains, how to change the color of the icon based on what mode is slecet. If default icons are used than HA autmatically recolors the icon to white, and the selection is marked with blue.
I would use some kind of “IF” structure, but I do not know where to put it exactly(I tried different ways, no succes).
Also I do not know what should be the condition of the “IF”, I saw an ‘is_mode()’ function but my entiti/device is humidifer.D22_purify and I do not know how to extract the ‘mode’ info and use it for the decision making.
Btw, you guys are awesome, I do not whish to take advanteg of your kind asssitance, I can live with this already