Comments (5)
It appears that the value in HA is set by the units settings in HA. There is no way that I could see in HA to set different units for distance, temperature, speed etc.
The MercedesMe app does however for different unit types.
HA shows the correct unit in the sensor, but HA does not use this.
My work around has been to use customisations.
Then using the following
from mbapi2020.
hi, what is your HA setting? See configuration, general, unit system? And what settings are configured in your IOS/Android App in your profile?
from mbapi2020.
Switching to imperial will show the unit xx mi.
The switch in HA between miles and Km, does not change the unit value, like it does with say the weather. degC/DegF
It will show 100miles and 100km, not 160km.
So even if I leave as Metric - the Km is not the correct value.
from mbapi2020.
Let me check. We had this in the HA-Community a year ago. The sensor name is rangeelectrickm. And the km is hardcorded in the const.py. Sorry, I can't remember and have to look into the discussion.
from mbapi2020.
The value is based on your MB-App setting. If you configured miles in the app then value in HA is miles to. There is a special attribute distance-unit in the odometer sensor that shows the unit. So please align your HA-setting with MB/App setting.
thats why the component does not recalculate the values.
from mbapi2020.
Related Issues (20)
- Smart missing after uninstall and reinstall 0.10/0.10.1 HOT 9
- Remote Lock/Unlock failing HOT 2
- Re-authentication failing HOT 5
- AUxHeat not available anymore HOT 2
- Preheating state HOT 5
- How to use the exclusion of cars by FIN/FIN? HOT 7
- New warning after last update - Problem with fences/violations data at Mercedes database HOT 2
- Error when capabilities are not available
- Authentication failed. Please reauthenticate. HOT 22
- When changing charging program, max_state_of_charge doesn't update HOT 3
- Failing to Authenticate on 2024.3 HOT 15
- Minor spelling issue HOT 1
- Other error Cannot write to closing transport HOT 4
- Car is constantly disconnected after last update HOT 4
- Values jump between actual Value and old Value? HOT 5
- Device Tracker no longer showing correctly HOT 6
- Logs being filled with connecting to Mercedes, connected too Mercedes messages HOT 2
- shouldn't odometer sensor have state_class total_increasing instead of measurement? HOT 2
- Remove spikes HOT 3
- authentication is failing since update to 0.13.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbapi2020.