Beiträge von oelison

    Diese Daten gibt es auf der Web-Site:
    //https://www.bmw-connecteddrive.de/api/vehicle/service/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/vehicle/servicepartner/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/vehicle/navigation/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/vehicle/efficiency/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/vehicle/remoteservices/chargingprofile/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/me/service/mapupdate/download/v1/ {0}=VIN
    //https://www.bmw-connecteddrive.de/api/vehicle/dynamic/v1/ {0}=VIN ?offset=-120

    Ich sehe kein Last trip delta time:
    {
    "communitySwitch" : true,
    "modelType" : "I3",
    "scoreList" : [ {
    "attrName" : "AVERAGE_ELECTRIC_CONSUMPTION",
    "attrUnit" : "KWH_PER_100KM",
    "minValue" : 0.0,
    "averageValue" : 15.9,
    "maxValue" : 31.7,
    "lifeTime" : 17.9
    }, {
    "attrName" : "AVERAGE_RECUPERATED_ENERGY_PER_100_KM",
    "attrUnit" : "KWH_PER_100KM",
    "minValue" : 0.0,
    "averageValue" : 3.6,
    "maxValue" : 13.8,
    "lifeTime" : 4.2
    }, {
    "attrName" : "CUMULATED_ELECTRIC_DRIVEN_DISTANCE",
    "attrUnit" : "KM",
    "minValue" : 2.0,
    "averageValue" : 37146.2,
    "maxValue" : 198449.0,
    "lifeTime" : 37052.0
    }, {
    "attrName" : "LONGEST_DISTANCE_WITHOUT_CHARGING",
    "attrUnit" : "KM",
    "minValue" : 0.0,
    "averageValue" : 132.4,
    "maxValue" : 200.0,
    "lifeTime" : 184.0
    } ],
    "lastTripList" : [ {
    "name" : "LASTTRIP_DELTA_KM",
    "unit" : "KM",
    "lastTrip" : "29.0"
    }, {
    "name" : "ACTUAL_DISTANCE_WITHOUT_CHARGING",
    "unit" : "KM",
    "lastTrip" : "85.0"
    }, {
    "name" : "AVERAGE_ELECTRIC_CONSUMPTION",
    "unit" : "KWH_PER_100KM",
    "lastTrip" : "16.0"
    }, {
    "name" : "AVERAGE_RECUPERATED_ENERGY_PER_100_KM",
    "unit" : "KWH_PER_100KM",
    "lastTrip" : "3.0"
    }, {
    "name" : "CUMULATED_ELECTRIC_DRIVEN_DISTANCE",
    "unit" : "KM",
    "lastTrip" : "37052.0"
    } ],
    "lifeTimeList" : [ ],
    "efficiencyQuotient" : 62,
    "characteristicList" : [ {
    "characteristic" : "TOTAL_CONSUMPTION",
    "quantity" : 4
    }, {
    "characteristic" : "AUXILIARY_CONSUMPTION",
    "quantity" : 5
    }, {
    "characteristic" : "DRIVING_MODE",
    "quantity" : 0
    }, {
    "characteristic" : "ACCELERATION",
    "quantity" : 2
    }, {
    "characteristic" : "ANTICIPATION",
    "quantity" : 3
    } ]
    }

    Hallo!
    Erstmal danke für die Arbeit. Ich wollte das hier für C# mal umbauen, bin aber gleich im Anfang stecken geblieben.
    Dabei ist mit folgender Code aufgefallen (V0.4 Beta 20.04.18):
    #check if VIM is used in long version
    if ($sPass =~ m/WBA[.]{14}/)
    {
    fhem("set BMW_CurrentState Error: VIM too short. use full VIM (17 digits) ") if $DEBUG >=1;
    return "Error: VIM too short. use full VIM (17 digits)";
    }
    Der prüft das Passwort nicht die VIN. Habe ich eine alte Version erwischt?
    ?(