Closed MicJour closed 1 year ago
Is it possible to use a variable in the following code? Example to pass an icon into variables.
custom_fields: temp: > [[[ return `<ha-icon icon="mdi:thermometer" style="width: 12px; height: 12px; color: yellow;"> </ha-icon><span>${entity.state}°C</span>` ]]]
I found the answer myself.
ent01: | [[[ return `<ha-icon icon="${variables.var_ent01_icone}" </ha-icon>` ]]]
Is it possible to use a variable in the following code? Example to pass an icon into variables.