gelegentlich fehlerhafte Initialisierung von tariff im UI
Nach einem Neustart von evcc zeigt sich seit kurzem danach folgendes Bild.
Der Preis sollte eigentlich CO2 anzeigen und anklickbar sein.
Im Log ist kein Fehler, keine Warnung.
evcc tariff zeigt keinen Fehler.
Nach einem erneuten Neustart ist meist wieder alles so, wie es sein sollte. Funktionale Einschränkung ist, dass das Fenster "smartes Netzladen" nicht erreichbar ist. Es ist nicht immer reproduzierbar.
api/state:
{
"result": {
"auth": {
"vehicles": {}
},
"aux": [
{
"power": 0
}
],
"auxPower": 0,
"battery": [
{
"power": -45.493626661485344,
"soc": 40,
"capacity": 7.5,
"controllable": false
}
],
"batteryCapacity": 7.5,
"batteryConfigured": true,
"batteryDischargeControl": false,
"batteryEnergy": 0,
"batteryMode": "unknown",
"batteryPower": -45.493626661485344,
"batterySoc": 40,
"bufferSoc": 100,
"bufferStartSoc": 0,
"currency": "EUR",
"greenShareHome": 0,
"greenShareLoadpoints": 0,
"gridConfigured": true,
"gridCurrents": [
0.93,
1.27,
1.15
],
"gridEnergy": 3856.2469999999994,
"gridPower": 593.4091721232999,
"gridPowers": [
171.84,
217.71,
207.22
],
"homePower": 547.9155454618145,
"loadpoints": [
{
"chargeCurrent": 0,
"chargeCurrents": [
0,
0,
0
],
"chargeDuration": 0,
"chargePower": 0,
"chargeRemainingEnergy": 24200,
"chargeTotalImport": 1343.7,
"chargeVoltages": [
232.6,
0,
0
],
"chargedEnergy": 0,
"chargerFeatureHeating": false,
"chargerFeatureIntegratedDevice": false,
"chargerIcon": null,
"charging": false,
"connected": true,
"connectedDuration": 0,
"disableThreshold": 800,
"effectiveLimitSoc": 100,
"effectiveMaxCurrent": 20,
"effectiveMinCurrent": 6,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 0,
"enableThreshold": -500,
"enabled": false,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 100,
"maxCurrent": 20,
"minCurrent": 6,
"mode": "pv",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planProjectedStart": "0001-01-01T00:00:00Z",
"planTime": "0001-01-01T00:00:00Z",
"priority": 0,
"pvAction": "inactive",
"pvRemaining": 0,
"sessionCo2PerKWh": null,
"sessionEnergy": 0,
"sessionPrice": null,
"sessionPricePerKWh": null,
"sessionSolarPercentage": 0,
"title": "Carport",
"vehicleCapacity": 72.6,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": false,
"vehicleIcon": "car",
"vehicleIdentity": "\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000",
"vehicleName": "auto",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 285,
"vehicleSoc": 70,
"vehicleTargetSoc": 100,
"vehicleTitle": "(T)Raumschiff"
},
{
"chargeCurrent": 0,
"chargeDuration": 0,
"chargePower": 0,
"chargeRemainingEnergy": 90.27777777777779,
"chargeTotalImport": 1.2533833333333335,
"chargedEnergy": 0,
"chargerFeatureHeating": false,
"chargerFeatureIntegratedDevice": true,
"chargerIcon": "bike",
"charging": false,
"connected": false,
"connectedDuration": 9223372036854776000,
"disableThreshold": 0,
"effectiveLimitSoc": 100,
"effectiveMaxCurrent": 0.75,
"effectiveMinCurrent": 0.75,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 5,
"enableThreshold": 0,
"enabled": false,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 0,
"maxCurrent": 0.75,
"minCurrent": 0.75,
"mode": "off",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planProjectedStart": "0001-01-01T00:00:00Z",
"planTime": "0001-01-01T00:00:00Z",
"priority": 5,
"pvAction": "inactive",
"pvRemaining": 0,
"sessionCo2PerKWh": null,
"sessionEnergy": 0,
"sessionPrice": null,
"sessionPricePerKWh": null,
"sessionSolarPercentage": 0,
"title": "Garage",
"vehicleCapacity": 0.625,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": false,
"vehicleIcon": "bike",
"vehicleName": "bike",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 0,
"vehicleSoc": 87,
"vehicleTargetSoc": 0,
"vehicleTitle": "E-Bikes"
},
{
"chargeCurrent": 0,
"chargeDuration": 0,
"chargePower": 0,
"chargeRemainingEnergy": 833.3333333333335,
"chargeTotalImport": 0,
"chargedEnergy": 0,
"chargerFeatureHeating": true,
"chargerFeatureIntegratedDevice": true,
"chargerIcon": "waterheater",
"charging": false,
"connected": false,
"connectedDuration": 9223372036854776000,
"disableThreshold": 0,
"effectiveLimitSoc": 60,
"effectiveMaxCurrent": 3,
"effectiveMinCurrent": 2,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 10,
"enableThreshold": 0,
"enabled": false,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 0,
"maxCurrent": 3,
"minCurrent": 2,
"mode": "off",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planProjectedStart": "0001-01-01T00:00:00Z",
"planTime": "0001-01-01T00:00:00Z",
"priority": 10,
"pvAction": "inactive",
"pvRemaining": 0,
"sessionCo2PerKWh": null,
"sessionEnergy": 0,
"sessionPrice": null,
"sessionPricePerKWh": null,
"sessionSolarPercentage": 0,
"title": "WP SG+",
"vehicleCapacity": 15,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": false,
"vehicleIcon": "waterheater",
"vehicleName": "WasserSG",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 0,
"vehicleSoc": 55,
"vehicleTargetSoc": 0,
"vehicleTitle": "WasserSG"
},
{
"chargeCurrent": 16,
"chargeDuration": 0,
"chargePower": 0,
"chargeRemainingEnergy": 6666.666666666668,
"chargeTotalImport": 938.9631999999999,
"chargedEnergy": 0,
"chargerFeatureHeating": true,
"chargerFeatureIntegratedDevice": true,
"chargerIcon": "generic",
"charging": false,
"connected": true,
"connectedDuration": 0,
"disableThreshold": 0,
"effectiveLimitSoc": 52,
"effectiveMaxCurrent": 16,
"effectiveMinCurrent": 6,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 0,
"enableThreshold": 0,
"enabled": true,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 52,
"maxCurrent": 16,
"minCurrent": 6,
"mode": "now",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planProjectedStart": "0001-01-01T00:00:00Z",
"planTime": "0001-01-01T00:00:00Z",
"priority": 0,
"pvAction": "inactive",
"pvRemaining": 0,
"sessionCo2PerKWh": null,
"sessionEnergy": 0,
"sessionPrice": null,
"sessionPricePerKWh": null,
"sessionSolarPercentage": 0,
"title": "WP -Anzeige-",
"vehicleCapacity": 0,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": false,
"vehicleIcon": "",
"vehicleName": "",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 0,
"vehicleSoc": 12,
"vehicleTargetSoc": 0,
"vehicleTitle": "WasserWP"
},
{
"chargeCurrent": 16,
"chargeDuration": 0,
"chargePower": 0,
"chargeTotalImport": 26.363466666666667,
"chargedEnergy": 0,
"chargerFeatureHeating": false,
"chargerFeatureIntegratedDevice": true,
"chargerIcon": "generic",
"charging": false,
"connected": true,
"connectedDuration": 0,
"disableThreshold": 0,
"effectiveLimitSoc": 100,
"effectiveMaxCurrent": 16,
"effectiveMinCurrent": 6,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 0,
"enableThreshold": 0,
"enabled": true,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 0,
"maxCurrent": 16,
"minCurrent": 6,
"mode": "now",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planProjectedStart": "0001-01-01T00:00:00Z",
"planTime": "0001-01-01T00:00:00Z",
"priority": 0,
"pvAction": "inactive",
"pvRemaining": 0,
"sessionCo2PerKWh": null,
"sessionEnergy": 0,
"sessionPrice": null,
"sessionPricePerKWh": null,
"sessionSolarPercentage": 0,
"title": "Waschen -Anzeige-",
"vehicleCapacity": 0,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": true,
"vehicleIcon": "generic",
"vehicleName": "Waschen",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 0,
"vehicleSoc": 0,
"vehicleTargetSoc": 0,
"vehicleTitle": "Waschmaschine"
},
{
"chargeCurrent": 6,
"chargePower": 0,
"chargerFeatureHeating": false,
"chargerFeatureIntegratedDevice": true,
"chargerIcon": "generic",
"disableThreshold": 0,
"effectiveLimitSoc": 100,
"effectiveMaxCurrent": 16,
"effectiveMinCurrent": 6,
"effectivePlanSoc": 0,
"effectivePlanTime": "0001-01-01T00:00:00Z",
"effectivePriority": 0,
"enableThreshold": 0,
"guardAction": "inactive",
"guardRemaining": 0,
"limitEnergy": 0,
"limitSoc": 0,
"maxCurrent": 16,
"minCurrent": 6,
"mode": "now",
"phaseAction": "inactive",
"phaseRemaining": 0,
"phasesActive": 1,
"phasesConfigured": null,
"phasesEnabled": 1,
"planEnergy": 0,
"planTime": "0001-01-01T00:00:00Z",
"priority": 0,
"pvAction": "inactive",
"pvRemaining": 0,
"title": "Trocknen -Anzeige-",
"vehicleCapacity": 0,
"vehicleClimaterActive": null,
"vehicleDetectionActive": false,
"vehicleFeatureOffline": true,
"vehicleIcon": "generic",
"vehicleName": "Trocknen",
"vehicleOdometer": 0,
"vehiclePresent": true,
"vehicleRange": 0,
"vehicleSoc": 0,
"vehicleTargetSoc": 0,
"vehicleTitle": "Trockner"
}
],
"prioritySoc": 0,
"pv": [
{
"power": 0,
"energy": 38368.200000000004
}
],
"pvConfigured": true,
"pvEnergy": 38368.200000000004,
"pvPower": 0,
"residualPower": -200,
"siteTitle": "Haus",
"smartCostActive": false,
"smartCostLimit": 0,
"smartCostType": null,
"sponsor": "VolkerK62",
"sponsorTokenExpires": 0,
"statistics": {
"30d": {
"avgCo2": 45.259983993306015,
"avgPrice": 0.278017681442767,
"chargedKWh": 137.3862000000005,
"solarPercentage": 31.178078801040375
},
"365d": {
"avgCo2": 28.11997473952276,
"avgPrice": 0.17997358200377156,
"chargedKWh": 1044.5599227215444,
"solarPercentage": 72.85451879742047
},
"total": {
"avgCo2": 28.11997473952276,
"avgPrice": 0.17997358200377156,
"chargedKWh": 1044.5599227215444,
"solarPercentage": 72.85451879742047
}
},
"tariffCo2": 57,
"tariffCo2Home": 57,
"tariffCo2Loadpoints": 57,
"tariffFeedIn": 0.1095,
"tariffGrid": 0.354,
"tariffPriceHome": 0.354,
"tariffPriceLoadpoints": 0.354,
"vehicles": {
"Trocknen": {
"title": "Trockner"
},
"Waschen": {
"title": "Waschmaschine"
},
"WasserSG": {
"title": "WasserSG",
"limitSoc": 60
},
"WasserWP": {
"title": "WasserWP"
},
"auto": {
"title": "(T)Raumschiff",
"limitSoc": 100
},
"bike": {
"title": "E-Bikes",
"minSoc": 87,
"limitSoc": 100
},
"offline": {
"title": "ohne Bluelink"
}
},
"version": "0.123.2 (170e2cad)"
}
}
Ich bin damit wohl nicht alleine https://github.com/evcc-io/evcc/discussions/10978#discussioncomment-7974494
Kann ich bestätigen.. hatte ich heute auch einmal.. bin dann auf die nightly gewechselt und smartes Laden war wieder verfügbar. (Also die Auswahl des kWh-Preises) Denke ein Neustart hätte auch gereicht.
Hatte ich heute morgen auch, Neustart hat es dann behoben.
Hier sieht es etwas anders aus. Ich habe die Anzeige mit Preis bzw. CO2-Wert beim Netzbezug gar nicht (mehr), nicht die fehlende Verlinkung. Was sind die Voraussetzungen dafür, dass da etwas angezeigt wird?
Fehler gefunden: es stand grünstromindex mit planner: statt co2: drin.
Der Dialog hängt vom smartCostType ab. Die publishen den an zwei Stellen:
https://github.com/evcc-io/evcc/blob/master/core/site.go#L830
https://github.com/evcc-io/evcc/blob/master/core/site.go#L833
Der Wert muss co2, dynamicprice oder priceforecast sein, damit wir den Dialog anbieten (siehe hier). Hier scheint dann beim Publishen etwas schief zu laufen.
@VolkerK62 bei dir sieht man auch, dass smartCostType: null ist. Verstehe noch nicht ganz wann/wie das passieren kann.
\cc @andig
@naltatis
dass
smartCostLimit: nullist.
du meinst bestimmt smartCostType: null (nicht Limit)
Wir raten schon wieder. Gibts eine Config dazu? Sonst würde ich zu machen… PS.: hab das json lesbar formatiert (jsonlint.com)
Config, bitte schön ;-)
Konfiguration (/etc/evcc.yaml):
network:
schema: http
host: evcc.local
port: 7070
interval: 5s
sponsortoken: *****
telemetry: true
log: debug
levels:
#site: trace
#lp-1: info
#lp-2: info
#lp-3: info
#lp-4: info
#daheimladen-mb: trace
#hyundai: trace
#main: trace
#cache: trace
#db: trace
#http: trace
#influx: trace
#mqtt: trace
#proxy-5200: trace
#gsi: trace
########################################################################
meters:
- name: grid
type: movingaverage
decay: 0.33
meter:
type: template
template: shelly-3em
usage: grid
host: 192.168.178.28
- name: pv
type: movingaverage
decay: 0.33
meter:
type: template
template: solarlog
usage: pv
host: 192.168.178.23
port: 502
- name: battery
type: movingaverage
decay: 0.33
meter:
type: custom
power:
##Shelly EM Stromzange 2
source: http
uri: http://192.168.178.21/emeter/1
jq: if .pf==0 then .power else .power / (.pf | fabs) end
soc:
source: mqtt
topic: Haus/Bat_SoC
timeout: 60m
capacity: 7.5
- name: WP_pwr
type: template
template: shelly-1pm
##Shelly EM Stromzange 1
usage: charge
host: 192.168.178.21
channel: 0
- name: aux
type: custom
power:
source: mqtt
topic: Haus/aux_pwr
timeout: 25h
########################################################################
chargers:
- name: wallbox
type: template
template: daheimladen-mb
##modbusproxy (localhost: 5200)
##direkt (192.168.178.26: 502)
host: localhost
port: 5200
- name: E-Bikes
type: template
template: shelly
##Shelly Plug-S in Garage
host: 192.168.178.83
standbypower: 10
integrateddevice: true
icon: bike
- name: WP_autark
type: template
template: shelly
##Shelly EM für Fake-Kontakt
host: 192.168.178.21
channel: 0
standbypower: 10
integrateddevice: true
heating: true
icon: generic
- name: WP_SG
type: template
template: shelly
##Shelly 1 für SG-Kontakt
host: 192.168.178.29
standbypower: -1
integrateddevice: true
heating: true
icon: waterheater
- name: Waschen
type: template
template: shelly
host: 192.168.178.72
standbypower: 1
integrateddevice: true
icon: generic
- name: Trocknen
type: template
template: shelly
host: 192.168.178.71
standbypower: 1
integrateddevice: true
icon: generic
#######################################################################
vehicles:
- name: auto
type: template
template: hyundai
title: (T)Raumschiff
icon: car
user: *****
password: *****
language: de
capacity: 72.6
phases: 3
mode: pv
- name: offline
type: template
template: offline
title: ohne Bluelink
icon: car
capacity: 72.6
mode: off
- name: bike
type: custom
title: E-Bikes
icon: bike
capacity: 0.625
phases: 1
soc:
source: mqtt
topic: evcc/vehicles/bike/minSoc
timeout: 2500h
- name: WasserWP
type: custom
title: WasserWP
icon: generic
capacity: 15 #300 Liter von 15 auf 60 Grad * 1,16Wh = 15 kWh
phases: 1
soc:
source: mqtt
topic: Haus/Temp_out2
timeout: 60m
- name: WasserSG
type: custom
title: WasserSG
icon: waterheater
capacity: 15 #300 Liter von 15 auf 60 Grad * 1,16Wh = 15 kWh
phases: 1
soc:
source: mqtt
topic: Haus/Wasser
timeout: 60m
- name: Waschen
type: template
template: offline
title: Waschmaschine
icon: generic
- name: Trocknen
type: template
template: offline
title: Trockner
icon: generic
#########################################################################
loadpoints:
- title: Carport
charger: wallbox
mode: off
phases: 1
mincurrent: 6
maxcurrent: 20
priority: 0
soc:
estimate: true
poll:
mode: always
interval: 300m
# enable:
# threshold: 0
# delay: 1m
# disable:
# threshold: 0
# delay: 3m
# guardduration: 5m
- title: Garage
charger: E-Bikes
vehicle: bike
phases: 1
mincurrent: 0.75
maxcurrent: 0.75
priority: 5
soc:
estimate: true
enable:
delay: 30s
disable:
delay: 5m
guardduration: 5m
- title: WP SG+
charger: WP_SG
vehicle: WasserSG
phases: 1
mincurrent: 2
maxcurrent: 3
priority: 10
soc:
estimate: false
enable:
threshold: 0
delay: 2m
disable:
threshold: 0
delay: 10m
guardduration: 30m
- title: WP -Anzeige- # zur Erfassung des Gesamtverbrauch
charger: WP_autark
meter: WP_pwr
vehicle: WasserWP
phases: 1
soc:
estimate: false
- title: Waschen -Anzeige-
charger: Waschen
vehicle: Waschen
phases: 1
- title: Trocknen -Anzeige-
charger: Trocknen
vehicle: Trocknen
phases: 1
########################################################################
site:
- title: Haus
meters:
grid: grid
pv: pv
battery: battery
aux: aux
residualpower: 100
########################################################################
tariffs:
currency: EUR
grid:
type: custom #fixed #custom
price: #0.354 # Preis je kWh Bezug
source: mqtt
topic: Haus/Preis_Bezug
timeout: 25h #9600h # 400 Tage
feedin:
type: fixed
price: 0.1095 # Preis je kWh Einspeisung
co2:
type: grünstromindex
zip: 68766
#######################################################################
messaging:
services:
- type: ntfy
uri: https://ntfy.sh/***
events:
start:
title: Start {{.title}}
msg: |
{{ if eq .title "Carport" }} Start um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
{{ if eq .title "Garage" }} Start um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
{{ if eq .title "WP -Anzeige-" }} Start um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
stop:
title: Stop {{.title}}
msg: |
{{ if eq .title "Carport" }} Stop um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
{{ if eq .title "Garage" }} Stop um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
{{ if eq .title "WP -Anzeige-" }} Stop um {{printf `(%02d:%02d)` now.Hour now.Minute}} {{- end }}
######################################################################
influx:
url: http://localhost:8086
database: evcc
mqtt:
broker: localhost:1883
topic: evcc
modbusproxy:
- port: 5200
uri: 192.168.178.26:502
#####################################################################
Version: `0.123.2 (170e2cad)`
Hab mir heute vormittag das Nightly geholt. Ich sags ja nur ungern, aber das oben beschriebene Verhalten besteht weiterhin. Es ist nicht sooooo tragisch, weil es nach dem zweiten Neustart bisher immer wieder ok war.
Ich sags ja nur ungern, aber das oben beschriebene Verhalten besteht weiterhin.
Schade :}
...das ist ja super nervig. Irgendeine race condition, aber was raced da?
@VolkerK62 kann ich irgendwie auf Deine Installation drauf und da ein bisschen was am Code für mehr Logging verändern? SSH?
I've similar problem @andig I can arrange ssh access to check it.
@VolkerK62 @bilbolodz please take a look at your logfile in case of error: is there any log line like
failed configuring co2 tariff
Hab es gerade nochmal ausprobiert. Neustart, danach war kein co2 verfügbar Ein paar Minuten später nochmal Neustart und co2 war wieder da Im Log kann ich nichts auffälliges entdecken. start.log
@andig Ich hatte doch vor kurzem dieses "outdated" Problem bei tariff (da haben wir am 23.12. auf Slack geschrieben). Dann hast du irgendetwas eingebaut. Gefühlt tritt es seitdem auf.
Der Fehler scheint am co2 Tarif zu hängen, also GSI. Ich würde raten, dass die Initialisierung nicht klappt, evcc dann aber wunschgemäß weiter macht anstatt auf die Nase zu fallen. Das würde ich dann aber im Log als ERROR erwarten. Ich finde leider keinen Weg, das zu reproduzieren :/
@andig no errors in log file. I'm not using CO2 tarrif
@VolkerK62 setz doch mal bitte gsi auf trace, dann nochmal ein Log vom Fehler.