MQTT in imperial units? #230
Replies: 10 comments 1 reply
-
Currently not. I'd like to have a topic for each of the different units in the future though. For example:
|
Beta Was this translation helpful? Give feedback.
-
Thanks! Yes, supporting imperial units natively would be great (LOL, I know US is way behind). For now, conversion within HomeAssistant itself work fine for me. |
Beta Was this translation helpful? Give feedback.
-
What does MQTT stand for? |
Beta Was this translation helpful? Give feedback.
-
I'd like this as well. Any arithmetic operation in yaml/home-assistant is not really straightforward. Sending a unit specific topic seems cleaner solution. |
Beta Was this translation helpful? Give feedback.
-
I'd like this as well. I am using MQTT /w Home Assistant and a ESP32. And both placed I have to do manual conversion. The option mention above supported both would be awesome. |
Beta Was this translation helpful? Give feedback.
-
I know some of you have worked this out, but for others that may not have, you can use a value template in home assistant to create an additional entity with the imperial units. You can leave the original entries there and add these as extras (one example of each below)
|
Beta Was this translation helpful? Give feedback.
-
I have related (EDIT: and stupid) question -- I live in UK but drive in Europe from time to time. When I'm at home the car is set to use imperial units, but when in Europe I like to switch to display km. What happens in Teslamate when it starts getting values in different units? |
Beta Was this translation helpful? Give feedback.
-
I was just in France the last days (no back in the UK) and the reports in Grafana are shown in miles and look fine (ie, the km traveled is shown correctly/converted to miles). |
Beta Was this translation helpful? Give feedback.
-
I should have just checked the TeslaMate MQTT feed -- everything is in km only. Clearly the conversion to miles is done in the UI - as is implied by there being the units settings on the settings page. And if you look at the JSON behind any of the Grafana displays you can see expressions like |
Beta Was this translation helpful? Give feedback.
-
Tesla seems to prefer km even being a US company. And I don't blame them. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to display the MQTT information in imperial units rather than C and km?
Beta Was this translation helpful? Give feedback.
All reactions