Mercedes Me Binding

It did work for me until the latest API changes.
Not sure if it helps, it‘s more of trial and error, but sometimes openhab-cli clean-cache does miracles.

That’s the first thing I did after adding the capacity in the config. After that didn’t work, I removed and re-added the things including the bridge and items. That didn’t work either. After that I reported here. Do you have another idea?

I’m afraid I am at the end of my wits.
Unfortunately I cannot check if it wors in my configuration because I cannot authenticate since the recent API changes. Even though I regenerated my credentials, authentication fails.
I guess I need to wait for the next openhab milestone. I’ll try as soon as I got that back up and running.

Using the new credentials model, and the latest JAR file from @weymann 's drop location on GitHub, I see the following log errors. => Any ideas?

2022-11-22 13:19:18.759 [INFO ] [esme.internal.handler.VehicleHandler] - A250:payasyoudrive Error getting data org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-11-22 13:19:18.969 [INFO ] [esme.internal.handler.VehicleHandler] - A250:fuelstatus Error getting data org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-11-22 13:19:19.190 [INFO ] [esme.internal.handler.VehicleHandler] - A250:vehiclestatus Error getting data org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2022-11-22 13:19:19.402 [INFO ] [esme.internal.handler.VehicleHandler] - A250:vehiclelockstatus Error getting data org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

I just updated the jar file as well and it didn’t fix the issue (tried the usual stuff as well including clean-cache, rebooting, …)
As the next milestone release is planned for the 27th I’ll wait for that.

Yes, I tried all the same things as you, with the same lack of result. So I will also wait for M5…

Just for info: on M5 it NOW works for me :slight_smile:

I spent some thime to get this nice binding connecting to the MB API. Finally it turned out, that the last step of https://github.com/weymann/OH3-MercedesMe-Drops#bridge-configuration
does not work in a firefox browser but in Chrome. Maybe this helps someone else.

Binding is working again and I did some tests, so I now know what deck-lid is what you would call the hatch (I’ve got a B250e and when I open the hatch (or rear-lid or whatever you want to call it) then the deck-lid changes to open as well. Same for locking.
Still don’t know what the flap is on a car. On an aircraft it on the wing, increasing the surface hence the lift :wink:

I am using the binding with an EQA. Works great. One thing I can’t figure out, is it possible to have the vehicle’s location? I want to use it in a rule “when arriving at home”

You don‘t get that information via the free API. You have to pay for getting your own data.
There are other ways to build such rules triggered when your phone gets an IP adress through DHCP.

Thanks!

Hi, i have an EQB 300 and started the Mercedes Me Binding with the update to openHAB 3.4.0 final release. My experiences are, it’s very, very slow, and i do not get the “lights” informations, which should be included in the “Vehicle Status”. I tried to catch a trace so that you can see that the informations are missing, any ideas?

Mercedes EQB 300:vehiclestatus Response 200 [{"doorstatusfrontleft":{"value":"false","timestamp":1671642190000}},{"windowstatusrearright":{"value":"2","timestamp":1671563442000}},{"windowstatusfrontright":{"value":"2","timestamp":1671629893000}},{"windowstatusfrontleft":{"value":"2","timestamp":1671631727000}},{"windowstatusrearleft":{"value":"2","timestamp":1671563442000}},{"doorstatusrearleft":{"value":"false","timestamp":1671642249000}},{"doorstatusrearright":{"value":"false","timestamp":1671642189000}},{"doorstatusfrontright":{"value":"false","timestamp":1671642177000}},{"decklidstatus":{"value":"false","timestamp":1671642269000}}]
2022-12-21 20:14:12.107 [TRACE] [esme.internal.handler.VehicleHandler] - Mercedes EQB 300:vehiclelockstatus Response 200 [{"doorlockstatusgas":{"value":"false","timestamp":1671642263000}},{"doorlockstatusvehicle":{"value":"2","timestamp":1671642263000}},{"doorlockstatusdecklid":{"value":"false","timestamp":1671642263000}},{"positionHeading":{"value":"95.0","timestamp":1671642165000}}]

Hi,

I have installed the binding few days ago and I am receiving some data.
I use text configuration, and I cant figure out what should I put as value for the image API key?

Also can anyone share his widget?
Thanks

here is my widget

Bildschirm­foto 2022-12-28 um 09.52.07

uid: widget_Mercedes_v1
tags: []
props:
  parameters:
    - description: Label
      label: Label
      name: propLabel
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Sep 11, 2022, 1:27:04 PM
component: f7-card
config:
  backdrop: true
  class:
    - card-expandable-animate-width
  expandable: true
  style:
    --f7-theme-color: var(--f7-text-color)
    background-color: "=themeOptions.dark === 'light' ? 'white' : '#141414'"
    height: 120px
    margin: 5px
    max-height: 120px
    max-width: 400px
    min-height: 120px
    min-width: 110px
  swipeToClose: true
slots:
  default:
    - component: f7-card-content
      config:
        style:
          width: 100%
      slots:
        default:
          - component: oh-button
            config:
              class:
                - card-opened-fade-in
                - cell-close-button
                - card-close
              iconF7: xmark_circle_fill
              iconSize: 30px
              style:
                padding-bottom: 35px
                padding-top: 10px
                position: absolute
                right: 0
                top: 0
                z-index: 999
          - component: f7-block
            config:
              class:
                - no-padding
              style:
                height: 200px
                margin: -6px
            slots:
              default:
                - component: f7-row
                  config:
                    style:
                      flex-wrap: nowrap
                      height: 20px
                      text-overflow: ellipsis
                      white-space: nowrap
                  slots:
                    default:
                      - component: f7-col
                        slots:
                          default:
                            - component: f7-row
                              config:
                                class:
                                  - justify-content-flex-start
                                style:
                                  flex-wrap: nowrap
                                  width: 100%
                              slots:
                                default:
                                  - component: oh-icon
                                    config:
                                      height: 20px
                                      icon: iconify:simple-icons:mercedes
                                      style:
                                        margin-top: 0px
                                  - component: Label
                                    config:
                                      style:
                                        font-size: 16px
                                        font-weight: 600
                                        margin-left: 2px
                                        margin-top: -2px
                                        overflow: hidden
                                        text-overflow: ellipsis
                                        white-space: nowrap
                                      text: My GLC 300e
                            - component: f7-row
                              config:
                                class:
                                  - justify-content-flex-start
                                style:
                                  flex-wrap: nowrap
                                  width: 100%
                              slots:
                                default:
                                  - component: f7-chip
                                    config:
                                      color: "=Number.parseFloat(items.GLC_BatterySoc.state.split(' ')[0]) <= 10 ? 'red' : Number.parseFloat(items.GLC_BatterySoc.state.split(' ')[0]) <= 20 ? 'orange' : 'green'"
                                      style:
                                        font-size: 11px
                                        font-weight: 600
                                      text: '="Bat: " + items.GLC_BatterySoc.state'
                                  - component: f7-chip
                                    config:
                                      color: "=Number.parseFloat(items.GLC_FuelLevel.state.split(' ')[0]) <= 10 ? 'red' : Number.parseFloat(items.GLC_FuelLevel.state.split(' ')[0]) <= 20 ? 'orange' : 'green'"
                                      style:
                                        font-size: 11px
                                        font-weight: 600
                                        margin-left: 2px
                                      text: '="Fuel: " + items.GLC_FuelLevel.state'
                            - component: f7-row
                              config:
                                class:
                                  - justify-content-flex-start
                                style:
                                  flex-wrap: nowrap
                                  width: 100%
                              slots:
                                default:
                                  - component: f7-chip
                                    config:
                                      color: "=items.GLC_DoorLock.state =='2' ? 'green' : 'red'"
                                      style:
                                        font-size: 11px
                                        font-weight: 600
                                      text: "=items.GLC_DoorLock.state =='2' ? 'locked' : 'unlocked'"
                            - component: f7-row
                              config:
                                class:
                                  - justify-content-flex-start
                                style:
                                  flex-wrap: nowrap
                                  text-overflow: ellipsis
                                  white-space: nowrap
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      color: green
                                      material: ev_station
                                      size: 16px
                                      style:
                                        margin-top: 16px
                                  - component: Label
                                    config:
                                      style:
                                        font-size: 10px
                                        font-weight: 500
                                        margin-left: 1px
                                        margin-top: 18px
                                        overflow: hidden
                                        text-overflow: ellipsis
                                        white-space: nowrap
                                      text: =(Number.parseFloat(items.GLC_Range_Electric.state.split(" ")[0])).toFixed(0) + ' km'
                                  - component: f7-icon
                                    config:
                                      color: blue
                                      material: local_gas_station
                                      size: 15px
                                      style:
                                        margin-left: 2px
                                        margin-top: 16px
                                  - component: Label
                                    config:
                                      style:
                                        font-size: 10px
                                        font-weight: 500
                                        margin-left: 1px
                                        margin-top: 18px
                                        overflow: hidden
                                        text-overflow: ellipsis
                                        white-space: nowrap
                                      text: =(Number.parseFloat(items.GLC_Range_Fuel.state.split(" ")[0])).toFixed(0) + ' km'
          - component: f7-block
            config:
              class:
                - card-prevent-open
                - card-content-padding
              style:
                height: 200px
            slots:
              default:
                - component: oh-image
                  config:
                    style:
                      display: block
                      margin-left: auto
                      margin-right: auto
                      width: 60%
                    url: http://192.168.178.90:8081/static/images/mb-glc300e-mini2.jpg
                - component: oh-list
                  config:
                    class:
                      - padding
                  slots:
                    default:
                      - component: Label
                        config:
                          style:
                            border-bottom: 1px solid grey
                            color: gray
                            font-weight: 600
                            margin-top: 10px
                            padding: 7px
                          text: =props.Title?props.Title:"other States:"
                      - component: f7-list-item
                        slots:
                          footer:
                            - component: f7-row
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      color: gray
                                      style:
                                        margin-top: 8px
                                      text: =items.GLC_DoorLock.displayState
                          header:
                            - component: f7-row
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      f7: lock
                                      size: 32px
                                      style:
                                        padding: 5px
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 10px
                                      text: Lock-Status
                      - component: f7-list-item
                        slots:
                          footer:
                            - component: f7-row
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      color: gray
                                      style:
                                        margin-top: 8px
                                      text: =items.mbc_data_decklidstatus.state
                          header:
                            - component: f7-row
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      f7: lock_shield
                                      size: 32px
                                      style:
                                        padding: 5px
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 10px
                                      text: Latch
                      - component: f7-list-item
                        slots:
                          footer:
                            - component: f7-row
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 8px
                                      text: =items.mbc_data_sunroofstatus.displayState
                          header:
                            - component: f7-row
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      f7: sun_max
                                      size: 32px
                                      style:
                                        padding: 5px
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 10px
                                      text: Sunroof
                      - component: f7-list-item
                        slots:
                          footer:
                            - component: f7-row
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 8px
                                      text: =items.mbc_data_odo.state
                          header:
                            - component: f7-row
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      f7: sum
                                      size: 32px
                                      style:
                                        padding: 5px
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 10px
                                      text: Total-km
                      - component: f7-list-item
                        slots:
                          footer:
                            - component: f7-row
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 8px
                                      text: =items.GLC_LastUpdate.displayState
                          header:
                            - component: f7-row
                              slots:
                                default:
                                  - component: f7-icon
                                    config:
                                      f7: clock
                                      size: 32px
                                      style:
                                        padding: 5px
                                  - component: Label
                                    config:
                                      style:
                                        margin-top: 10px
                                      text: last update

2 Likes

English please, this is an international community!

This is a little pic of my Data’s

Also the Windows are NULL/NIL.
How i get all the Data’s from the car?

I fixed the problem without your help.
Thanx.

Still don’t know what the flap is on a car. On an aircraft it on the wing, increasing the surface hence the lift

It’s the “flap” covering the charger, so if it’s open you’re probably increasing the car’s lift by adding power to it :slight_smile:

Can you please share what you did? I have the same issue, a lot of NULL, and I’m not understanding what is the problem

thanks
Andrea