audi_connect_ha
audi_connect_ha copied to clipboard
Convert KM to Miles
Is it possible to convert the default KM into Miles via a setting on the integration?
Although most of Europe use KM for measuring, in the UK we use Miles.
Thanks Leacho
sensor:
- platform: template
sensors:
oil_distance:
friendly_name: Odo Miles
unit_of_measurement: mi
value_template: >
{{ (states('sensor.km') | float/1.609 | round) }}
Try something like this - I pulled it from here - https://community.home-assistant.io/t/value-template-help-for-a-beginner-to-display-attribute-values-that-are-converted-into-uk-format/55067/3
This issue is stale because it has been open for 30 days with no activity. Are you still experiencing this issue?
This one need unit of measure added so it could be changed in HA native.
This is complete, closing the issue. @leacho73 please open an issue if this isn't working.