Mercedes Me Component

Not working. I’ve tried different browsers and even a new install of HA with just the MB component and card. I was able to set options first time but then it reverted to no options. See screenshot below, the DEFAULT CARDS and CUSTOM CARDS options are open but showing nothing.

This is the output from Chrome when I try to access the card

vehicle-info-card.js?hacstag=810563350140:1    🏎️ 💨 VEHICLE-INFO-CARD 🚜 v1.4.0 🛺 💨         https://github.com/ngocjohn/vehicle-info-card   
vehicle-info-card.js?hacstag=810563350140:4213 Uncaught TypeError: Cannot read properties of undefined (reading 'btn_preview')
    at vehicle-info-card.js?hacstag=810563350140:4213:5118
    at Array.some (<anonymous>)
    at Ju._cleanConfig (vehicle-info-card.js?hacstag=810563350140:4213:5097)
    at Ju.connectedCallback (vehicle-info-card.js?hacstag=810563350140:4213:4969)
    at t.connectedCallback (scoped-custom-element-registry.js:248:42)
    at I.k (lit-html.ts:1411:53)
    at I.$ (lit-html.ts:1454:36)
    at I._$AI (lit-html.ts:1401:12)
    at N.v (lit-html.ts:1192:16)
    at I.g (lit-html.ts:1540:51)
(anonymous) @ vehicle-info-card.js?hacstag=810563350140:4213
_cleanConfig @ vehicle-info-card.js?hacstag=810563350140:4213
connectedCallback @ vehicle-info-card.js?hacstag=810563350140:4213
t.connectedCallback @ scoped-custom-element-registry.js:248
k @ lit-html.ts:1411
$ @ lit-html.ts:1454
_$AI @ lit-html.ts:1401
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
T @ lit-html.ts:1618
_$AI @ lit-html.ts:1403
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-element-editor.ts:378
await in value
(anonymous) @ superPropGet.js:6
value @ hui-typed-element-editor.ts:28
value @ hui-element-editor.ts:395
value @ hui-element-editor.ts:101
value @ hui-element-editor.ts:95
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1553
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
w @ reactive-element.ts:931
C @ lit-element.ts:115
F @ hui-dialog-edit-card.ts:59
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
(anonymous) @ make-dialog-manager.ts:78
Promise.then
l @ make-dialog-manager.ts:77
(anonymous) @ make-dialog-manager.ts:162
n @ fire_event.ts:76
n @ show-edit-card-dialog.ts:25
(anonymous) @ hui-view.ts:319
n @ fire_event.ts:76
value @ hui-card-options.ts:295
handleEvent @ lit-html.ts:2018
Show 1 more frame
Show lessUnderstand this error
vehicle-info-card.js?hacstag=810563350140:3001 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'entity')
    at is (vehicle-info-card.js?hacstag=810563350140:3001:8440)
    at Ju.firstUpdated (vehicle-info-card.js?hacstag=810563350140:4213:5312)
    at Ju._$AE (vehicle-info-card.js?hacstag=810563350140:11:5068)
    at Ju.performUpdate (vehicle-info-card.js?hacstag=810563350140:11:4952)
    at Ju.scheduleUpdate (vehicle-info-card.js?hacstag=810563350140:11:4423)
    at Ju._$ET (vehicle-info-card.js?hacstag=810563350140:11:4331)
is @ vehicle-info-card.js?hacstag=810563350140:3001
firstUpdated @ vehicle-info-card.js?hacstag=810563350140:4213
_$AE @ vehicle-info-card.js?hacstag=810563350140:11
performUpdate @ vehicle-info-card.js?hacstag=810563350140:11
scheduleUpdate @ vehicle-info-card.js?hacstag=810563350140:11
_$ET @ vehicle-info-card.js?hacstag=810563350140:11
await in _$ET
_$AE @ vehicle-info-card.js?hacstag=810563350140:11
performUpdate @ vehicle-info-card.js?hacstag=810563350140:11
scheduleUpdate @ vehicle-info-card.js?hacstag=810563350140:11
_$ET @ vehicle-info-card.js?hacstag=810563350140:11
await in _$ET
requestUpdate @ vehicle-info-card.js?hacstag=810563350140:11
_$Ev @ vehicle-info-card.js?hacstag=810563350140:11
N @ vehicle-info-card.js?hacstag=810563350140:11
ke @ vehicle-info-card.js?hacstag=810563350140:22
Ju @ vehicle-info-card.js?hacstag=810563350140:4213
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
getConfigElement @ vehicle-info-card.js?hacstag=810563350140:3211
await in getConfigElement
value @ hui-card-element-editor.ts:29
await in value
value @ hui-element-editor.ts:348
(anonymous) @ superPropGet.js:6
value @ hui-typed-element-editor.ts:28
value @ hui-element-editor.ts:395
value @ hui-element-editor.ts:101
value @ hui-element-editor.ts:95
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1553
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
w @ reactive-element.ts:931
C @ lit-element.ts:115
F @ hui-dialog-edit-card.ts:59
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
(anonymous) @ make-dialog-manager.ts:78
Promise.then
l @ make-dialog-manager.ts:77
(anonymous) @ make-dialog-manager.ts:162
n @ fire_event.ts:76
n @ show-edit-card-dialog.ts:25
(anonymous) @ hui-view.ts:319
n @ fire_event.ts:76
value @ hui-card-options.ts:295
handleEvent @ lit-html.ts:2018
Show 1 more frame
Show lessUnderstand this error
vehicle-info-card.js?hacstag=810563350140:4213 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'btn_preview')
    at vehicle-info-card.js?hacstag=810563350140:4213:5118
    at Array.some (<anonymous>)
    at Ju._cleanConfig (vehicle-info-card.js?hacstag=810563350140:4213:5097)
    at Ju.updated (vehicle-info-card.js?hacstag=810563350140:4213:5502)
    at Ju._$AE (vehicle-info-card.js?hacstag=810563350140:11:5090)
    at Ju.performUpdate (vehicle-info-card.js?hacstag=810563350140:11:4952)
    at Ju.scheduleUpdate (vehicle-info-card.js?hacstag=810563350140:11:4423)
    at Ju._$ET (vehicle-info-card.js?hacstag=810563350140:11:4331)
(anonymous) @ vehicle-info-card.js?hacstag=810563350140:4213
_cleanConfig @ vehicle-info-card.js?hacstag=810563350140:4213
updated @ vehicle-info-card.js?hacstag=810563350140:4213
_$AE @ vehicle-info-card.js?hacstag=810563350140:11
performUpdate @ vehicle-info-card.js?hacstag=810563350140:11
scheduleUpdate @ vehicle-info-card.js?hacstag=810563350140:11
_$ET @ vehicle-info-card.js?hacstag=810563350140:11
await in _$ET
requestUpdate @ vehicle-info-card.js?hacstag=810563350140:11
set @ vehicle-info-card.js?hacstag=810563350140:11
setConfig @ vehicle-info-card.js?hacstag=810563350140:4213
value @ hui-element-editor.ts:400
await in value
value @ hui-element-editor.ts:101
value @ hui-element-editor.ts:95
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1553
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
w @ reactive-element.ts:931
C @ lit-element.ts:115
F @ hui-dialog-edit-card.ts:59
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
(anonymous) @ make-dialog-manager.ts:78
Promise.then
l @ make-dialog-manager.ts:77
(anonymous) @ make-dialog-manager.ts:162
n @ fire_event.ts:76
n @ show-edit-card-dialog.ts:25
(anonymous) @ hui-view.ts:319
n @ fire_event.ts:76
value @ hui-card-options.ts:295
handleEvent @ lit-html.ts:2018Understand this error
log-message.ts:36 
        
        
       GET http://homeassistant.local:8123/unknown/src/scoped-custom-element-registry.js 404 (Not Found)
(anonymous) @ stacktrace-gps.js:37
r @ stacktrace-gps.js:23
(anonymous) @ stacktrace-gps.js:218
_get @ stacktrace-gps.js:195
(anonymous) @ stacktrace-gps.js:289
findFunctionName @ stacktrace-gps.js:287
(anonymous) @ stacktrace-gps.js:272
Promise.then
(anonymous) @ stacktrace-gps.js:267
pinpoint @ stacktrace-gps.js:266
(anonymous) @ stacktrace.js:113
(anonymous) @ stacktrace.js:108
(anonymous) @ stacktrace.js:107
fromError @ stacktrace.js:105
t @ log-message.ts:36
(anonymous) @ logging-mixin.ts:45
await in (anonymous)
k @ lit-html.ts:1411
$ @ lit-html.ts:1454
_$AI @ lit-html.ts:1401
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
T @ lit-html.ts:1618
_$AI @ lit-html.ts:1403
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
error
hassConnected @ logging-mixin.ts:27
hassConnected @ haptic-mixin.ts:55
hassConnected @ connection-mixin.ts:218
hassConnected @ state-display-mixin.ts:9
hassConnected @ translations-mixin.ts:120
hassConnected @ themes-mixin.ts:58
hassConnected @ auth-mixin.ts:24
(anonymous) @ superPropGet.js:6
value @ home-assistant.ts:166
initializeHass @ connection-mixin.ts:214
value @ home-assistant.ts:246
await in value
value @ home-assistant.ts:100
_$AE @ reactive-element.ts:1376
performUpdate @ reactive-element.ts:1343
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
w @ reactive-element.ts:931
C @ lit-element.ts:115
F @ hass-base-mixin.ts:6
(anonymous) @ context-mixin.ts:23
(anonymous) @ logging-mixin.ts:24
(anonymous) @ panel-title-mixin.ts:12
(anonymous) @ haptic-mixin.ts:38
(anonymous) @ url-sync-mixin.ts:29
(anonymous) @ dialog-manager-mixin.ts:28
(anonymous) @ notification-mixin.ts:5
(anonymous) @ connection-mixin.ts:42
(anonymous) @ disconnect-toast-mixin.ts:18
(anonymous) @ sidebar-mixin.ts:28
(anonymous) @ action-mixin.ts:18
(anonymous) @ more-info-mixin.ts:16
(anonymous) @ state-display-mixin.ts:7
(anonymous) @ translations-mixin.ts:71
(anonymous) @ themes-mixin.ts:24
(anonymous) @ auth-mixin.ts:14
Oe @ hass-element.ts:23
(anonymous) @ quick-bar-mixin.ts:24
r @ home-assistant.ts:48
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
window.CustomElementRegistry.define @ scoped-custom-element-registry.js:85
finisher @ custom-element.ts:41
runClassFinishers @ decorate.js:172
a @ decorate.js:10
(anonymous) @ home-assistant.ts:34
Show 16 more frames
Show lessUnderstand this error
log-message.ts:36 
        
        
       GET http://homeassistant.local:8123/unknown/src/lit-html.ts 404 (Not Found)
(anonymous) @ stacktrace-gps.js:37
r @ stacktrace-gps.js:23
(anonymous) @ stacktrace-gps.js:218
_get @ stacktrace-gps.js:195
(anonymous) @ stacktrace-gps.js:289
findFunctionName @ stacktrace-gps.js:287
(anonymous) @ stacktrace-gps.js:272
Promise.then
(anonymous) @ stacktrace-gps.js:267
pinpoint @ stacktrace-gps.js:266
(anonymous) @ stacktrace.js:113
(anonymous) @ stacktrace.js:108
(anonymous) @ stacktrace.js:107
fromError @ stacktrace.js:105
t @ log-message.ts:36
(anonymous) @ logging-mixin.ts:45
await in (anonymous)
k @ lit-html.ts:1411
$ @ lit-html.ts:1454
_$AI @ lit-html.ts:1401
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
T @ lit-html.ts:1618
_$AI @ lit-html.ts:1403
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
error
hassConnected @ logging-mixin.ts:27
hassConnected @ haptic-mixin.ts:55
hassConnected @ connection-mixin.ts:218
hassConnected @ state-display-mixin.ts:9
hassConnected @ translations-mixin.ts:120
hassConnected @ themes-mixin.ts:58
hassConnected @ auth-mixin.ts:24
(anonymous) @ superPropGet.js:6
value @ home-assistant.ts:166
initializeHass @ connection-mixin.ts:214
value @ home-assistant.ts:246
await in value
value @ home-assistant.ts:100
_$AE @ reactive-element.ts:1376
performUpdate @ reactive-element.ts:1343
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej
requestUpdate @ reactive-element.ts:1208
_$Eu @ reactive-element.ts:946
w @ reactive-element.ts:931
C @ lit-element.ts:115
F @ hass-base-mixin.ts:6
(anonymous) @ context-mixin.ts:23
(anonymous) @ logging-mixin.ts:24
(anonymous) @ panel-title-mixin.ts:12
(anonymous) @ haptic-mixin.ts:38
(anonymous) @ url-sync-mixin.ts:29
(anonymous) @ dialog-manager-mixin.ts:28
(anonymous) @ notification-mixin.ts:5
(anonymous) @ connection-mixin.ts:42
(anonymous) @ disconnect-toast-mixin.ts:18
(anonymous) @ sidebar-mixin.ts:28
(anonymous) @ action-mixin.ts:18
(anonymous) @ more-info-mixin.ts:16
(anonymous) @ state-display-mixin.ts:7
(anonymous) @ translations-mixin.ts:71
(anonymous) @ themes-mixin.ts:24
(anonymous) @ auth-mixin.ts:14
Oe @ hass-element.ts:23
(anonymous) @ quick-bar-mixin.ts:24
r @ home-assistant.ts:48
k @ scoped-custom-element-registry.js:385
t @ scoped-custom-element-registry.js:236
window.CustomElementRegistry.define @ scoped-custom-element-registry.js:85
finisher @ custom-element.ts:41
runClassFinishers @ decorate.js:172
a @ decorate.js:10
(anonymous) @ home-assistant.ts:34
Show 16 more frames
Show lessUnderstand this error

Hi @VietNgoc ,

What is the pulsing thing at the lower left of the map?

ScreenRecording_10-07-202421-54-12_1-ezgif.com-optimize

Loading address from location… :sweat_smile::sweat_smile:

So it should stop pulsing eventually when it has finished loading the address? Or is it more like a heartbeat signed?
Mine pulses all the time…

That’s odd, it should show the address immediately if it’s generated. I’ll look into it to see if there’s a bug.

Also, my device_tracker does not resolve an address, just what zones it detects. Don’t know if that’s how it’s supposed to work, or has something to do with it.

For at least EQE/EQS the in car display provides in the EQ menu a “Maximum DC” value in kW. This indicates the maximum DC load that would be possible with the current battery temperature.

Is this value available within the Mercedes API and also somewhere with this wonderful integration?

Hi @LagaV , currently this value is not available in the integration but I can check it. Could you send me a diagnostic report of your integration to [email protected]? Thx

1 Like

Hi Thomas, the device_tracker does not resolve the address based on location. This is done in @VietNgoc card.

Yes, the card takes lat and lon from entity attributes, then fetch addresses from open street map or google if the api key is filled. I have tested with myself and everything seems to work. Probably you were at some location where the address was not accurate, usually when you are on the highway… Or at that time, there was some service failure in open street map.

I do get the persistant pulsing everywhere I am, including my home and work address.

Could you share your card config. I tried a standard config with your car :slight_smile:
image

Yeah, starting from scratch does resolve the address.
Now on to figure out what breaks it in my card configuration…

sigh

Is anyone else having trouble with this integration in the last 12 hours? Here are the error messages I see:

This error originated from a custom integration.

Logger: custom_components.mbapi2020.websocket
Source: custom_components/mbapi2020/websocket.py:229
integration: MercedesME 2020 (documentation, issues)
First occurred: 3:14:46 AM (2 occurrences)
Last logged: 1:09:19 PM

Other error 418, message='Invalid response status', url='wss://websocket.amap-prod.mobilesdk.mercedes-benz.com/ws'

This error originated from a custom integration.

Logger: custom_components.mbapi2020.client
Source: custom_components/mbapi2020/client.py:242
integration: MercedesME 2020 (documentation, issues)
First occurred: 3:14:46 AM (2 occurrences)
Last logged: 1:09:19 PM

Error with the websocket connection (retry counter: 0):

Hi @Alvin_Lin , Do you use the latest version? What is your Region US/CA or APAC?

Normally, this means that the RIS_SDK_VERSION in the const.py is too low. In case you have a given tech-level you can try to adjust this to RIS_SDK_VERSION = "2.128.0". But le me check this with one of my us-accounts…

I’m in the middle of publishing a new version and this change will be part of it. But I need until tomorrow evening.

Update: We found the solution and it will be part of the next release. (Thanks to @Alvin_Lin for the tests)

in case you can’t wait:
Edit the const.py in %HA-Config%/custom_components/mbapi2020
search for:
WEBSOCKET_API_BASE_NA = "wss://websocket.amap-prod.mobilesdk.mercedes-benz.com/ws"
replace it with:
WEBSOCKET_API_BASE_NA = "wss://websocket.amap-prod.mobilesdk.mercedes-benz.com/v2/ws"

Save the file and restart HA

BR
Rene

I am using v0.18.1, which I believe is the latest release. I am in the US/CA region. I am not in a hurry and I can check the new version once it comes out. Thank you!

Hi, It is not that easy - looks like the US/CA team made more changes. Do you (or any other person in the US/CA) want to give me access to your car? If yes, send me a short email to [email protected] and I will share the instructions. Thx Rene

Sure, I will email you.

1 Like

The good news: Welcome to the next release, this is quite a big one - with a lot of new stuff.

The bad news: There are some hard signs that the MB-team is implementing a new authentication procedure and this could/would kill the integration.

Special thanks to @philippwaller. He added some new stuff and improved the overall quality!

New

  • Binary sensor “preclimateStatus” - This binary sensor combines the different precond status attributes into one and shows if a Pre-Entry Climate Action is running or not. (Thanks @philippwaller)

    attributes:
    precondState, precondActive, precondError, precondNow, precondNowError, precondDuration, 
    precondatdeparture, precondAtDepartureDisable, precondSeatFrontLeft, precondSeatFrontRight, 
    precondSeatRearLeft, precondSeatRearRight, temperature_points_frontLeft, 
    temperature_points_frontRight, temperature_points_rearLeft, temperature_points_rearRight,
    
  • Sensor “wiperHealthPercent” - This sensor shows the status of your wipers. (For a limited set of cars - My dev cars GLA, GLC, EQB, EQV, EQS don’t have it, … but some cars are showing the data) (Thanks @philippwaller)

    attributes:
    wiperLifetimeExceeded [EXPERIMENTAL, user feedback wanted]
    
  • Sensor “auxheatstatus” and “preclimateStatus” have new attributes: temperature_points_*

  • Switch “Pre- entry climate” - To switch on/off the pre-entry climate function. (Thanks @philippwaller)

  • [experimental] Service/Action “preconditioning_configure_seats” - Configure which seats should be preconditioned of a car defined by a vin. (Please share your feedback in the HA Forum).

  • [experimental] Service/Action “temperature_configure” - Configure the target preconditioning/auxheat temperatures for zones in a car defined by a VIN. (Please share your feedback in the HA Forum).

  • Binary Sensor “theftsystemarmed”

    attributes:
    carAlarmLastTime, carAlarmReason, collisionAlarmTimestamp, interiorSensor, 
    interiorProtectionStatus, interiorMonitoringLastEvent, interiorMonitoringStatus, 
    exteriorMonitoringLastEvent, exteriorMonitoringStatus, lastParkEvent, lastTheftWarning, 
    lastTheftWarningReason, parkEventLevel, parkEventType, theftAlarmActive, 
    towProtectionSensorStatus, towSensor,
    

Breaking Changes

  • Attributes “value_short”, “value_description” removed from the sensors ignitionstate, starterBatteryState, auxheatstatus - these are handled via frontend translation now

Fixes

  • Update MB Backend websocket-url in the US/CA, APAC region, fixes Other error 418, message='Invalid response status', url='wss://websocket.amap-prod.mobilesdk.mercedes-benz.com/ws'
  • Improve handling of accounts with no cars
  • PositionLat was removed from the diagnostic report to improve data privacy (Thanks @philippwaller)
1 Like