You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
EVCC adapter stops (yellow) with error "undefined is not a valid state value" after it has identified a vehicle in the config.
The error probably occurs, because the connection to the car is currently broken and no current values can be retrieved.
But evcc is working and running without error. In case car connection is offline, it just takes the latest states it received from the car.
vehicles template mg2mqtt is used with config like this:
Expected behavior
The adapter should treat this as a warning only and should continue reading the charger values. That would allow to still control evcc via iobroker even if the car SOC is not the latest state.
Screenshots & Logfiles 2024-01-21 18:15:30.715 - �[34mdebug�[39m: evcc.0 (1947309) call: http://192.168.0.155:7070/api/state 2024-01-21 18:15:30.723 - �[34mdebug�[39m: evcc.0 (1947309) Get-Data from evcc:{"result":{"auth":{"vehicles":{}},"availableVersion":"0.123.9","battery":[{"power":-10,"soc":23.932268458216218,"capacity":14.587}],"batteryCapacity":14.587,"batteryConfigured":true,"batteryDischargeControl":false,"batteryEnergy":0,"batteryMode":1,"batteryPower":-10,"batterySoc":23.932268458216218,"bufferSoc":70,"bufferStartSoc":85,"currency":"EUR","greenShareHome":0,"greenShareLoadpoints":0,"gridConfigured":true,"gridPower":1272,"homePower":1262,"loadpoints":[{"chargeCurrent":0,"chargeCurrents":[0.008999999612569809,0.00800000037997961,0.008999999612569809],"chargeDuration":499000000000,"chargePower":0,"chargeRemainingDuration":0,"chargeRemainingEnergy":36464.3461111111,"chargeTotalImport":293.9348605555555,"chargedEnergy":410.09833333333745,"chargerFeatureHeating":false,"chargerFeatureIntegratedDevice":false,"chargerIcon":null,"charging":false,"climaterActive":false,"connected":true,"connectedDuration":0,"disableThreshold":0,"enableThreshold":0,"enabled":false,"guardAction":"inactive","guardRemaining":0,"maxCurrent":16,"minCurrent":6,"minSoc":0,"mode":"pv","phaseAction":"inactive","phaseRemaining":0,"phasesActive":1,"phasesConfigured":0,"phasesEnabled":0,"planActive":false,"planProjectedStart":"0001-01-01T00:00:00Z","priority":0,"pvAction":"inactive","pvRemaining":0,"sessionCo2PerKWh":null,"sessionEnergy":410.09833333333745,"sessionPrice":0.07254490775989088,"sessionPricePerKWh":0.17689637304847247,"sessionSolarPercentage":55.44771218381573,"targetEnergy":65,"targetSoc":90,"title":"Garage","vehicleCapacity":77,"vehicleDetectionActive":false,"vehicleFeatureOffline":false,"vehicleIcon":"car","vehicleOdometer":2109,"vehiclePresent":true,"vehicleRange":160,"vehicleSoc":47.379335714285716,"vehicleTargetSoc":0,"vehicleTitle":"MG4"}],"prioritySoc":20,"pv":[{"power":-3,"energy":350.7066875}],"pvConfigured":true,"pvEnergy":350.7066875,"pvPower":0,"residualPower":0,"siteTitle":"xxxx","smartCostActive":false,"smartCostLimit":0,"smartCostType":"co2","sponsor":"xxx","sponsorTokenExpires":0,"statistics":{"30d":{"avgCo2":0,"avgPrice":0.15773218157409705,"chargedKWh":45.53744472222226,"solarPercentage":64.44498517648029},"365d":{"avgCo2":0,"avgPrice":0.19510850391426574,"chargedKWh":103.67382172232729,"solarPercentage":46.897416002692154},"total":{"avgCo2":0,"avgPrice":0.19510850391426574,"chargedKWh":103.67382172232729,"solarPercentage":46.897416002692154}},"tariffFeedIn":0.082,"tariffGrid":0.295,"tariffPriceHome":0.295,"tariffPriceLoadpoints":0.295,"vehicles":["MG4"],"version":"0.122.1"}} 2024-01-21 18:15:30.723 - �[34mdebug�[39m: evcc.0 (1947309) Ladepunkt mit index loadpoint.1 gefunden... 2024-01-21 18:15:30.724 - �[34mdebug�[39m: evcc.0 (1947309) **Vehicle mit index 0 gefunden...** 2024-01-21 18:15:30.759 - �[31merror�[39m: evcc.0 (1947309) **_undefined is not a valid state value_** 2024-01-21 18:15:30.765 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.maxCurrent/evcc.0.loadpoint.1.control.maxCurrent:{"val":16,"ack":true,"ts":1705857330744,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961813} 2024-01-21 18:15:30.888 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.minCurrent/evcc.0.loadpoint.1.control.minCurrent:{"val":6,"ack":true,"ts":1705857330875,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961822} 2024-01-21 18:15:31.008 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.disableThreshold/evcc.0.loadpoint.1.control.disableThreshold:{"val":0,"ack":true,"ts":1705857331004,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961829} 2024-01-21 18:15:31.026 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.enableThreshold/evcc.0.loadpoint.1.control.enableThreshold:{"val":0,"ack":true,"ts":1705857331020,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961839} 2024-01-21 18:15:31.063 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.phasesConfigured/evcc.0.loadpoint.1.control.phasesConfigured:{"val":0,"ack":true,"ts":1705857331058,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961847} 2024-01-21 18:15:31.115 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.limitSoc/evcc.0.loadpoint.1.control.limitSoc:{"val":null,"ack":true,"ts":1705857331112,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961854} 2024-01-21 18:15:31.172 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.vehicleName/evcc.0.loadpoint.1.control.vehicleName:{"val":"mg4","ack":true,"ts":1705857331168,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705248300966} 2024-01-21 18:15:31.395 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.control.bufferSoc/evcc.0.control.bufferSoc:{"val":70,"ack":true,"ts":1705857331391,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961900} 2024-01-21 18:15:31.452 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.control.bufferStartSoc/evcc.0.control.bufferStartSoc:{"val":85,"ack":true,"ts":1705857331442,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961929}
Versions:
Adapter version: 0.1.1
JS-Controller version: 5.0.16
Node version: 18.17.0
Operating system: debian 11 bullseye
The text was updated successfully, but these errors were encountered:
Describe the bug
EVCC adapter stops (yellow) with error "undefined is not a valid state value" after it has identified a vehicle in the config.
The error probably occurs, because the connection to the car is currently broken and no current values can be retrieved.
But evcc is working and running without error. In case car connection is offline, it just takes the latest states it received from the car.
vehicles template mg2mqtt is used with config like this:
`vehicles:
template: mg2mqtt
title: MG4
user: [email protected]
vin: xxxxxxxxxxx
capacity: 77
timeout: 1h
name: mg4 `
Expected behavior
The adapter should treat this as a warning only and should continue reading the charger values. That would allow to still control evcc via iobroker even if the car SOC is not the latest state.
Screenshots & Logfiles
2024-01-21 18:15:30.715 - �[34mdebug�[39m: evcc.0 (1947309) call: http://192.168.0.155:7070/api/state 2024-01-21 18:15:30.723 - �[34mdebug�[39m: evcc.0 (1947309) Get-Data from evcc:{"result":{"auth":{"vehicles":{}},"availableVersion":"0.123.9","battery":[{"power":-10,"soc":23.932268458216218,"capacity":14.587}],"batteryCapacity":14.587,"batteryConfigured":true,"batteryDischargeControl":false,"batteryEnergy":0,"batteryMode":1,"batteryPower":-10,"batterySoc":23.932268458216218,"bufferSoc":70,"bufferStartSoc":85,"currency":"EUR","greenShareHome":0,"greenShareLoadpoints":0,"gridConfigured":true,"gridPower":1272,"homePower":1262,"loadpoints":[{"chargeCurrent":0,"chargeCurrents":[0.008999999612569809,0.00800000037997961,0.008999999612569809],"chargeDuration":499000000000,"chargePower":0,"chargeRemainingDuration":0,"chargeRemainingEnergy":36464.3461111111,"chargeTotalImport":293.9348605555555,"chargedEnergy":410.09833333333745,"chargerFeatureHeating":false,"chargerFeatureIntegratedDevice":false,"chargerIcon":null,"charging":false,"climaterActive":false,"connected":true,"connectedDuration":0,"disableThreshold":0,"enableThreshold":0,"enabled":false,"guardAction":"inactive","guardRemaining":0,"maxCurrent":16,"minCurrent":6,"minSoc":0,"mode":"pv","phaseAction":"inactive","phaseRemaining":0,"phasesActive":1,"phasesConfigured":0,"phasesEnabled":0,"planActive":false,"planProjectedStart":"0001-01-01T00:00:00Z","priority":0,"pvAction":"inactive","pvRemaining":0,"sessionCo2PerKWh":null,"sessionEnergy":410.09833333333745,"sessionPrice":0.07254490775989088,"sessionPricePerKWh":0.17689637304847247,"sessionSolarPercentage":55.44771218381573,"targetEnergy":65,"targetSoc":90,"title":"Garage","vehicleCapacity":77,"vehicleDetectionActive":false,"vehicleFeatureOffline":false,"vehicleIcon":"car","vehicleOdometer":2109,"vehiclePresent":true,"vehicleRange":160,"vehicleSoc":47.379335714285716,"vehicleTargetSoc":0,"vehicleTitle":"MG4"}],"prioritySoc":20,"pv":[{"power":-3,"energy":350.7066875}],"pvConfigured":true,"pvEnergy":350.7066875,"pvPower":0,"residualPower":0,"siteTitle":"xxxx","smartCostActive":false,"smartCostLimit":0,"smartCostType":"co2","sponsor":"xxx","sponsorTokenExpires":0,"statistics":{"30d":{"avgCo2":0,"avgPrice":0.15773218157409705,"chargedKWh":45.53744472222226,"solarPercentage":64.44498517648029},"365d":{"avgCo2":0,"avgPrice":0.19510850391426574,"chargedKWh":103.67382172232729,"solarPercentage":46.897416002692154},"total":{"avgCo2":0,"avgPrice":0.19510850391426574,"chargedKWh":103.67382172232729,"solarPercentage":46.897416002692154}},"tariffFeedIn":0.082,"tariffGrid":0.295,"tariffPriceHome":0.295,"tariffPriceLoadpoints":0.295,"vehicles":["MG4"],"version":"0.122.1"}} 2024-01-21 18:15:30.723 - �[34mdebug�[39m: evcc.0 (1947309) Ladepunkt mit index loadpoint.1 gefunden... 2024-01-21 18:15:30.724 - �[34mdebug�[39m: evcc.0 (1947309) **Vehicle mit index 0 gefunden...** 2024-01-21 18:15:30.759 - �[31merror�[39m: evcc.0 (1947309) **_undefined is not a valid state value_** 2024-01-21 18:15:30.765 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.maxCurrent/evcc.0.loadpoint.1.control.maxCurrent:{"val":16,"ack":true,"ts":1705857330744,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961813} 2024-01-21 18:15:30.888 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.minCurrent/evcc.0.loadpoint.1.control.minCurrent:{"val":6,"ack":true,"ts":1705857330875,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961822} 2024-01-21 18:15:31.008 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.disableThreshold/evcc.0.loadpoint.1.control.disableThreshold:{"val":0,"ack":true,"ts":1705857331004,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961829} 2024-01-21 18:15:31.026 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.enableThreshold/evcc.0.loadpoint.1.control.enableThreshold:{"val":0,"ack":true,"ts":1705857331020,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961839} 2024-01-21 18:15:31.063 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.phasesConfigured/evcc.0.loadpoint.1.control.phasesConfigured:{"val":0,"ack":true,"ts":1705857331058,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961847} 2024-01-21 18:15:31.115 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.limitSoc/evcc.0.loadpoint.1.control.limitSoc:{"val":null,"ack":true,"ts":1705857331112,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961854} 2024-01-21 18:15:31.172 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.loadpoint.1.control.vehicleName/evcc.0.loadpoint.1.control.vehicleName:{"val":"mg4","ack":true,"ts":1705857331168,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705248300966} 2024-01-21 18:15:31.395 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.control.bufferSoc/evcc.0.control.bufferSoc:{"val":70,"ack":true,"ts":1705857331391,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961900} 2024-01-21 18:15:31.452 - �[35msilly�[39m: evcc.0 (1947309) States user redis pmessage evcc.0.control.bufferStartSoc/evcc.0.control.bufferStartSoc:{"val":85,"ack":true,"ts":1705857331442,"q":0,"from":"system.adapter.evcc.0","user":"system.user.admin","lc":1705247961929}
Versions:
The text was updated successfully, but these errors were encountered: