WJDDesigns / Ultra-Vehicle-Card

This custom card allows you to display vehicle information in your Home Assistant dashboard, including the vehicle name, image, and fuel or charge level.
Other
174 stars 17 forks source link

What Data Type is Needed for Fuel Level and Fuel Range? #126

Closed jianyu-li closed 2 weeks ago

jianyu-li commented 3 weeks ago

Whenever I set entities for these two the card always disappears

WJDDesigns commented 3 weeks ago

I am not sure why it is doing this for you? For fuel level you need an entity that is using percentage based 0-100%. For range just any milage entity will work.

jianyu-li commented 2 weeks ago

I did some more testing, the integration does return a percentage fuel level and it blanks out my card. I tested with a template sensor in decimal format (no percentages) and it worked. So as a workaround I'll just create a template sensor and use that.

jianyu-li commented 2 weeks ago

Just another observation I wonder if my integration is actually returning a string. My template sensor returns a decimal with a unit_of_measurement of "%". Anyway, I got it working.