Badge Icon - Missing Number

Hi all,

I hope you are fine.
I have a kind of a strange issue here.

I want to see the % of charge left in my car as badge.
This is working fine, but I can see the number itself just the %.
If I click on it, I can see the exact percentage number.
So, here is a pic of the issue, and the template code itself, I hope you can help me here:
This is only if I use a custom image, if not, there is the number in big letters where the picture normally is.

19

- platform: rest
  resource: "https://XXXXXXX.de/cc/v0.1/status/vehicles/VINKMHC851HFHXXXXXXX"
  name: "XX-XX-XXXX Ladestand - Hyundai Ioniq"
  scan_interval: 60
  force_update: true
  value_template: >
      {% for i in value_json.eventStatusList %}
          {% if i.eventType == 'ENERGY_LEVEL' %}
           {{ i.eventData.value }}
          {% endif %}
      {% endfor %}
  unit_of_measurement: '%'
  headers:
    Authorization: "XXXXXXXXXXXXXX"
    content-language: "en_US"

Can you show us your Lovelace yaml for the sensor?

If i remember correctly, images cover the state for badges. If you remove the image, it will show up as a badge properly. The value is not placed inside the % symbol. I believe the light domain places the brightness percentage with the % symbol, you could make this a fake light.

Hi,

this is a normal badge, I can not see the code for this, as I think there nw place to get it right ?
But here is the pic how it looks like:

And yes, if I remove the picture I can see the number again
But it should be visible right next to the % sign righ?

I don’t think so, been playing around on the demo and the only states that show in that bar are device_trackers. All others show in the badge itself, even the light domain (it just shows on, no %).

Hi,

that is strange, but looks like you are totally right.
So i will figure out an other way to let this shown nicely.
Thanks

I mean, I wouldn’t say totally right. It could have behaved differently in the past and we are seeing a bug. I’m going off memory and the current demo. And my memory is not great sometimes.

Apologies for resurrecting this topic, but how do you get your charge level of your Ioniq? @TheCrey is it using EVNotify?