Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up zu #15772: smart #1 Auto-Detection, SoC, km-Stand u.a. funktionieren bei mir nicht #15937

Closed
1 task
cyberways opened this issue Sep 7, 2024 · 10 comments · Fixed by #15938
Closed
1 task
Labels
bug Something isn't working devices Specific device support

Comments

@cyberways
Copy link

Describe the bug

Vielen Dank für den Fix der smart-hello Gen-1 API.
Habe ich direkt nach Erschienen der 0.130.7 noch von unterwegs remote auf der heimischen Anlage installiert und hatte erstmals ever in "evcc vehicle --log trace smart" auf der Shell keine Fehler mehr und gültige Werte - auch in der GUI Konfiguration beim Fahrzeug danach alles grün - bei abgestecktem Fahrzeug weil unterwegs.
Einen Tag später ist mir bereits aufgefallen, dass die Fahrzeugdaten des smart in der GUI Konfig. wieder rot und alle Werte 0 sind. Beim ersten Laden zurück zuhause dann wieder die gleichen Fehler wie vor dem Fix. Wie ich heute bei genauer Analyse feststelle auch wieder im "evcc vehicle --log trace smart" auf der Shell.

Steps to reproduce

Zugangsdaten hat andig ja schon.

Eine Auto-Erkennung des smart scheint evcc gar nicht zu versuchen.
Im Logfile steht beim Start

[site ] WARN 2024/09/07 10:32:27 vehicle 'smart' does not support automatic detection
[site ] INFO 2024/09/07 10:32:27 vehicle 2: range ✓ finish ✗ status ✗ climate ✓ wakeup ✗

Status x ist wohl das vermeintliche Problem. Die json API liefert den Ladezustand aber in "chargerState", das von 0 auf 2 wechselt wenn das Auto lädt. Könnte man das bitte "nachrüsten"?

Ich hänge unten einmal das komplette Log Trace an bei abgestecktem Auto an und nochmal das json während des Ladens.
Vielen Dank!

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: ***

interval: 30s # control cycle interval

sponsortoken: ***

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false

meters:
- type: template
  template: victron-energy 
  usage: grid  
  host: 192.168.24.11  
  port: 502  
  name: grid
  meterid: 276
- type: template
  template: victron-energy 
  usage: pv  
  host: 192.168.24.11  
  port: 502  
  name: pv
- type: template
  template: victron-energy 
  usage: battery  
  host: 192.168.24.11  
  port: 502  
  name: battery
  minsoc: 25
  capacity: 10

chargers:
- type: template
  template: webasto-next 
  host: 192.168.25.12  
  port: 502  
  name: wallbox

vehicles:
- type: template
  template: bmw 
  title: BMW i3s  
  user: ***  
  password: ***  
  vin: WBY***  
  capacity: 40  
  icon: car  
  cache: 6m  
  #targetSoc: 95  
  maxCurrent: 9  
  name: bmwi3s

- name: smart
  type: template
  template: smart-hello
  title: smart
  icon: car
  capacity: 62
  #maxCurrent: 10
  user: ***
  password: ***
  vin: HESX***

loadpoints:
- title: Webasto NEXT
  charger: wallbox
  mode: minpv

site:
  title: victron energy Multiplus 3~
  meters:
    grid: grid
    pv:
    - pv
    battery:
    - battery
  residualPower: 10

tariffs:
  currency: EUR
  grid:
    type: fixed
    price: 0.28
  feedin:
    type: fixed
    price: 0.082

eebus:
  certificate:
[...] Zertifikate weggelassen

Log details

evcc vehicle --log trace smart     ohne Auto, json mit Auto siehe unten

[main  ] INFO 2024/09/07 10:23:30 evcc 0.130.7
[main  ] INFO 2024/09/07 10:23:30 using config file: /etc/evcc.yaml
[db    ] INFO 2024/09/07 10:23:30 using sqlite database: /root/.evcc/evcc.db
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="settings" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "settings" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT * FROM `settings` LIMIT 1 -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT * FROM `settings` 35 <nil>
[eebus ] INFO 2024/09/07 10:23:31 Local SKI:  ***
[eebus ] DEBUG 2024/09/07 10:23:31 starting websocket server on :4712
[eebus ] DEBUG 2024/09/07 10:23:31 mdns: announce
[eebus ] DEBUG 2024/09/07 10:23:31 mdns: using zeroconf
[eebus ] DEBUG 2024/09/07 10:23:31 mdns: start search
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="devices" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="device_details" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="configs" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "configs" AND sql IS NOT NULL order by type = "table" desc 1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT * FROM `configs` LIMIT 1 -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_details" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_details" -1 <nil>
[db    ] TRACE 2024/09/07 10:23:31 SELECT * FROM `configs` WHERE `configs`.`class` = 3 0 <nil>
[smart-hello] TRACE 2024/09/07 10:23:31 GET https://awsapi.future.smart.com/login-app/api/v1/authorize?uiLocales=de-DE&uiLocales=de-DE
[eebus ] DEBUG 2024/09/07 10:23:31 mdns: ignore own service 4a469c8995504cbb627aa46807d00f86c7562cfe
[smart-hello] TRACE 2024/09/07 10:23:31 Found. Redirecting to https://auth.smart.com/oidc/op/v1.0/3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a/authorize?response_type=code&client_id=SeQMUFqDOSuEF0Iqi5bB2Dco&redirect_uri=https://awsapi.future.smart.com/login-app/api/v1/FinalPage&scope=openid%20EmailScope%20profile%20address%20phone%20CustScope%20MarketInformation&code_challenge_method=plain&code_challenge=welcometonewsmartloginimplementationoftherplo&nonce=1725697411711&ui_locales=de-DE
[smart-hello] TRACE 2024/09/07 10:23:31 GET https://auth.smart.com/oidc/op/v1.0/3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a/authorize?response_type=code&client_id=SeQMUFqDOSuEF0Iqi5bB2Dco&redirect_uri=https://awsapi.future.smart.com/login-app/api/v1/FinalPage&scope=openid%20EmailScope%20profile%20address%20phone%20CustScope%20MarketInformation&code_challenge_method=plain&code_challenge=welcometonewsmartloginimplementationoftherplo&nonce=1725697411711&ui_locales=de-DE
[smart-hello] TRACE 2024/09/07 10:23:31 GET https://app.id.smart.com/proxy?context=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJqRkJNakV6T1RGQ09EVkJSVE14UVRCQ05qYzBSa1E0T0VZM05EUTRSakJDT0RkRFJVTkZOdyJ9.eyJpc3MiOiJodHRwczovL2F1dGguc21hcnQuY29tL29pZGMvb3AvdjEuMC8zX0w5NGV5US13dkpoV203QWZwMW9CaGZUR1haQXJVZlNISFc5cDlQbmNnNTEzaFpFTFhzeENmTVdIckY4ZjVQNWEvIiwiY3R4X2RjIjoiZXUxIiwiaWF0IjoxNzI1Njk3NDExLCJleHAiOjE3MjU2OTgwMTEsImNsaWVudF9pZCI6IlNlUU1VRnFET1N1RUYwSXFpNWJCMkRjbyIsImN0eF9pZCI6IjMzMjQ2NWM0MmZhZjQ3MDA4NTZmM2YwYmUyNzIzYjY3IiwicmVkaXJlY3RfdXJsIjoiaHR0cHM6Ly9hd3NhcGkuZnV0dXJlLnNtYXJ0LmNvbS9sb2dpbi1hcHAvYXBpL3YxL0ZpbmFsUGFnZSJ9.kCTHhWk45bShl1HwIVoVszpw3zoDW5sblKEMKzRJnOdsRzI3vlST2cvUemhfevKLK8QGep4iVbodakA6fWP1j9tMFqgFUtvP4X3q8_fNgK7RpTfQhOcXx7tdtOq9kbKkU1_Zi7Qj-p69g5hB62gdgEQI6FtZdqzBXcVpqufTT--TxHA_sdZjzf9SFTZ8DtqLx0lr81evGywvEAlCzLu225wby86EyO6UZX4nvm0_1XvK3OcY2JCPLUwvWSBosBaeoSobSS-lPGz9GZ_Mph_VDPTo4ez3DUUN7tsux68e_Vz62f5cxbXsupTx42TjUdX1DBsLhPVW4ItiA4g4aoLpYg&client_id=SeQMUFqDOSuEF0Iqi5bB2Dco&mode=login&scope=openid+EmailScope+profile+MarketInformation&gig_ui_locales=de-DE&gig_skipConsent=true
[smart-hello] TRACE 2024/09/07 10:23:31 <!doctype html><html lang="en"><head><meta name="robots" content="noindex,nofollow"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>smart ID</title><link rel="icon" type="image/png" href="/__app__/id/prod/assets/favicon.svg" sizes="any"/><script src="https://cdns.gigya.com/JS/gigya.js?apiKey=3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a"></script><script src="https://cdns.gigya.com/JS/gigya.oidc.js?apiKey=3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a">{
        loginURL: "/login",
        consentURL: "/",
        errorURL: "/"
      }</script></head><body></body></html>
[smart-hello] TRACE 2024/09/07 10:23:31 POST https://auth.smart.com/accounts.login
[smart-hello] TRACE 2024/09/07 10:23:32 APIKey=3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a&authMode=cookie&format=json&include=profile%2Cdata%2Cemails%2Csubscriptions%2Cpreferences&includeUserInfo=true&lang=de&loginID=***&loginMode=standard&pageURL=https%3A%2F%2Fapp.id.smart.com%2Flogin%3Fgig_ui_locales%3Dde-DE&password=***&sdk=js_latest&sdkBuild=15482&sessionExpiration=2592000&source=showScreenSet&targetEnv=jssdk
--
{
  "callId": "83a0a45d1e3d4f5dbffcc20bc0777ee2",
  "errorCode": 0,
  "apiVersion": 2,
  "statusCode": 200,
  "statusReason": "OK",
  "time": "2024-09-07T08:23:32.170Z",
  "registeredTimestamp": 1719321428,
  "UID": "9df50a77635e4c1aabc793912a782785",
  "UIDSignature": "quzfr5wBrtAE6xA7zw6ea6v9QyU=",
  "signatureTimestamp": "1725697412",
  "created": "2024-06-25T13:17:07.904Z",
  "createdTimestamp": 1719321427,
  "data": {
    "browserLanguage": "de",
    "market_Information": "CH",
    "sanctionFlag": false,
    "salutation": "N/A"
  },
  "subscriptions": {},
  "preferences": {
    "terms.smart_termsOfService_EU": {
      "isConsentGranted": true,
      "docVersion": 1.0,
      "lang": "de",
      "lastConsentModified": "2024-06-25T13:17:07.980Z",
      "actionTimestamp": "2024-06-25T13:17:07.980Z",
      "tags": [
        "DefaultLocale(en)"
      ],
      "customData": [
        {
          "key": "Name",
          "value": "smart_termsOfService_EU"
        }
      ],
      "entitlements": [],
      "locales": {
        "de": {
          "docVersion": 1.0,
          "defaultLang": "en"
        }
      }
    },
    "smart_ecosystem_EU": {
      "isConsentGranted": true,
      "docVersion": 1.0,
      "lang": "de",
      "lastConsentModified": "2024-06-25T13:17:07.980Z",
      "actionTimestamp": "2024-06-25T13:17:07.980Z",
      "tags": [
        "DefaultLocale(en)"
      ],
      "customData": [
        {
          "key": "Name",
          "value": "smart_ecosystem_EU"
        }
      ],
      "entitlements": [],
      "locales": {
        "de": {
          "docVersion": 1.0,
          "defaultLang": "en"
        }
      }
    },
    "smart_consentConnectivity_EU": {
      "isConsentGranted": true,
      "docVersion": 1.0,
      "lang": "de",
      "lastConsentModified": "2024-06-25T13:21:08.090Z",
      "actionTimestamp": "2024-06-25T13:21:08.090Z",
      "tags": [
        "DefaultLocale(en)"
      ],
      "customData": [
        {
          "key": "Name",
          "value": "smart_consentConnectivity_EU"
        }
      ],
      "entitlements": [],
      "locales": {
        "de": {
          "docVersion": 1.0,
          "defaultLang": "en"
        }
      }
    },
    "privacy.smart_privacyPolicy_EU": {
      "isConsentGranted": true,
      "docVersion": 1.0,
      "lang": "de",
      "lastConsentModified": "2024-06-25T13:17:07.980Z",
      "actionTimestamp": "2024-06-25T13:17:07.980Z",
      "tags": [
        "DefaultLocale(en)"
      ],
      "customData": [
        {
          "key": "Name",
          "value": "smart_privacyPolicy_EU"
        }
      ],
      "entitlements": [],
      "locales": {
        "de": {
          "docVersion": 1.0,
          "defaultLang": "en"
        }
      }
    }
  },
  "emails": {
    "verified": [
      "***"
    ],
    "unverified": []
  },
  "isActive": true,
  "isRegistered": true,
  "isVerified": true,
  "lastLogin": "2024-09-07T08:23:32.135Z",
  "lastLoginTimestamp": 1725697412,
  "lastUpdated": "2024-06-25T13:24:31.165Z",
  "lastUpdatedTimestamp": 1719321871165,
  "loginProvider": "site",
  "oldestDataUpdated": "2024-06-25T13:17:07.904Z",
  "oldestDataUpdatedTimestamp": 1719321427904,
  "profile": {
    "firstName": "PV",
    "lastName": "Anlage",
    "email": "***"
  },
  "registered": "2024-06-25T13:17:08.656Z",
  "socialProviders": "site",
  "verified": "2024-06-25T13:17:21.817Z",
  "verifiedTimestamp": 1719321441817,
  "userInfo": {
    "UID": "9df50a77635e4c1aabc793912a782785",
    "UIDSig": "NtHn/dbb0Re+zDi3DSDoVQPcggM=",
    "UIDSignature": "quzfr5wBrtAE6xA7zw6ea6v9QyU=",
    "signatureTimestamp": "1725697412",
    "isSiteUser": true,
    "isConnected": true,
    "isTempUser": false,
    "isLoggedIn": true,
    "loginProvider": "site",
    "loginProviderUID": "9df50a77635e4c1aabc793912a782785",
    "isSiteUID": true,
    "identities": [
      {
        "provider": "site",
        "providerUID": "9df50a77635e4c1aabc793912a782785",
        "allowsLogin": true,
        "isLoginIdentity": true,
        "isExpiredSession": false,
        "lastUpdated": "2024-09-07T08:23:32.1353351Z",
        "lastUpdatedTimestamp": 1725697412135,
        "oldestDataUpdated": "2024-06-25T13:17:07.904Z",
        "oldestDataUpdatedTimestamp": 1719321427904,
        "firstName": "PV",
        "lastName": "Anlage",
        "nickname": "PV Anlage",
        "email": "***"
      }
    ],
    "nickname": "PV Anlage",
    "firstName": "PV",
    "lastName": "Anlage",
    "email": "***",
    "capabilities": "None",
    "providers": "site",
    "oldestDataUpdatedTimestamp": 1719321427,
    "oldestDataAge": 6375985,
    "statusReason": "OK",
    "statusCode": 200,
    "timestamp": "2024-09-07 08:23:32",
    "time": "2024-09-07T08:23:32.161Z",
    "errorCode": 0
  },
  "newUser": false,
  "sessionInfo": {
    "login_token": "st2.s.AtLtuFomXg.G0FoYQWpNyr2rjjfwu6oUieqhBoTaxEvEz8Oeo3PiyNzBePnvkRwD98J0QkYr2Nj2f037uDb3icDUt8a58UC4Z8ZE_BZT3g8yjZoQ0w8J1vGSoF6_KGudp7PfcJza4lq.LpmGGZUgwTAhsFcSrwLy4ipwvmM6fCCBCd8dQ_RkS-rIvV20Nu4M4WfIWCEldhmz32cb9qd8shy_CHleW7t2yg.sc3",
    "expires_in": "2592000"
  }
}
[smart-hello] TRACE 2024/09/07 10:23:32 GET https://auth.smart.com/oidc/op/v1.0/3_L94eyQ-wvJhWm7Afp1oBhfTGXZArUfSHHW9p9Pncg513hZELXsxCfMWHrF8f5P5a/authorize/continue?context=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJqRkJNakV6T1RGQ09EVkJSVE14UVRCQ05qYzBSa1E0T0VZM05EUTRSakJDT0RkRFJVTkZOdyJ9.eyJpc3MiOiJodHRwczovL2F1dGguc21hcnQuY29tL29pZGMvb3AvdjEuMC8zX0w5NGV5US13dkpoV203QWZwMW9CaGZUR1haQXJVZlNISFc5cDlQbmNnNTEzaFpFTFhzeENmTVdIckY4ZjVQNWEvIiwiY3R4X2RjIjoiZXUxIiwiaWF0IjoxNzI1Njk3NDExLCJleHAiOjE3MjU2OTgwMTEsImNsaWVudF9pZCI6IlNlUU1VRnFET1N1RUYwSXFpNWJCMkRjbyIsImN0eF9pZCI6IjMzMjQ2NWM0MmZhZjQ3MDA4NTZmM2YwYmUyNzIzYjY3IiwicmVkaXJlY3RfdXJsIjoiaHR0cHM6Ly9hd3NhcGkuZnV0dXJlLnNtYXJ0LmNvbS9sb2dpbi1hcHAvYXBpL3YxL0ZpbmFsUGFnZSJ9.kCTHhWk45bShl1HwIVoVszpw3zoDW5sblKEMKzRJnOdsRzI3vlST2cvUemhfevKLK8QGep4iVbodakA6fWP1j9tMFqgFUtvP4X3q8_fNgK7RpTfQhOcXx7tdtOq9kbKkU1_Zi7Qj-p69g5hB62gdgEQI6FtZdqzBXcVpqufTT--TxHA_sdZjzf9SFTZ8DtqLx0lr81evGywvEAlCzLu225wby86EyO6UZX4nvm0_1XvK3OcY2JCPLUwvWSBosBaeoSobSS-lPGz9GZ_Mph_VDPTo4ez3DUUN7tsux68e_Vz62f5cxbXsupTx42TjUdX1DBsLhPVW4ItiA4g4aoLpYg&login_token=st2.s.AtLtuFomXg.G0FoYQWpNyr2rjjfwu6oUieqhBoTaxEvEz8Oeo3PiyNzBePnvkRwD98J0QkYr2Nj2f037uDb3icDUt8a58UC4Z8ZE_BZT3g8yjZoQ0w8J1vGSoF6_KGudp7PfcJza4lq.LpmGGZUgwTAhsFcSrwLy4ipwvmM6fCCBCd8dQ_RkS-rIvV20Nu4M4WfIWCEldhmz32cb9qd8shy_CHleW7t2yg.sc3
[smart-hello] TRACE 2024/09/07 10:23:32 GET https://awsapi.future.smart.com/login-app/api/v1/FinalPage?code=st2.s.AtLtgSBjsA.dBzsmpooPCPF3a4oyI8I2mP95UcULd88GbN97vX0kAlbOMIPKpEpcKZaDAU9fPyJ5bAOJWn0O77czdlV0UTaWbR7q1F0LNepcjXoMbvYSOmQ3l_8dPmy-GeEFAw04voO.Ligf9aUxGB4V2ryErxByykCqhrYxukPrZgRXWCEcII4L1S1kGnHnlFkoYMMB_J5MtocE--alwRmr76zcKX063g.sc3
[smart-hello] TRACE 2024/09/07 10:23:32 Found. Redirecting to /login-app/api/v1/MobileData?access_token=st2.s.AtLt3rmW7A.KRr8UxsTMwxJFFVVtfsNILU6UrONBZn3e4p0fyu0V8T-8Xyzr_Xs7cRNJzmtXysF1EIFoRdaqd7lH3VKgq2neJpf3UlPHga1jdPfkIreu3AgkqCug9jZB3OnVESMoTt1.KK8m4eNA5uK4WgYE4wPdBmu3IvNL8SN3jzt5OBYPRTZrKYCoS9LlhgGX_3TxcQf1D-mN-h3XL7KTLJnSyGUiSg.sc3&id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJqRkJNakV6T1RGQ09EVkJSVE14UVRCQ05qYzBSa1E0T0VZM05EUTRSakJDT0RkRFJVTkZOdyJ9.eyJpc3MiOiJodHRwczovL2F1dGguc21hcnQuY29tL29pZGMvb3AvdjEuMC8zX0w5NGV5US13dkpoV203QWZwMW9CaGZUR1haQXJVZlNISFc5cDlQbmNnNTEzaFpFTFhzeENmTVdIckY4ZjVQNWEvIiwiZXhwIjoxNzI2MzAyMjEyLCJpYXQiOjE3MjU2OTc0MTIsImF1ZCI6IlNlUU1VRnFET1N1RUYwSXFpNWJCMkRjbyIsImF1dGhfdGltZSI6MTcyNTY5NzQxMiwiYXpwIjoiU2VRTVVGcURPU3VFRjBJcWk1YkIyRGNvIiwic3ViIjoiOWRmNTBhNzc2MzVlNGMxYWFiYzc5MzkxMmE3ODI3ODUiLCJub25jZSI6IjE3MjU2OTc0MTE3MTEiLCJhdF9oYXNoIjoiTEJBdjJrWVc5ajVPSHNaclBIVlVxQSJ9.h1MJ84G2Y_deSKVxymL8z0EEqMQzzwxmUQyPCnSY-4z_JGaqpygUbtjM5SNT6SxkIlzu6UL-YILiynRaf_OdW_tUM_nsIftbRRwigEHHIk5tuL7CXgFI7UQfwJW6Skl669j1U7rglMVOrNJzhvNJib7mrK7mnSUWcAnEZhv1PdG-2LbOBfdW5dZ5eCqs-C_VKBafhZEx5Mcsj18_FZZWVd-2IqGX0ajIwC-0Drys8a3n8oIuPKwpLomVpeSDPj-isukdTXjrg81GJagyJVm6Vtwawlfmyh0hQJkiqIEiLu0tO3dcrbL2i-XlvM_S9-mcoEIIisNAtOZBpbA6mLxhRg&refresh_token=st2.s.AtLtwZM_GA.55e55QndMXUovXN1RA5XXlf1DWf5SzsC9h68J3TWn03T3Z67uF-UJIUri1ChJg0FyOYUX1M5beZ92VXbDqGtY79Ml8KqvgCuD67q7V16LSkM0UEr-mi5LyqNA0R0dJNn.j8WCmrEWI6Wt61boOQhWpSMnAkIqjkmqiYYSTBC9XRkKq5-KH445-PMTaGp0VZrx6NNCefYafRTKztgK896hsQ.sc3
[smart-hello] TRACE 2024/09/07 10:23:32 POST https://api.ecloudeu.com/auth/account/session/secure?identity_type=smart
[smart-hello] TRACE 2024/09/07 10:23:32 {"accessToken":"st2.s.AtLt3rmW7A.KRr8UxsTMwxJFFVVtfsNILU6UrONBZn3e4p0fyu0V8T-8Xyzr_Xs7cRNJzmtXysF1EIFoRdaqd7lH3VKgq2neJpf3UlPHga1jdPfkIreu3AgkqCug9jZB3OnVESMoTt1.KK8m4eNA5uK4WgYE4wPdBmu3IvNL8SN3jzt5OBYPRTZrKYCoS9LlhgGX_3TxcQf1D-mN-h3XL7KTLJnSyGUiSg.sc3"}
--
{"code":1000,"data":{"expiresIn":4579200,"deviceType":"browser","clientId":null,"idToken":"","resultCode":"0","alias":"","accessToken":"eyJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTkwMDM4NSIsImNsaWVudElkIjoiYnJvd3NlciIsIm1vZHVsZVR5cGUiOiJicm93c2VyIiwiYXBwSWQiOiJTbWFydEFQUEVVIiwiYnVzaW5lc3NJZCI6IiIsImV4cCI6MTczMzQ3MzQxMiwiZW52IjoicHJvZHVjdGlvbiJ9.eksgOIswdyMqkPBTlz0fQ9SMkldGpnlTNZb28dbH6Iw","tcToken":"","resultMessage":"Success","userId":"21900385","refreshToken":"MUFCOUJGNDg5RjRGRUI1RUI2MURFOEYwOTMzOTRDMjc="},"success":true,"hint":null,"sessionId":"1737faec11d-48f1-4061-96dc-3928c550edc8","message":"Successful."}
[smart-hello] TRACE 2024/09/07 10:23:32 GET https://api.ecloudeu.com/device-platform/user/vehicle/secure?needSharedCar=1&userId=21900385
[smart-hello] TRACE 2024/09/07 10:23:32 {"code":"1000","message":null,"hint":null,"httpStatus":"OK","data":{"list":[{"factoryCode":"6105","colorName":"D18 IRIDIUM SILVER","isIHUConfirm":false,"temId":"V89882390000523310391039","ihuPlatform":"tsp","ihuId":"9997226608067002P3200075","carProveStatus":"N","fuelTankCapacity":"0","seriesCodeVs":"HX11","iccid":"89882390000523310392","current":false,"modelCode":"HX11_EUL_BRABUS+_AWD_000","vehicleOwnerLastTime":1725697247000,"vin":"HESXA*****","fccode":"6105","id":1197117,"msisdn":"882390077222422","vehicleType":0,"engineNo":"P33K3B02L,P27J1707F","temType":"","plateNo":"","tboxPlatform":"tsp","seriesName":"HX11","updateTime":1725685092000,"vehiclePhotoSmall":"","modelName":"HX11_EUL_BRABUS+_AWD_000","proprietaryPlatform":0,"recordTime":1678207230000,"createTime":1678207230000,"simActivited":-1,"vehiclePhotoBig":"","loginInfo":{"isLogined":0,"loginUid":""},"colorCode":"085","defaultVehicle":true,"matCode":"HX1ETD3A61EU010424","shareStatus":"Y"}]},"sessionId":"4d70c9d75200b8210d252adf47945f24","success":true}
[smart-hello] TRACE 2024/09/07 10:23:32 POST https://api.ecloudeu.com/device-platform/user/session/update?identity_type=smart
[smart-hello] TRACE 2024/09/07 10:23:33 {"language":"","sessionToken":"eyJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTkwMDM4NSIsImNsaWVudElkIjoiYnJvd3NlciIsIm1vZHVsZVR5cGUiOiJicm93c2VyIiwiYXBwSWQiOiJTbWFydEFQUEVVIiwiYnVzaW5lc3NJZCI6IiIsImV4cCI6MTczMzQ3MzQxMiwiZW52IjoicHJvZHVjdGlvbiJ9.eksgOIswdyMqkPBTlz0fQ9SMkldGpnlTNZb28dbH6Iw","vin":"HESXA*****"}
--
{"code":"1000","data":{"result":1},"success":true,"hint":"success","httpStatus":"OK","sessionId":"d4be7b953478f9296bbecca15e3a8d7a","message":"Successful."}
[smart-hello] TRACE 2024/09/07 10:23:33 GET https://api.ecloudeu.com/remote-control/vehicle/status/HESXA2C41PS048570?latest=true&target=&userId=21900385
[smart-hello] TRACE 2024/09/07 10:23:33 {"code":"1000","data":{"result":{"serviceResult":{"error":null,"operationResult":1},"sessionId":"PS048570000000029741322825908226"},"vehicleStatus":{"basicVehicleStatus":{"usageMode":"1","engineStatus":"engine_off","position":{"altitude":"","posCanBeTrusted":"","latitude":"","carLocatorStatUploadEn":"false","marsCoordinates":"","longitude":""},"carMode":"0","speed":"0.0","speedValidity":"false","direction":""},"notification":{"notifForEmgyCallStatus":"0"},"eg":{"enableRunning":"false","blocked":{"status":"0"},"panicStatus":"false"},"parkTime":{"status":"1725697061555"},"theftNotification":{"time":"1716550899","activated":"2"},"configuration":{"propulsionType":"4","fuelType":"4","vin":"HESXA*****"},"updateTime":"1725697399129","additionalVehicleStatus":{"maintenanceStatus":{"tyreTempWarningPassengerRear":"0","daysToService":"171","engineHrsToService":"500","odometer":"5232.000","brakeFluidLevelStatus":"3","tyreTempDriverRear":"23.000","tyreTempWarningPassenger":"0","tyreTempWarningDriverRear":"0","mainBatteryStatus":{"stateOfCharge":"1","chargeLevel":"93.5","energyLevel":"0","stateOfHealth":"0","powerLevel":"0","voltage":"12.625"},"tyreTempDriver":"23.000","tyreTempPassengerRear":"22.000","tyrePreWarningDriver":"0","distanceToService":"24768","tyrePreWarningPassengerRear":"0","tyreTempWarningDriver":"0","tyreStatusPassengerRear":"241.648","tyreStatusPassenger":"237.529","tyreStatusDriverRear":"241.648","serviceWarningStatus":"0","tyreStatusDriver":"247.140","tyreTempPassenger":"23.000","tyrePreWarningDriverRear":"0","tyrePreWarningPassenger":"0","washerFluidLevelStatus":"1"},"electricVehicleStatus":{"disChargeUAct":"0.0","disChargeSts":"0","wptFineAlignt":"0","chargeLidAcStatus":"2","distanceToEmptyOnBatteryOnly":"93","distanceToEmptyOnBattery100Soc":"429","chargeSts":"0","averPowerConsumption":"-86.3","chargerState":"0","timeToTargetDisCharged":"2047","distanceToEmptyOnBattery20Soc":"84","disChargeConnectStatus":"0","chargeLidDcAcStatus":"2","dcChargeSts":"0","ptReady":"0","chargeLevel":"22","statusOfChargerConnection":"0","dcDcActvd":"0","indPowerConsumption":"0.0","dcDcConnectStatus":"0","disChargeIAct":"0.0","dcChargeIAct":"0.0","chargeUAct":"0.0","bookChargeSts":"0","chargeIAct":"0.000","timeToFullyCharged":"2047"},"chargeHvSts":"1","drivingBehaviourStatus":{"gearAutoStatus":"0","gearManualStatus":"0","engineSpeed":"0.000"},"runningStatus":{"ahbc":"0","goodbye":"0","homeSafe":"0","cornrgLi":"0","frntFog":"0","stopLi":"0","tripMeter1":"4378.6","approach":"0","tripMeter2":"149.8","indFuelConsumption":"0","hiBeam":"0","engineCoolantLevelStatus":"3","fuelEnLevel":"0","loBeam":"0","posLiRe":"0","ltgShow":"0","welcome":"0","drl":"0","fuelLevelPct":"0","ahl":"0","fuelEnCns":"0","trunIndrLe":"0","trunIndrRi":"0","afs":"0","dbl":"0","avgSpeed":"24","posLiFrnt":"0","reverseLi":"0","hwl":"0","reFog":"0","flash":"0","allwl":"0","fuelEnCnsFild":"0"},"trailerStatus":{"trailerTurningLampSts":"0","trailerFogLampSts":"0","trailerBreakLampSts":"0","trailerReversingLampSts":"0","trailerPosLampSts":"0"},"climateStatus":{"drvHeatSts":"0","winPosDriver":"0","rrVentDetail":"0","rlVentSts":"0","passVentSts":"0","interiorTemp":"25.000","passVentDetail":"0","sunroofPos":"101","cdsClimateActive":"false","sunroofOpenStatus":"1","rrHeatingDetail":"0","winStatusPassenger":"2","fragActive":false,"winStatusDriver":"2","drvVentSts":"0","winStatusPassengerRear":"2","sunCurtainRearOpenStatus":"1","preClimateActive":false,"rlHeatingDetail":"0","winPosPassengerRear":"0","curtainPos":"0","rlVentDetail":"0","curtainOpenStatus":"1","climateOverHeatProActive":"true","rrVentSts":"0","rrHeatingSts":"0","winPosPassenger":"0","steerWhlHeatingSts":"2","drvVentDetail":"0","winPosDriverRear":"0","exteriorTemp":"21.500","rlHeatingSts":"0","winStatusDriverRear":"2","defrost":"false","drvHeatDetail":"2","passHeatingDetail":"2","airBlowerActive":"false","sunCurtainRearPos":"101","passHeatingSts":"0"},"drivingSafetyStatus":{"doorLockStatusDriverRear":"1","srsCrashStatus":"0","doorOpenStatusPassengerRear":"0","doorPosPassengerRear":"0","doorOpenStatusDriver":"0","seatBeltStatusPassenger":"false","doorPosDriver":"0","seatBeltStatusThPassengerRear":"false","electricParkBrakeStatus":"1","doorLockStatusDriver":"1","seatBeltStatusThDriverRear":"false","tankFlapStatus":"2","seatBeltStatusPassengerRear":"false","doorOpenStatusPassenger":"0","doorPosPassenger":"0","vehicleAlarm":{"alrmSt":"1","alrmTrgSrc":"7"},"doorPosDriverRear":"0","centralLockingStatus":"2","seatBeltStatusDriver":"false","doorLockStatusPassenger":"1","seatBeltStatusMidRear":"false","trunkLockStatus":"1","seatBeltStatusDriverRear":"false","engineHoodOpenStatus":"0","doorOpenStatusDriverRear":"0","doorLockStatusPassengerRear":"1","trunkOpenStatus":"0"},"pollutionStatus":{"interiorPM25":"11","interiorSecondPM25Level":"0","interiorPM25Level":"0","relHumSts":"80","exteriorPM25Level":"0"}},"temStatus":{"swVersion":null,"serialNumber":null,"powerSource":null,"networkAccessStatus":{"mobileNetwork":null,"simInfo":{"iccId":null,"imsi":null,"msisdn":null}},"mcuVersion":null,"mpuVersion":null,"backupBattery":{"stateOfCharge":null,"stateOfHealth":null,"voltage":null},"hwVersion":null,"powerMode":null,"healthStatus":null,"sleepCycleNextWakeupTime":null,"rvsEnable":"true","imei":null,"state":null,"connectivityStatus":null}}},"success":true,"hint":null,"httpStatus":"OK","sessionId":"6f42c7127225860dff4c86ba77024d41","message":"operation succeed"}
.Soc:         json: invalid use of ,string struct tag, trying to unmarshal "" into int: %!s(<nil>)
Capacity:     62.0kWh
Range:        json: invalid use of ,string struct tag, trying to unmarshal "" into int: %!s(<nil>)
Odometer:     json: invalid use of ,string struct tag, trying to unmarshal "" into int: %!s(<nil>)
Climater:     json: invalid use of ,string struct tag, trying to unmarshal "" into int: %!s(<nil>)
Position:     json: invalid use of ,string struct tag, trying to unmarshal "" into int: %!s(<nil>)
OnIdentified: MaxCurrent:10
[eebus ] DEBUG 2024/09/07 10:23:36 mdns: stop announcement
[eebus ] ERROR 2024/09/07 10:23:36 websocket server error: http: Server closed



json Antwort während des Ladens: chargerState wechselt von 0 auf 2

[smart-hello] TRACE 2024/09/07 10:31:36 {"code":"1000","data":{"result":{"serviceResult":{"error":null,"operationResult":1},"sessionId":"PS048570000000029789636525951824"},"vehicleStatus":{"basicVehicleStatus":{"usageMode":"1","engineStatus":"engine_off","position":{"altitude":"","posCanBeTrusted":"","latitude":"","carLocatorStatUploadEn":"false","marsCoordinates":"","longitude":""},"carMode":"0","speed":"0.0","speedValidity":"false","direction":""},"notification":{"notifForEmgyCallStatus":"0"},"eg":{"enableRunning":"false","blocked":{"status":"0"},"panicStatus":"false"},"parkTime":{"status":"1725697061555"},"theftNotification":{"time":"1716550899","activated":"2"},"configuration":{"propulsionType":"4","fuelType":"4","vin":"HESXA*****"},"updateTime":"1725697890073","additionalVehicleStatus":{"maintenanceStatus":{"tyreTempWarningPassengerRear":"0","daysToService":"171","engineHrsToService":"500","odometer":"5232.000","brakeFluidLevelStatus":"3","tyreTempDriverRear":"23.000","tyreTempWarningPassenger":"0","tyreTempWarningDriverRear":"0","mainBatteryStatus":{"stateOfCharge":"1","chargeLevel":"92.4","energyLevel":"0","stateOfHealth":"0","powerLevel":"0","voltage":"12.225"},"tyreTempDriver":"23.000","tyreTempPassengerRear":"22.000","tyrePreWarningDriver":"0","distanceToService":"24768","tyrePreWarningPassengerRear":"0","tyreTempWarningDriver":"0","tyreStatusPassengerRear":"241.648","tyreStatusPassenger":"237.529","tyreStatusDriverRear":"241.648","serviceWarningStatus":"0","tyreStatusDriver":"247.140","tyreTempPassenger":"23.000","tyrePreWarningDriverRear":"0","tyrePreWarningPassenger":"0","washerFluidLevelStatus":"1"},"electricVehicleStatus":{"disChargeUAct":"0.0","disChargeSts":"0","wptFineAlignt":"0","chargeLidAcStatus":"2","distanceToEmptyOnBatteryOnly":"93","distanceToEmptyOnBattery100Soc":"429","chargeSts":"0","averPowerConsumption":"-86.3","chargerState":"2","timeToTargetDisCharged":"2047","distanceToEmptyOnBattery20Soc":"84","disChargeConnectStatus":"3","chargeLidDcAcStatus":"1","dcChargeSts":"0","ptReady":"0","chargeLevel":"22","statusOfChargerConnection":"3","dcDcActvd":"1","indPowerConsumption":"0.0","dcDcConnectStatus":"0","disChargeIAct":"0.0","dcChargeIAct":"-6.7","chargeUAct":"406.7","bookChargeSts":"0","chargeIAct":"5.900","timeToFullyCharged":"878"},"chargeHvSts":"1","drivingBehaviourStatus":{"gearAutoStatus":"0","gearManualStatus":"0","engineSpeed":"0.000"},"runningStatus":{"ahbc":"0","goodbye":"0","homeSafe":"0","cornrgLi":"0","frntFog":"0","stopLi":"0","tripMeter1":"4378.6","approach":"0","tripMeter2":"149.8","indFuelConsumption":"0","hiBeam":"0","engineCoolantLevelStatus":"3","fuelEnLevel":"0","loBeam":"0","posLiRe":"0","ltgShow":"0","welcome":"0","drl":"0","fuelLevelPct":"0","ahl":"0","fuelEnCns":"0","trunIndrLe":"0","trunIndrRi":"0","afs":"0","dbl":"0","avgSpeed":"24","posLiFrnt":"0","reverseLi":"0","hwl":"0","reFog":"0","flash":"0","allwl":"0","fuelEnCnsFild":"0"},"trailerStatus":{"trailerTurningLampSts":"0","trailerFogLampSts":"0","trailerBreakLampSts":"0","trailerReversingLampSts":"0","trailerPosLampSts":"0"},"climateStatus":{"drvHeatSts":"0","winPosDriver":"0","rrVentDetail":"0","rlVentSts":"0","passVentSts":"0","interiorTemp":"25.000","passVentDetail":"0","sunroofPos":"101","cdsClimateActive":"false","sunroofOpenStatus":"1","rrHeatingDetail":"0","winStatusPassenger":"2","fragActive":false,"winStatusDriver":"2","drvVentSts":"0","winStatusPassengerRear":"2","sunCurtainRearOpenStatus":"1","preClimateActive":false,"rlHeatingDetail":"0","winPosPassengerRear":"0","curtainPos":"0","rlVentDetail":"0","curtainOpenStatus":"1","climateOverHeatProActive":"true","rrVentSts":"0","rrHeatingSts":"0","winPosPassenger":"0","steerWhlHeatingSts":"2","drvVentDetail":"0","winPosDriverRear":"0","exteriorTemp":"21.500","rlHeatingSts":"0","winStatusDriverRear":"2","defrost":"false","drvHeatDetail":"2","passHeatingDetail":"2","airBlowerActive":"false","sunCurtainRearPos":"101","passHeatingSts":"0"},"drivingSafetyStatus":{"doorLockStatusDriverRear":"1","srsCrashStatus":"0","doorOpenStatusPassengerRear":"0","doorPosPassengerRear":"0","doorOpenStatusDriver":"0","seatBeltStatusPassenger":"false","doorPosDriver":"0","seatBeltStatusThPassengerRear":"false","electricParkBrakeStatus":"1","doorLockStatusDriver":"1","seatBeltStatusThDriverRear":"false","tankFlapStatus":"2","seatBeltStatusPassengerRear":"false","doorOpenStatusPassenger":"0","doorPosPassenger":"0","vehicleAlarm":{"alrmSt":"1","alrmTrgSrc":"7"},"doorPosDriverRear":"0","centralLockingStatus":"2","seatBeltStatusDriver":"false","doorLockStatusPassenger":"1","seatBeltStatusMidRear":"false","trunkLockStatus":"1","seatBeltStatusDriverRear":"false","engineHoodOpenStatus":"0","doorOpenStatusDriverRear":"0","doorLockStatusPassengerRear":"1","trunkOpenStatus":"0"},"pollutionStatus":{"interiorPM25":"11","interiorSecondPM25Level":"0","interiorPM25Level":"0","relHumSts":"80","exteriorPM25Level":"0"}},"temStatus":{"swVersion":null,"serialNumber":null,"powerSource":null,"networkAccessStatus":{"mobileNetwork":null,"simInfo":{"iccId":null,"imsi":null,"msisdn":null}},"mcuVersion":null,"mpuVersion":null,"backupBattery":{"stateOfCharge":null,"stateOfHealth":null,"voltage":null},"hwVersion":null,"powerMode":null,"healthStatus":null,"sleepCycleNextWakeupTime":null,"rvsEnable":"true","imei":null,"state":null,"connectivityStatus":null}}},"success":true,"hint":null,"httpStatus":"OK","sessionId":"f1002eb8985d5136c02a2ec6af49769c","message":"operation succeed"}

What type of operating system are you running?

Linux

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.130.7

@andig
Copy link
Member

andig commented Sep 7, 2024

Scheint ja als würde Smart da ständig etwas ändern. Bitte bei Smart beschweren. Ich sehe nicht, dass wir das alle paar Tage wieder nachziehen wollen.

@cyberways
Copy link
Author

Verstehe ich irgendwie, ist aber nicht gut. Für eine Beschwerde bräuchte ich bitte Infos: Was ändern die denn und warum kommt es dann immer zu den gleichen Fehlermeldungen? Gibt es eine Gen-1 API und noch eine andere Version die funktioniert und bin ich der einzige Smart #1, der diese Probleme hat und bei allen anderen läuft es einfach?

@andig
Copy link
Member

andig commented Sep 7, 2024

Zuerst musst du wohl mal Smart fragen, ob und wann sie überhaupt ein extern nutzbares API anbieten wollen das sie dann auch mal dokumentieren. Da fängt der Ärger nämlich schon an- es gibt GAR NICHTS...

@andig andig added bug Something isn't working devices Specific device support labels Sep 7, 2024
@cyberways
Copy link
Author

Für GAR NICHTS an Doku habt ihr aber eine richtig gute Anbindung gebaut, auch wenn sie bei mir nicht funktioniert.
Das Auto lädt übrigens gerade noch ca. 1,5h, wenn du mit den Zugangsdaten nochmal während des Ladens draufschauen wollen würdest. ;-) Vielleicht gibt es neues zu sehen?

@andig
Copy link
Member

andig commented Sep 7, 2024

Für GAR NICHTS an Doku habt ihr aber eine richtig gute Anbindung gebaut,

Isso ;)

Beim Ladestatus musst Du selbst Hand anlegen und mit Hilfe von

evcc charger --log trace

rausfinden, woran man disconnected/ connected/ charging fest machen kann. Vmtl ist das chargerState. Aber welche Werte sind was?

@cyberways
Copy link
Author

Das habe ich schon 2x geschrieben im Laufe unserer Tickets. chargerState = 0 ist abgesteckt, 2 ist ladend wie jetzt gerade und ich meine 3 ist ladebereit wartend wenn nicht genug PV überschuss von evcc oder der im Auto selbst eingestellte SoC erreicht ist und das Auto noch an der Wallbox hängt.

@andig
Copy link
Member

andig commented Sep 7, 2024

und ich meine

Es braucht "connected". Ist er das jetzt oder nicht? "ich meine" lässt sich schlecht implementieren ;)

@cyberways
Copy link
Author

Das können wir gerne zusammen rausfinden wenn ihr es implementieren möchtet. Jetzt gerade lädt das Auto und ist "2".
Ich hatte die "3" im Gedächtnis von vor einigen Tagen als das Auto nach dem Laden pausiert hat, müsste aber nochmal sicherstellen ob durch evcc wegen zu wenig Sonne oder wegen "voll".

@cyberways
Copy link
Author

@andig Du hast die smart-hello API trotz des verständlichen Unmuts über die "Unterstützung" seitens des Herstellers ja doch noch einmal gefixt und auch den Charge State eingebaut. Mega Danke dafür!
Heute getestet mit der 0.130.11, funktioniert alles 100% inkl. Fahrzeugerkennung und SoC Anzeige – zum ersten Mal überhaupt seit ich das Auto habe. DANKE!

@andig
Copy link
Member

andig commented Sep 21, 2024

Gerne :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devices Specific device support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants