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

Smart #1 vehicle: odometer: json: cannot unmarshal number 0.0 into Go struct field #15431

Closed
rschueler opened this issue Aug 16, 2024 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@rschueler
Copy link

Describe the bug

Smart #1 vehicle integration reports the follwing error and is not able to pull any data from the API:

odometer: json: cannot unmarshal number 0.0 into Go struct field
.Data.VehicleStatus.AdditionalVehicleStatus.ElectricVehicleStatus.indPowerConsumption of type int: %!s()

Steps to reproduce

  1. Add Smart vehicle in UI by entering email and password
  2. Click "Save and verify"

Configuration details

network:
  schema: http
  host: evcc.local
  port: 7070

interval: 10s

log: info

meters:
  - name: grid
    type: template
    template: solaredge-hybrid
    usage: grid

    # Modbus TCP
    modbus: tcpip
    id: 1
    host: 192.168.x.x # Hostname
    port: 502 # Port
    timeout: 10s # optional

  - name: pv
    type: template
    template: solaredge-hybrid
    usage: pv

    # Modbus TCP
    modbus: tcpip
    id: 1
    host: 192.168.x.x # Hostname
    port: 502 # Port
    timeout: 10s # optional

  - name: battery
    type: template
    template: solaredge-hybrid
    capacity: 8
    usage: battery

    # Modbus TCP
    modbus: tcpip
    id: 1
    host: 192.168.x.x # Hostname
    port: 502 # Port
    timeout: 10s # optional

chargers:
  - name: warp3
    type: template
    template: tinkerforge-warp3
    host: 192.168.x.x # IP Adresse oder der Hostname des MQTT Brokers
    port: 1883 # MQTT Broker Port (optional)
    topic: warp3/xxxx # Topic (ohne / am Anfang) (optional)
    timeout: 30s # Akzeptiere keine Daten die älter sind als dieser Wert (optional)

vehicles:

site:
  title: MyHome
  meters:
    grid: grid
    pv: pv
    battery: battery

tariffs:
  currency: EUR # (default EUR)
  grid:
    type: tibber
    token: "xxxxxxxxxxxxxxx" # access token
  feedin:
    type: fixed
    price: 0.0xxx # [currency]/kWh
  co2:
    type: grünstromindex
    zip: xxxxx

loadpoints:
  - title: Carport # display name for UI
    charger: warp3 # Wallbox Referenz

Log details

[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleOdometer
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleDetectionActive
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleWelcomeActive
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleSoc
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleRange
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleLimitSoc
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/loadpoints/1/vehicleName
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/title
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/icon
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/capacity
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/minSoc
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/limitSoc
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/features
[mqtt ] TRACE 2024/08/16 15:26:42 delete: evcc/vehicles/db:4/plans
[site ] INFO 2024/08/16 15:26:43 vehicles:
[site ] INFO 2024/08/16 15:26:43 vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[lp-1 ] DEBUG 2024/08/16 15:26:43 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:26:45 vehicle api refresh
[lp-1 ] DEBUG 2024/08/16 15:26:45 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:26:45 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:26:54 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:26:54 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:04 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:04 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:14 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:14 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:24 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:24 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[smart-hello] TRACE 2024/08/16 15:27:25 GET https://api.ecloudeu.com/device-platform/user/vehicle/secure?needSharedCar=1&userId=xxxx
[smart-hello] TRACE 2024/08/16 15:27:25 {"code":"1000","message":null,"hint":null,"httpStatus":"OK","data":{"list":[{"factoryCode":"6105","colorName":"A21 SNOW POWDER WHITE","isIHUConfirm":false,"temId":"xxxx","ihuPlatform":"tsp","ihuId":"xxxx0","carProveStatus":"N","fuelTankCapacity":"0","seriesCodeVs":"HX11","iccid":"xx8","current":false,"modelCode":"HX11_EUL_LUXTECH+_AWD_000_LHD","vehicleOwnerLastTime":00000,"vin":"xxxxx","fccode":"6105","id":11111,"msisdn":"1111112","vehicleType":0,"engineNo":"xxxxx,xxx","temType":"","plateNo":"","tboxPlatform":"tsp","seriesName":"HX11","updateTime":1723783668000,"vehiclePhotoSmall":"","modelName":"HX11_EUL_LUXTECH+_AWD_000_LHD","proprietaryPlatform":0,"recordTime":1683418524000,"createTime":1683418524000,"simActivited":0,"vehiclePhotoBig":"","loginInfo":{"isLogined":0,"loginUid":""},"colorCode":"096","defaultVehicle":true,"matCode":"xxxxx","shareStatus":"N"}]},"sessionId":"xxxxx","success":true}
[smart-hello] TRACE 2024/08/16 15:27:25 GET https://api.ecloudeu.com/remote-control/vehicle/status/xxxxxxx7?latest=true&target=&userId=xxxx9
[smart-hello] TRACE 2024/08/16 15:27:25 {"code":"1000","data":{"result":{"serviceResult":{"error":null,"operationResult":1},"sessionId":"Pxxxx9x"},"vehicleStatus":{"basicVehicleStatus":{"usageMode":"0","engineStatus":"engine_off","position":{"altitude":"123","posCanBeTrusted":"false","latitude":"1225","carLocatorStatUploadEn":"true","marsCoordinates":"false","longitude":"123"},"carMode":"0","speed":"0.0","speedValidity":"false","direction":"0"},"notification":{"notifForEmgyCallStatus":"0","reason":"1","time":"1695991979","parameters":"{\"key\":\"New VIN number\",\"stringVal\":\"xxxxx\"},{\"key\":\"Previous VIN number\",\"stringVal\":\"null\"}"},"eg":{"enableRunning":"false","blocked":{"status":"0"},"panicStatus":"false"},"parkTime":{"status":"1723796554036"},"configuration":{"propulsionType":"4","fuelType":"4","vin":"xxxxx"},"updateTime":"1723813338659","additionalVehicleStatus":{"maintenanceStatus":{"tyreTempWarningPassengerRear":"0","daysToService":"222","engineHrsToService":"500","odometer":"123456.000","brakeFluidLevelStatus":"3","tyreTempDriverRear":"27.000","tyreTempWarningPassenger":"0","tyreTempWarningDriverRear":"0","mainBatteryStatus":{"stateOfCharge":"1","chargeLevel":"99.8","energyLevel":"0","stateOfHealth":"0","powerLevel":"0","voltage":"12.850"},"tyreTempDriver":"29.000","tyreTempPassengerRear":"28.000","tyrePreWarningDriver":"0","distanceToService":"28621","tyrePreWarningPassengerRear":"0","tyreTempWarningDriver":"0","tyreStatusPassengerRear":"233.410","tyreStatusPassenger":"238.902","tyreStatusDriverRear":"232.037","serviceWarningStatus":"0","tyreStatusDriver":"236.156","tyreTempPassenger":"29.000","tyrePreWarningDriverRear":"0","tyrePreWarningPassenger":"0","washerFluidLevelStatus":"1"},"electricVehicleStatus":{"disChargeUAct":"0.0","disChargeSts":"0","wptFineAlignt":"0","chargeLidAcStatus":"2","distanceToEmptyOnBatteryOnly":"358","distanceToEmptyOnBattery100Soc":"400","chargeSts":"0","averPowerConsumption":"-85.8","chargerState":"4","timeToTargetDisCharged":"2047","distanceToEmptyOnBattery20Soc":"80","disChargeConnectStatus":"2","chargeLidDcAcStatus":"1","dcChargeSts":"0","ptReady":"0","chargeLevel":"90","statusOfChargerConnection":"2","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":"1234.5","approach":"0","tripMeter2":"12.3","indFuelConsumption":"0","hiBeam":"0","engineCoolantLevelStatus":"3","fuelEnLevel":"0","loBeam":"0","posLiRe":"0","ltgShow":"0","welcome":"0","drl":"0","fuelLevelPct":"0","ahl":"0","fuelEnCns":"0","trundrLe":"0","trundrRi":"0","afs":"0","dbl":"0","avgSpeed":"21","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":"28.200","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":"101","rlVentDetail":"0","curtainOpenStatus":"1","climateOverHeatProActive":"false","rrVentSts":"0","rrHeatingSts":"0","winPosPassenger":"0","steerWhlHeatingSts":"2","drvVentDetail":"0","winPosDriverRear":"0","exteriorTemp":"26.800","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":{"alrmTrgSrc":"0"},"doorPosDriverRear":"0","centralLockingStatus":"2","seatBeltStatusDriver":"false","doorLockStatusPassenger":"1","seatBeltStatusMidRear":"false","trunkLockStatus":"1","seatBeltStatusDriverRear":"false","engineHoodOpenStatus":"0","doorOpenStatusDriverRear":"0","doorLockStatusPassengerRear":"1","trunkOpenStatus":"0"},"pollutionStatus":{"interiorPM25":"1","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":"xxxe","message":"operation succeed"}
[lp-1 ] DEBUG 2024/08/16 15:27:34 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)
[lp-1 ] DEBUG 2024/08/16 15:27:34 !! active phases: 3p = min(0p measured 0p vehicle 0p physical 0p charger)

What type of operating system are you running?

Docker container

Version

evcc version 0.129.0

@andig andig added the duplicate This issue or pull request already exists label Aug 16, 2024
@andig andig closed this as completed Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants