I’m using the MéteoFrance integration to get weather information. I’d like to show the state without the unit of measurement. For example, if the UV level is 4 UV level, in the States section of Develoer Tools, it shows that for the sensor (let’s call it sensor.uv), the state is 4, and in the attribute, “unit_of_measurement: UV index”.
When using the glance card, I can’t seem to get rid of the unit of measurement. It always shows “4 UV index”. I’m successfully using card_mod to change the color based on the level of the UV index, but I don’t want it to say 4 UV index, just “4”.
Can someone point me in the right direction please?
Does it have to be a glance card? There are easy ways to do this (without creating a template sensor) with the entities card or custom:button-card for example.
The glance card doesn’t allow for templating (hence my question).