evcc icon indicating copy to clipboard operation
evcc copied to clipboard

completed planned charge, shows as pending in the past

Open GrimmiMeloni opened this issue 3 years ago • 6 comments

Describe the bug

I charged the car via the planner last night. Based on GSI it completed the charge around 4 o'clock. This morning I see that the UI still shows the charge as pending but in the past. The rest of the UI shows 100% SOC is reached, so the planned charge was successful.

Bildschirmfoto 2023-10-07 um 07 34 14

(The screenshot is taken just now, roughly 7:30 in the morning)

~~@naltatis I assume this is probably more in your area. I have captured a full log, but given all the Easee goodness keeping me on my toes it is impossible to sanitize for public posting. Let me know if you need it, and I will send it over privately.~~

Steps to reproduce

  1. Plan a charge
  2. Have it complete
  3. UI shows the above

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
  easee: trace

# unique installation id
plant: xxx
sponsortoken: xxx

interval: 15s # control cycle interval

meters:
- type: template
  template: tesla-powerwall 
  usage: grid  
  host: 192.168.3.38  
  password: xxx
  name: grid1
- type: template
  template: tesla-powerwall 
  usage: pv  
  host: 192.168.3.38  
  password: xxx
  name: pv2
- type: template
  template: tesla-powerwall 
  usage: battery  
  host: 192.168.3.38  
  password: xxx
  name: battery3

site:
  title: Zu Hause
  meters:
    grid: grid1
    pv:
    - pv2
    battery:
    - battery3
  residualPower: 100
  prioritySoc: 70
  bufferSoc: 80

chargers:
  - name: Easee
    type: template
    template: easee
    user: xxx
    password: xxx
    charger: xxx
    timeout: 20s
    authorize: true

loadpoints:
  - title: Carport # display name for UI
    charger: Easee
    mode: off
    #mode: pv
    resetOnDisconnect: true
    maxcurrent: 32
    #maxcurrent: 16

tariffs:
  currency: EUR # (default EUR)
  grid:
    type: fixed
    price: 0.3796 # [currency]/kWh

  feedin:
    type: fixed
    price: 0.082 # [currency]/kWh

  co2:
    type: grünstromindex
    zip: "33106"

vehicles:
  - name: Enyaq
    type: template
    template: enyaq
    title: Enyaq
    user: xxx
    password: xxx
    vin: xxx
    capacity: 77
    mode: pv 

mqtt:
  broker: ds218.fritz.box:1883
  topic: evcc

Log details

[site  ] DEBUG 2023/10/07 04:04:28 ----
[lp-1  ] DEBUG 2023/10/07 04:04:28 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:04:28 pv power: 0W
[site  ] DEBUG 2023/10/07 04:04:28 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:04:28 battery power: -10W
[site  ] DEBUG 2023/10/07 04:04:28 grid power: 11674W
[site  ] DEBUG 2023/10/07 04:04:28 giving priority to battery charging at soc: 22%
[site  ] DEBUG 2023/10/07 04:04:28 site power: 11774W
[lp-1  ] DEBUG 2023/10/07 04:04:28 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:04:28 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:04:28 charge total import: 2035.208kWh
[lp-1  ] DEBUG 2023/10/07 04:04:28 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:04:28 soc estimated: 98.63% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:04:28 vehicle soc: 99%
[lp-1  ] DEBUG 2023/10/07 04:04:28 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:04:28 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:04:28 plan: charge 6m3s starting at 2023-10-07 04:04:29 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:04:29 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:04:29 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:04:43 ----
[lp-1  ] DEBUG 2023/10/07 04:04:43 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:04:43 pv power: 0W
[site  ] DEBUG 2023/10/07 04:04:43 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:04:43 battery power: -10W
[site  ] DEBUG 2023/10/07 04:04:43 grid power: 11681W
[site  ] DEBUG 2023/10/07 04:04:43 giving priority to battery charging at soc: 22%
[site  ] DEBUG 2023/10/07 04:04:43 site power: 11781W
[lp-1  ] DEBUG 2023/10/07 04:04:43 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:04:43 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:04:43 charge total import: 2035.208kWh
[lp-1  ] DEBUG 2023/10/07 04:04:43 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:04:43 soc estimated: 98.63% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:04:43 vehicle soc: 99%
[lp-1  ] DEBUG 2023/10/07 04:04:43 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:04:43 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:04:43 plan: charge 6m3s starting at 2023-10-07 04:04:44 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:04:43 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:04:43 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:04:58 ----
[lp-1  ] DEBUG 2023/10/07 04:04:58 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:04:58 pv power: 0W
[site  ] DEBUG 2023/10/07 04:04:58 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:04:58 battery power: 0W
[site  ] DEBUG 2023/10/07 04:04:58 grid power: 11668W
[site  ] DEBUG 2023/10/07 04:04:58 site power: 11768W
[lp-1  ] DEBUG 2023/10/07 04:04:58 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:04:58 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:04:59 charge total import: 2035.208kWh
[lp-1  ] DEBUG 2023/10/07 04:04:59 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:04:59 soc estimated: 98.63% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:04:59 vehicle soc: 99%
[lp-1  ] DEBUG 2023/10/07 04:04:59 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:04:59 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:04:59 plan: charge 6m3s starting at 2023-10-07 04:04:59 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:04:59 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:04:59 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:05:13 ----
[lp-1  ] DEBUG 2023/10/07 04:05:13 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:05:13 pv power: 0W
[site  ] DEBUG 2023/10/07 04:05:13 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:05:13 battery power: 0W
[site  ] DEBUG 2023/10/07 04:05:13 grid power: 11606W
[site  ] DEBUG 2023/10/07 04:05:13 site power: 11706W
[lp-1  ] DEBUG 2023/10/07 04:05:13 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:05:13 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:05:13 charge total import: 2035.208kWh
[lp-1  ] DEBUG 2023/10/07 04:05:13 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:05:13 soc estimated: 98.63% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:05:13 vehicle soc: 99%
[lp-1  ] DEBUG 2023/10/07 04:05:13 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:05:13 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:05:13 plan: charge 6m3s starting at 2023-10-07 04:05:14 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:05:13 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:05:13 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:05:28 ----
[lp-1  ] DEBUG 2023/10/07 04:05:28 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:05:28 pv power: 0W
[site  ] DEBUG 2023/10/07 04:05:28 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:05:28 battery power: 0W
[site  ] DEBUG 2023/10/07 04:05:28 grid power: 11569W
[site  ] DEBUG 2023/10/07 04:05:28 site power: 11669W
[lp-1  ] DEBUG 2023/10/07 04:05:28 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:05:28 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:05:28 charge total import: 2035.208kWh
[lp-1  ] DEBUG 2023/10/07 04:05:28 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:05:28 soc estimated: 99.81% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:05:28 vehicle soc: 100%
[lp-1  ] DEBUG 2023/10/07 04:05:28 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:05:28 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:05:28 plan: charge 51s starting at 2023-10-07 04:05:29 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:05:28 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:05:28 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:05:43 ----
[lp-1  ] DEBUG 2023/10/07 04:05:43 charge power: 11496W
[site  ] DEBUG 2023/10/07 04:05:43 pv power: 0W
[site  ] DEBUG 2023/10/07 04:05:43 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:05:43 battery power: 0W
[site  ] DEBUG 2023/10/07 04:05:43 grid power: 11587W
[site  ] DEBUG 2023/10/07 04:05:43 site power: 11687W
[lp-1  ] DEBUG 2023/10/07 04:05:43 charge currents: [15.9 16 16]A
[lp-1  ] DEBUG 2023/10/07 04:05:43 detected active phases: 3p
[lp-1  ] DEBUG 2023/10/07 04:05:43 charge total import: 2036.208kWh
[lp-1  ] DEBUG 2023/10/07 04:05:43 charger status: C
[lp-1  ] DEBUG 2023/10/07 04:05:43 soc estimated: 99.81% (vehicle: 98.00%)
[lp-1  ] DEBUG 2023/10/07 04:05:43 vehicle soc: 100%
[lp-1  ] DEBUG 2023/10/07 04:05:43 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:05:43 vehicle range: 485km
[lp-1  ] DEBUG 2023/10/07 04:05:43 plan: charge 51s starting at 2023-10-07 04:05:44 +0200 CEST until 2023-10-07 08:00:00 +0200 CEST (power: 22080W, avg cost: 268.000)
[lp-1  ] DEBUG 2023/10/07 04:05:43 !! scalePhasesIfAvailable: 3p -> 3p
[lp-1  ] DEBUG 2023/10/07 04:05:43 !! scalePhases: GetPhases 3p <> 3p wanted
[site  ] DEBUG 2023/10/07 04:05:58 ----
[lp-1  ] DEBUG 2023/10/07 04:05:58 charge power: 0W
[site  ] DEBUG 2023/10/07 04:05:58 pv power: 0W
[site  ] DEBUG 2023/10/07 04:05:58 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:05:58 battery power: 0W
[site  ] DEBUG 2023/10/07 04:05:58 grid power: 178W
[site  ] DEBUG 2023/10/07 04:05:58 site power: 278W
[lp-1  ] DEBUG 2023/10/07 04:05:58 charge currents: [0.008 0.009 0.009]A
[lp-1  ] DEBUG 2023/10/07 04:05:58 charge total import: 2036.208kWh
[lp-1  ] DEBUG 2023/10/07 04:05:58 charger status: B
[lp-1  ] INFO 2023/10/07 04:05:58 stop charging <-
[lp-1  ] DEBUG 2023/10/07 04:05:58 wake-up timer: start
[lp-1  ] DEBUG 2023/10/07 04:05:58 charge total import: 2036.208kWh
[lp-1  ] DEBUG 2023/10/07 04:06:01 vehicle status: B
[lp-1  ] DEBUG 2023/10/07 04:06:01 soc gradient updated: soc: 100.0%, socDiff: 51.0%, energyDiff: 43065Wh, energyPerSocStep: 844.4Wh, virtualCapacity: 84441Wh
[lp-1  ] DEBUG 2023/10/07 04:06:01 vehicle soc: 100%
[lp-1  ] DEBUG 2023/10/07 04:06:01 vehicle soc limit: 100%
[lp-1  ] DEBUG 2023/10/07 04:06:01 vehicle range: 494km
[lp-1  ] DEBUG 2023/10/07 04:06:01 available power -278W < 4140W min 3p threshold
[lp-1  ] DEBUG 2023/10/07 04:06:01 phase scale1p in 0s
[lp-1  ] DEBUG 2023/10/07 04:06:01 !! scalePhases: GetPhases 3p <> 1p wanted
[lp-1  ] DEBUG 2023/10/07 04:06:01 switched phases: 1p
[lp-1  ] DEBUG 2023/10/07 04:06:01 phase timer inactive
[lp-1  ] DEBUG 2023/10/07 04:06:01 pv charge current: 0A = 0A + -1.21A (278W @ 1p)
[lp-1  ] DEBUG 2023/10/07 04:06:01 site power 278W >= 0W disable threshold
[lp-1  ] DEBUG 2023/10/07 04:06:01 pv disable in 0s
[lp-1  ] DEBUG 2023/10/07 04:06:01 pv disable timer elapsed
[lp-1  ] DEBUG 2023/10/07 04:06:03 charger disable
[lp-1  ] DEBUG 2023/10/07 04:06:03 wake-up timer: stop
[site  ] DEBUG 2023/10/07 04:06:13 ----
[lp-1  ] DEBUG 2023/10/07 04:06:13 charge power: 0W
[site  ] DEBUG 2023/10/07 04:06:13 pv power: 0W
[site  ] DEBUG 2023/10/07 04:06:13 battery soc: 22%
[site  ] DEBUG 2023/10/07 04:06:13 battery power: 0W
[site  ] DEBUG 2023/10/07 04:06:13 grid power: 185W
[site  ] DEBUG 2023/10/07 04:06:13 site power: 285W
[lp-1  ] DEBUG 2023/10/07 04:06:13 charge currents: [0.008 0.009 0.009]A
[lp-1  ] DEBUG 2023/10/07 04:06:13 charge total import: 2036.208kWh
[lp-1  ] DEBUG 2023/10/07 04:06:13 charger status: B
[lp-1  ] DEBUG 2023/10/07 04:06:13 pv charge current: 0A = 0A + -1.24A (285W @ 1p)
[lp-1  ] DEBUG 2023/10/07 04:06:13 pv enable timer reset
[lp-1  ] DEBUG 2023/10/07 04:06:13 pv timer inactive

What type of operating system are you running?

Docker container

Version

the usual master + pending PRs frankenstein sigh

GrimmiMeloni avatar Oct 07 '23 05:10 GrimmiMeloni

@naltatis worauf triggert die Anzeige? Im Log ist der Plan weg wie erwartet?

andig avatar Oct 08 '23 08:10 andig

@GrimmiMeloni was sagt /api/state zu diesem Zeitpunkt?

andig avatar Oct 08 '23 08:10 andig

@GrimmiMeloni was sagt /api/state zu diesem Zeitpunkt?

Habe ich (leider) nicht geprüft. Ich habe das vollständige Log von gestern morgen weggesichert. Finde ich die Info ggf. dort?

GrimmiMeloni avatar Oct 08 '23 08:10 GrimmiMeloni

Dieses "Problem" hat auch weitere negative Seiteneffekte.. ich hatte heute Nacht eine Ladeplanung (Tibber-Preise) laufen und der Ziel-SOC (60%) wurde problemlos vor der eingestellten Abfahrtzeit erreicht.. Ich hatte heute morgen dann nochmal evcc neugestartet und der Ziel-SOC des Fahrzeuges wurde auf den in der evcc.yaml eingestellten 80% zurückgesetzt. Dies führte dazu, dass der Ladevorgang wieder direkt gestartet wurde, da die Abfahrtzeit noch nicht erreicht war und für die Ladeplanung ein neuer Ziel-SOC gesetzt wurde.

mdkeil avatar Oct 11 '23 06:10 mdkeil

Ein verwandtes Thema dazu habe ich auch:

Der Ziellade-Termin liegt in der Vergangenheit (hier heute 12:00 Uhr für einen zunächst eingestellten SoC von 60%). Es ist jetzt 14:00 Uhr und der SoC beträgt inzwischen 64%, da ich nach dem Ende des Zielladens (SoC 60%) den Schieber auf 65% gestellt habe. Es wird weiterhin der in der Vergangenheit liegende Abfahrts-Termin angezeigt. Erwartung: In der Vergangenheit liegende Ziellade-Termine sollte nicht angezeigt werden.

image

Ich verwende v.0.120.3 (kein nightly). Hier die API-Ausgabe für state:

	"result": {
		"auth": {
			"vehicles": {}
		},
		"batteryConfigured": false,
		"bufferSoc": 0,
		"bufferStartSoc": 0,
		"currency": "EUR",
		"greenShareHome": 0.7200398686679175,
		"greenShareLoadpoints": 0,
		"gridConfigured": true,
		"gridEnergy": 3181586.2,
		"gridPower": 191,
		"homePower": 682.24,
		"loadpoints": [
			{
				"chargeCurrent": 0,
				"chargeCurrents": [
					0,
					0,
					0
				],
				"chargeDuration": 8035000000000,
				"chargePower": 0,
				"chargeRemainingDuration": 0,
				"chargeRemainingEnergy": 629.5555555555613,
				"chargeTotalImport": 162.968,
				"chargeVoltages": [
					233.10000610351563,
					232.39999389648438,
					231.5
				],
				"chargedEnergy": 7673.999999999978,
				"chargerFeatureHeating": false,
				"chargerFeatureIntegratedDevice": false,
				"chargerIcon": null,
				"charging": false,
				"climaterActive": false,
				"connected": true,
				"connectedDuration": 0,
				"enabled": false,
				"guardAction": "inactive",
				"guardRemaining": 0,
				"maxCurrent": 16,
				"minCurrent": 6,
				"minSoc": 20,
				"mode": "pv",
				"phaseAction": "inactive",
				"phaseRemaining": 0,
				"phasesActive": 3,
				"phasesConfigured": null,
				"phasesEnabled": 3,
				"planActive": false,
				"planProjectedStart": "0001-01-01T00:00:00Z",
				"priority": 0,
				"pvAction": "inactive",
				"pvRemaining": 0,
				"sessionCo2PerKWh": 167.01361403090136,
				"sessionEnergy": 7673.999999999978,
				"sessionPrice": 2.8457985963814966,
				"sessionPricePerKWh": 0.37083640818106658,
				"sessionSolarPercentage": 1.215661113195097,
				"targetEnergy": 0,
				"targetSoc": 65,
				"targetTime": "2023-10-11T10:00:00Z",
				"title": "Wallbox",
				"vehicleCapacity": 77,
				"vehicleDetectionActive": false,
				"vehicleFeatureOffline": false,
				"vehicleIcon": "car",
				"vehicleOdometer": 861,
				"vehiclePresent": true,
				"vehicleRange": 294,
				"vehicleSoc": 64.26415584415584,
				"vehicleTargetSoc": 100,
				"vehicleTitle": "ID4"
			}
		],
		"prioritySoc": 0,
		"pv": [
			{
				"power": 491.24,
				"energy": 26.7457
			}
		],
		"pvConfigured": true,
		"pvEnergy": 26.7457,
		"pvPower": 491.24,
		"residualPower": -4100,
		"savingsAmount": 0.5611475602098968,
		"savingsEffectivePrice": 0.37187126496210695,
		"savingsGridCharged": 157.52750050310119,
		"savingsSelfConsumptionCharged": 1.4947990415820363,
		"savingsSelfConsumptionPercent": 0.9399933505313303,
		"savingsSince": "2023-09-20T10:38:06+02:00",
		"savingsTotalCharged": 159.02229954468323,
		"siteTitle": "Zuhause",
		"smartCostLimit": 145,
		"smartCostType": "co2",
		"sponsor": "All-Ex-U",
		"sponsorTokenExpires": 0,
		"tariffCo2": 163,
		"tariffCo2Home": 45.63350140712945,
		"tariffCo2Loadpoints": 163,
		"tariffFeedIn": 0,
		"tariffGrid": 0.3754,
		"tariffPriceHome": 0.10509703330206379,
		"tariffPriceLoadpoints": 0.3754,
		"vehicles": [
			"ID4"
		],
		"version": "0.120.3"
	}
}`

All-Ex-U avatar Oct 11 '23 11:10 All-Ex-U

Sollte in 0.121.1 behoben sein.

andig avatar Oct 16 '23 20:10 andig