SAIC-iSmart-API / saic-python-mqtt-gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can the figures (currently in KM) be presented in HA as Miles?

daknightuk opened this issue · comments

Can the figures (currently in KM) be presented in HA as Miles? I'm in the UK

@daknightuk Does the value reported by HA correctly represents the figure in miles? I.e. it's just the displayed unit that is wrong

@nanomad No the number represents the figure in KM only now whilst I "could" create a filter template in HA this would mean creating one for each reading in KM to convert it to miles and let me be honest that would then double the number of entities and make HA both confusing and a hassle when writing automations. Ideally (like on the MG app) there should be an option to switch between Miles and KM and some simple maths in the background i.e KM divided into 0.62137119 = Miles.

HA will do this for you, and also converts the number correctly. Here, my 88.0km since last charge becomes 54.7mi:

image

I guess we can close this as not needed if it can be easily configured in HA without creating new templates

@Troon thank you so much for this I had no idea you could do this on HA :)