Comments (7)
Hi, please share some more details:
- what is your unit configuration in the MB IOS/android app
- What is your unit configuration in HA
- Please share the attributes of the odometer
from mbapi2020.
I encounter the same issue. To answer the questions:
- What is your unit configuration in the MB IOS/android app
It's miles in the Android app
- What is your unit configuration in HA
The unit system I use is metric (Celsius, kilogram). I can't find anything about km/miles anywhere in the settings.
- Please share the attributes of the odometer
Is it also okay to only share the ones that I think should be relevant for this issue (to not expose to much information about my car)? Let me know if you need more information.
Original value 8514
Distance unit MILES
Unit MILES
DistanceReset 5286.7
DrivenTimeReset 9657
Note that for me it shows as 5,290 km in the interface, where it should be 5,290 miles.
from mbapi2020.
Hi, mi is shown when you switch to the imperial system in HA. Is this an option?
from mbapi2020.
I tried switching to the imperial system, but it would not show me miles (although I didn't restart my home assistant, not sure if that would be required for it to show). However, I live in the UK but I am from the EU, so I prefer the metric system. Switching to imperial would also mess up with other things such as Fahrenheit/Celcius.
Ideally I would like to see the miles, but I could live with km's as well. However, the km's are now showing wrong.
Happy to try to make a PR for it myself if you want to?
from mbapi2020.
Hi,
I have rewritten the Unit Handling of this component. With the current master branch, you can define your unit-settings in the MB-me app and these settings are used in the component in HA too.
Would be good if you could test this in your instance before I publish a new version.
All changes compared to the last version 0.7.4
BREAKING CHANGES:
Units:
- All units are based on the settings of the MB Me (Connect) App now.
Sensor SOC
- added State Class measurement
- removed attribute chargingpower (extra sensor now)
Sensor Odometer
- removed attribute averageSpeedReset (extra sensor now)
- removed attribute averageSpeedStart (extra sensor now)
- removed attribute distanceReset (extra sensor now)
- removed attribute distanceStart (extra sensor now)
- removed attribute distanceZEReset (extra sensor now)
- moved attribute drivenTimeZEReset to sensor distanceZEReset
- moved attribute drivenTimeReset to sensor distanceReset
- moved attribute drivenTimeZEReset to sensor distanceZEReset
- removed attribute batteryState (extra sensor starterBatteryState now)
- removed attribute ecoscoretotal (extra sensor ecoscoretotal now)
- removed attribute ecoscorefreewhl (extra sensor ecoscorefreewhl now)
- removed attribute ecoscorebonusrange (extra sensor ecoscorebonusrange now)
- removed attribute ecoscoreconst (extra sensor ecoscoreconst now)
- removed attribute ecoscoreaccel (extra sensor ecoscoreaccel now)
- removed attribute ecoscorebonusrange (extra sensor ecoscorebonusrange now)
- removed attribute liquidconsumptionstart (extra sensor liquidconsumptionstart now)
- removed attribute liquidconsumptionreset (extra sensor liquidconsumptionreset now)
- removed attribute rangeliquid (extra sensor rangeliquid now)
- removed attribute tanklevelpercent (extra sensor tanklevelpercent exists already)
Sensor distanceZEReset
- added attribute drivenTimeZEReset (from Odometer)
Sensor distanceStart
- added attribute drivenTimeStart (from Odometer)
Sensor distanceReset
- added attribute drivenTimeReset (from Odometer)
Sensor tanklevelpercent
-
- added State Class measurement
from mbapi2020.
fixed with release v0.8.0b2
from mbapi2020.
I only see your message now. Thank you for fixing this. I just reinstalled the custom component and I can confirm it works!
from mbapi2020.
Related Issues (20)
- AUX heater not working in update HOT 9
- AUX heater not working after update HOT 27
- 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
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.