Mercedes Me Component

Perfect !!
I did not read it although I checked your repository : my bad !
Thank a lot for you work

Since today in the morning my integration is not working anymore, it says “unavailable” for all my entities and devices.

The error logs show the following:

Logger: homeassistant.components.switch
Source: custom_components/mbapi2020/switch.py:40
Integration: Schalter (documentation, issues)
First occurred: 06:11:33 (2 occurrences)
Last logged: 07:36:03

Error while setting up mbapi2020 platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/mbapi2020/switch.py", line 40, in async_setup_entry
    getattr(car.features, value[5]),
AttributeError: 'NoneType' object has no attribute 'AUXHEAT_START'

Nothing changed during the time, yesterday evening everything worked out well? :open_mouth: Someone else got the same error? Thanks loads in advance!

Hi, I have this too for one of my cars. started at 6:10am CET. I assume its a problem on MB server side. Lets wait few hours. I assume they will restart some services :wink:

BR
Rene

1 Like

Good morning,

thanks for confirming it is not me alone xD Thanks! Lets see and wait - though the MB App is working fine as of now. Strange … “The best or nothing” :wink:

hi, I assume this is related to the global Microsoft Cloud problem that is still running. Lets wait few hours more… MB App is working partially only…

my cars are back after a HA restart now.

Edit: Just restarted all my instances and in 2 out of 6 I still see some cars missing… but it getting better…

1 Like

Same here, it now states that my SmartEQ VIN does not belong to user when trying to start the preconditioning … Mysterious…

They have still some malfunctions, received this morning an email confirming it from the Mercedes ME support.
Although that, I can lock/unlock the car and let the car blink the headlights. The stats don’t update.

1 Like

Can someone confirm this is still working? I tried it but the value is “Unknown” and the Sensor.XXX_Charging_power_2 is not available at least for me? I thought we could do something like:

1. Take the Odometer value (e.g. 3000 km)
2. Take the value "Consumptionreset" (e.g. 20.0 kWh/100 km)
3. Multiply 1 and 2 and divide through 100
--> Delivers the overall consumption of the car like a "Strom Zähler"?

Wouldn´t that work? Tried it but it is not working and putting out values like 10000 kWh for 1 day - then the other it seems to work lol …

Hi, check the availablility of the “charging_power” sensors. “_2” was just in my environment, could be that your sensor name is just “xxx_charging_power”. The riemann sum worked very well for me but I deleted it in my dev environment and I have to rebuild it to check…

I checked it, you were right :smiley:

  - platform: integration
    source: sensor.wxxxxxxxxxxxxxxx_charging_power
    name: eqbCharge

grafik

works now, however I can´t select it for the energy dashboard, do I have to add it also somewhere?

I have published a new version v0.8.1

Lock:
The lock provides the status is_locking and is_unlocking now. (for the first 30 seconds only after initiating). Custom icon definition was removed.
Frontend Result (see icon changes):
Screencast from 2023-01-24 10-39-51

Sensors
SOC:
custom icon removed

Charging Power:
missing unit kW restored (Fix of statistics is needed via Developer Tools/Statistics)
custom icon removed

Odometer, rangeliquid:
SensorDeviceClass changed from None to Distance

tanklevelpercent, oilLevel:
SensorDeviceClass changed from None to Power_Factor

averageSpeedStart, averageSpeedReset:
SensorDeviceClass changed from None to Speed
custom icon removed

1 Like

Hi, problem is the missing unit for the charging_power sensor. I have fixed this in v0.8.1. Now kW is reported again. Please fix your statistics via developer tools/statistics.

Hi, I seem to have an issue with getting the integration to find my car.
I am in India, and am aware that it is not one of the supported countries. Please let me know if I can provide you with any details.

My install method (maybe I missed something):
i) Added Repo to HACS and installed
ii) installed throught home assistant integrations in the settings tab.
iii) entered email and verification code.

If you are able to add support for India that would be great, the integration seems amazing,
Thanks in advance

Hi Kaii, welcome to the club. Please share the MB mobile app details that you use. Which region did you use in the setup dialog? BR rene

ps: in case you used apac: please try again with Europe. Looks like that for India the ECE version is used. (Same like Thailand)

Mate thank you so much! Checking it out straight away :wink:

I checked again, but the “charging_power” Sensor is not available:
grafik

although I updated to the latest version? Is this alright?

hi, could you please first check the page developer tools/states if this sensor is really the right one? Just search on this page for “charging” and check the status of the sensor that this component has created. Background: Sometimes people have created custom template sensors in the past… and just forgot to adjust :wink:

Hi thanks for the reply! Checked it, now it appears strangely… Well. Value seems to be 8.1. but the _integral is not showing any value:

grafik

The _integral part:
grafik

Is this alright?

Hi, I propose that you delete this integral sensor. Restart ha. And then create a new helper via the Frontend

Select your charging power sensor and keep the default settings.

This should show values after you started the next charging.

BR
René