Understood. At the moment i use the same dynamic icon for all six. If the numbers are fix, i would have to create an extra icon set for the vehicle status.
Hello,
Thanks for making that available so quick!
Unfortunately I still get the old version through the marketplace.
I had upgraded to openhab 4.1.0-SNAPSHOT, then I deinstalled the old binding (Things and Items deleted) and reinstalled. Even clean-cache and reboot does not help, I still get the old UI:
Yes, that’s what I did, too. I was on 4.0 stable and switched to 4.1 snapshot. Also did the openhab-cli clean-cache and rebooted the server.
Update: I replaced the jar with the downloaded jar. Still the same. Tried another browser to be sure it’s not the browser cache. Still the wrong page. Don’t understand what’s happening there
Update 2: switch log level to debug, removed and reinstalled. Now it works. Go figure…
I understand that there might be confusion regarding versions. MercedesMe binding which stopped working end of August is still delivered in the official distribution. Check which version you installed as shown in the below screenshot.
Ensure you don’t installed MercedesMe binding from openHAB Distribution! It is still available in the official distribution and snapshots.
Check if MercedesMe binding is available at Community Marketplace For Snapshot 4.1 I didn’t checked but 3.x and 4.0.x it’s available.
You can check which version is installed via Settings -> Bindings in UI. As you can see in the picture below I dropped the jar into addons folder and the binding is shown in section Other Add-ons
I now get data. And I can actually open sun roof, windows and lock/unlock, which wasn’t possible via the oold binding (API). So that opens a lot of opportunities.
Unfortunately the most interesting (foe me ) data like charging status, battery level and end time are missing. I can see them in the proto_data (B250e plug-in hybrid):
Yes, please send me your complete proto-update as direct message. No personal information or VIN of vehicle is included.
Binding is tested only with my electric vehicle so I’m missing data from
hybrid
combustion
and features like sunroof as you mentioned I’m really surprised that sunroof commands are working without any tests. Great to hear but I still have no mapping values regarding sunroof states
If you can send me the proto.update when it’s opened, lifted or closed will definitelly help to complete the binding!
Addition: Is your Vehicle UID named as mercedesme:hybrid:XXX?
Yes, it’s mercedesme:hybrid:xxx
I can try to figure out the sunroof states.
What is funny: according to the command capabilities, ventilation is not supported for my car but it works anyway. I already realised at many occasions that the mercedes software is far from mature, in particular the assistance systems.
Here we go for the sunroofstatus:
Close: {timestamp_in_ms=1695153963000, timestamp=1695153963, changed=true, int_value=0}
Open: {timestamp_in_ms=1695153664000, timestamp=1695153664, changed=true, int_value=1}
Lift: {timestamp_in_ms=1695153819000, timestamp=1695153819, changed=true, int_value=2}
I reinstalled the addon from the marketplace this evening just before I sent the protodata.
Do I automatically get the latest version or do I need to update openhab, too?
Update: now the soc item was updated but it is lagging behind showing 71% battery charge instead of 74.
I am on 2.2 kW charging power, so thats more than 15 minutes. Other data like sunroof status are updated almost immediately.
With this new version, somehow, the channel values of mileage and SoC are not updated. The proto channel seems to give the correct data, but this data is not transferred. I only get ‘Null’ for these channels/items.
Perhaps the ‘variables’ are different? I checked, and it seems for the position, I am able to get the data correctly. But other channels that I had never used like ‘Trip’, also only report ‘Null’. I dug a bit in my proto channel, and it seems there is no ‘Trip’ variable there, but the ‘distanceElectricalStart’ and ‘distanceStart’ gives the last trip distance. Here are some of the variables mapping that I found. Perhaps they changed over time?
rangeelectric → Electrical range
odo → Mileage
soc → SoC
I am happy to share snippets or the entire proto file, if it helps. Thanks a lot!!
Btw, I managed to use the proto channel output with some jq to extract the needed values directly in EVCC. =) Worked like a charm. Need to check whether the values get updated more frequently while charging or not.
Edit:
I tried yet another method to obtain values from proto channel directly into Openhab. Just map a new item to the proto channel and use regex to filter the necessary values. See some examples below:
State of Charge: .*"soc[^0-9]*(\d*).*
Mileage: .*odo[^0-9]*(\d*).*
Done the same with JSONPATH, which is a bit more straight forward then Regex and less error prone. It also deals with arrays.
The soc example looks as follows:
Since last version there are live updates during charging and driving. Please check if latest version is installed and check soc channel during charging.
Thanks for the binding.
Updated to the latest binding but found that the “position gps” is UNDEF but “position heading angle” is fine.
But the same price of info is available in the last version of binding.
Any idea?
Thanks.
2023-09-26 09:08:00.712 [INFO ] [esme.internal.handler.VehicleHandler] - Request capabilities
2023-09-26 09:08:00.719 [TRACE] [esme.internal.handler.VehicleHandler] - Received Capabilities Features {"features":{"auxHeat":false,"bidirectionalCharging":false,"chargingClockTimer":false,"controllableRearWindowBlind":false,"controllableSunroof":true,"convertible":false,"dcCharging":false,"distronicPro":false,"doubleDoorLock":false,"driverAssistancePackageHigh":false,"driverAssistancePackagePlus":false,"ecoCharging":false,"fastCharging":false,"hepaFilter":false,"mopf":true,"pictureTransfer":false,"pluggedStateDependingPreEntryClimateControl":false,"precondNow":false,"rearSunProtectionBlinds":false,"remoteSettingPersonalizedTemperature":false,"remoteSettingTemperature":false,"urbanGuard":false,"variableOpenableSunroof":false,"variableOpenableWindow":false,"weeklyProfile":false},"vehicle":{"baumuster":"253984","changeYearCodes":null,"controllableSunroofBlindsCount":null,"doorsCount":4,"doorsHandleType":"WITH_CAP","drivingSide":"LEFT","electricVehicleType":null,"electricWindowLifts":["FIRST_ROW_LEFT","FIRST_ROW_RIGHT","SECOND_ROW_LEFT","SECOND_ROW_RIGHT"],"fuelTypes":["GASOLINE"],"headUnitSoftwareVersion":"FRESHUP3","headUnitType":"NTG6","modelYearCode":"802","powertrainBatteryModel":[],"productGroup":"PASSENGER","remoteSeatConfiguration":null,"starArchitecture":"STAR2_3","sunroofType":"PANORAMIC","tcuType":"HERMES3FULL","tirePressureMonitorType":"TIRE_PRESSURE_DROP_INDICATOR"}}
2023-09-26 09:08:00.722 [TRACE] [esme.internal.handler.VehicleHandler] - Received Capabilities Commands{"commands":[{"additionalInformation":null,"capabilityInformation":null,"commandName":"ZEV_PRECONDITION_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"ZEV_PRECONDITION_CONFIGURE_SEATS","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"ZEV_PRECONDITIONING_START","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"ZEV_PRECONDITIONING_STOP","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"AUXHEAT_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"AUXHEAT_START","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"AUXHEAT_STOP","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"BATTERY_CHARGE_PROGRAM_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"BATTERY_MAX_SOC_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"CHARGE_OPT_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"CHARGE_OPT_START","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"CHARGE_OPT_STOP","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"CHARGE_PROGRAM_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"CHILDPRESENCEDETECTION_DEACTIVATEALARM","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"DOORS_LOCK","isAvailable":true,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"DOORS_UNLOCK","isAvailable":true,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"ENGINE_START","isAvailable":true,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"ENGINE_STOP","isAvailable":true,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SUNROOF_OPEN","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SUNROOF_LIFT","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SUNROOF_CLOSE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SPEEDALERT_START","isAvailable":true,"parameters":[{"allowedEnums":null,"maxValue":255,"minValue":1,"parameterName":"THRESHOLD","steps":1},{"allowedEnums":null,"maxValue":2147483647,"minValue":0,"parameterName":"ALERT_END_TIME","steps":1}]},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SPEEDALERT_STOP","isAvailable":true,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"TEMPERATURE_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_DESELECT_INTERIOR","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_DESELECT_TOW","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_SELECT_INTERIOR","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_SELECT_TOW","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_START","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_STOP","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_CONFIRM_DAMAGEDETECTION","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_DESELECT_DAMAGEDETECTION","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"THEFTALARM_SELECT_DAMAGEDETECTION","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"WEEK_PROFILE_CONFIGURE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"WINDOWS_OPEN","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"WINDOWS_CLOSE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"WINDOWS_VENTILATE","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"WIPER_HEALTH_RESET","isAvailable":false,"parameters":null},{"additionalInformation":null,"capabilityInformation":null,"commandName":"SIGPOS_START","isAvailable":true,"parameters":[{"allowedEnums":null,"maxValue":30,"minValue":0,"parameterName":"HORN_REPEAT","steps":1},{"allowedEnums":["HORN_OFF"],"parameterName":"HORN_TYPE"},{"allowedEnums":["DIPPED_HEAD_LIGHT"],"parameterName":"LIGHT_TYPE"},{"allowedEnums":null,"maxValue":10,"minValue":0,"parameterName":"SIGPOS_DURATION","steps":1},{"allowedEnums":["LIGHT_ONLY","PANIC_ALARM"],"parameterName":"SIGPOS_TYPE"}]}]}
2023-09-26 09:08:00.746 [INFO ] [esme.internal.handler.VehicleHandler] - Either Latitude 49.XXXXXX or Longitude -123.XXXXXX attribute nil
2023-09-26 09:08:00.749 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for temperature#hvac to %.1f °C
2023-09-26 09:08:00.751 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for distance-reset#trip to %.1f km
2023-09-26 09:08:00.753 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for pressure-rear-left#tires to %.1f psi
2023-09-26 09:08:00.754 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for radius-fuel#range to %.0f km
2023-09-26 09:08:00.755 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for range-fuel#range to %.0f km
2023-09-26 09:08:00.758 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for pressure-front-right#tires to %.1f psi
2023-09-26 09:08:00.759 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for distance#trip to %.1f km
2023-09-26 09:08:00.762 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for avg-speed-reset#trip to %.0f km/h
2023-09-26 09:08:00.765 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for last-update#tires to %1$tA, %1$td.%1$tm. %1$tH:%1$tM
2023-09-26 09:08:00.768 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for pressure-front-left#tires to %.1f psi
2023-09-26 09:08:00.770 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for avg-speed#trip to %.0f km/h
2023-09-26 09:08:00.771 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for pressure-rear-right#tires to %.1f psi
2023-09-26 09:08:00.773 [TRACE] [esme.internal.handler.VehicleHandler] - Set Pattern for mileage#range to %.0f km
2023-09-26 09:08:00.775 [TRACE] [esme.internal.handler.VehicleHandler] - No fuel capacity given
Above please find the TRACE log FYR.
Wht do you mean by proto-update? How to do that?
Thanks.
Patrick
Hi there,
I just tried the new version (removed old items and things, deinstalled old binding, installed marketplace binding again, created things and don’t get data
Here is the trace log, it seems like there are a few error messsages (Java stack traces):