Repository: evcc-io/evcc
Pull request #2258 (2022-01-10 18:31:40)

Ignore phases configuration when charger is switchable
Fix https://github.com/evcc-io/evcc/issues/2230

bacanol: Hallo @andig,

habe es gerade ausprobiert, er fängt direkt an 3-phasig auf lp-1 zu laden, ohne Sonne:
```
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:53 set charge mode: pv
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:53 set target soc: 80
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleRange: 0
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleOdometer: 0
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 title: Carport Rechts
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 minCurrent: 6
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 maxCurrent: 16
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 phases: 1
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 activePhases: 1
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 hasVehicle: true
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53 vehicle updated: unknown -> zoe
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 mode: pv
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 targetSoC: 80
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 minSoC: 50
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:12:53 set charge mode: pv
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:12:53 set target soc: 80
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehiclePresent: true
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleTitle: zoe
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleCapacity: 52
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleRange: 0
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 vehicleOdometer: 0
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] INFO 2022/01/11 11:12:53 site config:
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] INFO 2022/01/11 11:12:53   meters:    grid ✓ pv ✓ battery ✗
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] INFO 2022/01/11 11:12:53     grid:    power ✓ energy ✗ currents ✗
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] INFO 2022/01/11 11:12:53     pv 0:    power ✓ energy ✗ currents ✗
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 siteTitle: bacanolHome
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 gridConfigured: true
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 pvConfigured: true
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 batteryConfigured: false
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53 loadpoint 1:
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53   mode:      pv
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53   charger:   power ✓ energy ✓ currents ✓ timer ✗
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53   meters:    charge ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53     charge:  power ✓ energy ✓ currents ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53   vehicles:  ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:12:53     car 0:   range ✓ finish ✓ status ✓ climate ✗
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53 loadpoint 2:
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53   mode:      pv
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53   charger:   power ✓ energy ✗ currents ✓ timer ✗
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53   meters:    charge ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53     charge:  power ✓ energy ✗ currents ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53   vehicles:  ✓
Jan 11 11:12:53 evcc evcc[1294243]: [lp-2  ] INFO 2022/01/11 11:12:53     car 0:   range ✓ finish ✓ status ✓ climate ✓
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeConfigured: true
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeConfigured: true
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:12:53 ----
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:12:53 pv power: 576W
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 pvPower: 575.8
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:12:53 grid power: 133W
Jan 11 11:12:53 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:12:53 site power: 233W
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 gridPower: 133.2
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 mode: pv
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:53 charge power: 0W
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargePower: 0
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:53 charge currents: [0 0 0]A
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeCurrents: [0 0 0]
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeCurrent: 0
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargedEnergy: 50.74328
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeDuration: 0s
Jan 11 11:12:53 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:53 charger status: B
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 connectedDuration: 0s
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 chargeCurrent: 0
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 connected: true
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 charging: false
Jan 11 11:12:53 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:53 enabled: false
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] ERROR 2022/01/11 11:12:56 vehicle soc: 405 Method Not Allowed
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 pv action: inactive
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 phases: 3
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 pvAction: inactive
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 pvRemaining: 0s
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 max charge current: 16A
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 chargeCurrent: 0
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 charger enable
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 pv action: inactive
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 chargeCurrent: 16
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 pvAction: inactive
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 pvRemaining: 0s
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 charge power: 0W
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 chargePower: 0
Jan 11 11:12:56 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:12:56 charge currents: [0 0 0]A
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 homePower: 709
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 tariffGrid: 0.2253
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 tariffFeedIn: 0.1935
Jan 11 11:12:56 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:12:56 chargeCurrents: [0 0 0]
Jan 11 11:13:03 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:03 ----
Jan 11 11:13:03 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:03 pv power: 561W
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 pvPower: 561.47
Jan 11 11:13:03 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:03 grid power: 122W
Jan 11 11:13:03 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:03 site power: 222W
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 gridPower: 122.29
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 mode: pv
Jan 11 11:13:03 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:03 charge power: 0W
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargePower: 0
Jan 11 11:13:03 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:03 charge currents: [0 0 0]A
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargeCurrents: [0 0 0]
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargeCurrent: 0
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargedEnergy: 1067.5833333333333
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargeDuration: 0s
Jan 11 11:13:03 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:03 charger status: B
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 connectedDuration: 0s
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 chargeCurrent: 0
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 connected: true
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 charging: false
Jan 11 11:13:03 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:03 enabled: false
Jan 11 11:13:04 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:04 vehicle status: B
Jan 11 11:13:04 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:04 vehicle soc: 50%
Jan 11 11:13:04 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:04 vehicle range: 128km
Jan 11 11:13:04 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:04 vehicleSoC: 50
Jan 11 11:13:04 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:04 chargeRemainingDuration: -1ns
Jan 11 11:13:04 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:04 chargeRemainingEnergy: 17333.333333333332
Jan 11 11:13:04 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:04 vehicleRange: 128
Jan 11 11:13:04 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:04 vehicle odometer: 5594km
Jan 11 11:13:04 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:04 vehicleOdometer: 5594.02
Jan 11 11:13:04 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:04 max charge current: 0A = 0A + -0.966A (222W @ 1p)
Jan 11 11:13:05 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:05 climater active: false, target temp: 20.0°C, outside temp: 0.0°C
Jan 11 11:13:05 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:05 climater: off
Jan 11 11:13:05 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:05 charge power: 0W
Jan 11 11:13:05 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:05 chargePower: 0
Jan 11 11:13:05 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:05 charge currents: [0 0 0]A
Jan 11 11:13:05 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:05 homePower: 683.76
Jan 11 11:13:05 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:05 chargeCurrents: [0 0 0]
Jan 11 11:13:13 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:13 ----
Jan 11 11:13:13 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:13 pv power: 577W
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 pvPower: 577.2700000000001
Jan 11 11:13:13 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:13 grid power: 482W
Jan 11 11:13:13 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:13 site power: 582W
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 gridPower: 482.15
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 mode: pv
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 charge power: 630W
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargePower: 630
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 charge currents: [2.6 1.2 1.2]A
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargeCurrents: [2.6 1.2 1.2]
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargeCurrent: 16
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargedEnergy: 51.27503
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargeDuration: 0s
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 charger status: C
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:13:13 start charging ->
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargeCurrent: 16
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 connected: true
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 charging: true
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 enabled: true
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] ERROR 2022/01/11 11:13:13 vehicle soc: 405 Method Not Allowed
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 pvAction: inactive
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 pvRemaining: 0s
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 pv action: inactive
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 charge power: 630W
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargePower: 630
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 charge currents: [2.6 1.2 1.2]A
Jan 11 11:13:13 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:13 detected phases: 3p [2.6 1.2 1.2]A
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 chargeCurrents: [2.6 1.2 1.2]
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 activePhases: 3
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 homePower: 429.4200000000001
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsTotalCharged: 0.0014527039890999999
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsGridCharged: 0.0006611364976539662
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsSelfConsumptionCharged: 0.0007915674914460337
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsSelfConsumptionPercent: 54.48924883426781
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsEffectivePrice: 0.20797241887070286
Jan 11 11:13:13 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:13 savingsAmount: 2.5171846227983865e-05
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 ----
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 pv power: 573W
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 pvPower: 572.64
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 grid power: 7233W
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 site power: 7333W
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 gridPower: 7232.86
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 mode: pv
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 charge power: 0W
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargePower: 0
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 charge currents: [0 0 0]A
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargeCurrents: [0 0 0]
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargeCurrent: 0
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargedEnergy: 1067.5833333333333
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargeDuration: 0s
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 charger status: B
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 connected: true
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 charging: false
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 enabled: false
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 next soc poll remaining time: 59m40s
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 max charge current: 0A = 0A + -31.9A (7333W @ 1p)
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 climater active: false, target temp: 20.0°C, outside temp: 0.0°C
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 climater: off
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 charge power: 0W
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargePower: 0
Jan 11 11:13:23 evcc evcc[1294243]: [lp-2  ] DEBUG 2022/01/11 11:13:23 charge currents: [0 0 0]A
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 homePower: 7175.5
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsTotalCharged: 0.0031684261454999994
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsGridCharged: 0.0022509870076967953
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 chargeCurrents: [0 0 0]
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsSelfConsumptionCharged: 0.0009174391378032043
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsSelfConsumptionPercent: 28.955673753235807
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsEffectivePrice: 0.21609209574647104
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 savingsAmount: 2.9174564582141894e-05
Jan 11 11:13:23 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:23 set charge mode: off
Jan 11 11:13:23 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:23 pv action: inactive
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 ----
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 mode: off
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 pvAction: inactive
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 pvRemaining: 0s
Jan 11 11:13:23 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:23 pv power: 573W
Jan 11 11:13:23 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:23 pvPower: 572.64
Jan 11 11:13:24 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:24 grid power: 8007W
Jan 11 11:13:24 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:24 site power: 8107W
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 gridPower: 8007.06
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 mode: off
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charge power: 8700W
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargePower: 8700
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charge currents: [15 14.8 8.4]A
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 detected phases: 3p [15 14.8 8.4]A
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargeCurrents: [15 14.8 8.4]
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 activePhases: 3
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargeCurrent: 16
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargedEnergy: 66.78056
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargeDuration: 11s
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charger status: C
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 connected: true
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 charging: true
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 enabled: true
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 next soc poll remaining time: 59m49s
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] ERROR 2022/01/11 11:13:24 vehicle soc: 405 Method Not Allowed
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charger disable
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargeCurrent: 0
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charge power: 8700W
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargePower: 8700
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 charge currents: [15 14.8 8.4]A
Jan 11 11:13:24 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:24 detected phases: 3p [15 14.8 8.4]A
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 chargeCurrents: [15 14.8 8.4]
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 activePhases: 3
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 homePower: 0
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsTotalCharged: 0.005624760672416666
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsGridCharged: 0.0045433769440690885
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsSelfConsumptionCharged: 0.0010813837283475776
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsSelfConsumptionPercent: 19.22541760133171
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsEffectivePrice: 0.2191863172027765
Jan 11 11:13:24 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:24 savingsAmount: 3.438800256145296e-05
Jan 11 11:13:33 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:33 ----
Jan 11 11:13:33 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:33 pv power: 578W
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 pvPower: 578.5
Jan 11 11:13:33 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:33 grid power: 88W
Jan 11 11:13:33 evcc evcc[1294243]: [site  ] DEBUG 2022/01/11 11:13:33 site power: 188W
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 gridPower: 88.06
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 mode: off
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 charge power: 0W
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargePower: 0
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 charge currents: [0 0 0]A
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargeCurrents: [0 0 0]
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargeCurrent: 0
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargedEnergy: 69.3916
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargeDuration: 20s
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 charger status: B
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] INFO 2022/01/11 11:13:33 stop charging <-
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 pv timer reset
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 pv action: inactive
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 pvAction: inactive
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 pvRemaining: 0s
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargeCurrent: 0
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 connected: true
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 charging: false
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 enabled: false
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] ERROR 2022/01/11 11:13:33 vehicle soc: 405 Method Not Allowed
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 charge power: 0W
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargePower: 0
Jan 11 11:13:33 evcc evcc[1294243]: [lp-1  ] DEBUG 2022/01/11 11:13:33 charge currents: [0 0 0]A
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 homePower: 666.56
Jan 11 11:13:33 evcc evcc[1294243]: [cache ] DEBUG 2022/01/11 11:13:33 chargeCurrents: [0 0 0]
```
?
andig: Logfiles bitte als Datei, dann scrollt es sich besser. Zeilen gerne um den Präfix bereinigt.

Ich versteh leider nicht was los ist:

```
[cache ] DEBUG 2022/01/11 11:12:53 mode: pv
[cache ] DEBUG 2022/01/11 11:12:53 enabled: false
[cache ] DEBUG 2022/01/11 11:12:56 phases: 3
[lp-1  ] DEBUG 2022/01/11 11:12:56 max charge current: 16A
[lp-1  ] DEBUG 2022/01/11 11:12:56 charger enable
```

Keine Ahnung wo das her kommt im PV Modus. Leider fehlt auch wieder der Anfang vom Log, ich sehe also auch nicht was da gerade läuft. Ich kann mir nur schwer vorstellen, dass das etwas mit den Änderungen hier zu tun hat.
bacanol: > Logfiles bitte als Datei, dann scrollt es sich besser. Zeilen gerne um den Präfix bereinigt.
> 
> Ich versteh leider nicht was los ist:
> 
> ```
> [cache ] DEBUG 2022/01/11 11:12:53 mode: pv
> [cache ] DEBUG 2022/01/11 11:12:53 enabled: false
> [cache ] DEBUG 2022/01/11 11:12:56 phases: 3
> [lp-1  ] DEBUG 2022/01/11 11:12:56 max charge current: 16A
> [lp-1  ] DEBUG 2022/01/11 11:12:56 charger enable
> ```
> 
> Keine Ahnung wo das her kommt im PV Modus. Leider fehlt auch wieder der Anfang vom Log, ich sehe also auch nicht was da gerade läuft. Ich kann mir nur schwer vorstellen, dass das etwas mit den Änderungen hier zu tun hat.

hier das Logfile, ist bei jedem Start reproduzierbar. Sogar wenn ein unbekanntes Auto am Lader hängt geht es los mit dem Laden ohne Sonne mit 3p:
[evcc-4.log](https://github.com/evcc-io/evcc/files/7853136/evcc-4.log)


andig: Ich kanns leider nicht deuten. Welche Version läuft ist im Log immer noch nicht erkennbar:

```
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:14 set charge mode: pv
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:14 set target soc: 80
Jan 12 09:59:19 evcc evcc[1497]: [site  ] DEBUG 2022/01/12 09:59:14 ----
Jan 12 09:59:19 evcc evcc[1497]: [site  ] DEBUG 2022/01/12 09:59:15 grid power: 694W
Jan 12 09:59:19 evcc evcc[1497]: [site  ] DEBUG 2022/01/12 09:59:15 pv power: 168W
Jan 12 09:59:19 evcc evcc[1497]: [site  ] DEBUG 2022/01/12 09:59:15 site power: 794W
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:15 charge power: 0W
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:15 charge currents: [0 0 0]A
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:15 charger status: B
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] ERROR 2022/01/12 09:59:17 vehicle soc: 405 Method Not Allowed
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:17 pv action: inactive
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:17 max charge current: 16A
Jan 12 09:59:19 evcc evcc[1497]: [lp-1  ] DEBUG 2022/01/12 09:59:17 charger enable
```

Hast Du evtl noch einen `minsoc` gesetzt? Das würde das verhalten erklären da Dein Auto keinen SOC liefert (was stimmt da nicht)?

Wir können gerne eine gemeinsame Debugsession machen (VS Code Remote Debug)- meld Dich gerne bei Slack oder cpuidle@gmx.de.

Patch:
diff --git a/cmd/demo.yaml b/cmd/demo.yaml
index 4154bdfc..e8263425 100644
--- a/cmd/demo.yaml
+++ b/cmd/demo.yaml
@@ -15,7 +15,7 @@ javascript:
       battery: 63, // car
     };
     function log() { console.log("state:", JSON.stringify(state)); }
-    function set() { console.log("set "+param+"=", val); }
+    function set() { console.log("set:", param+"="+val); }
 
 meters:
 - name: grid
@@ -76,7 +76,7 @@ chargers:
   enable:
     type: js
     vm: shared
-    script: set(); state.enabled = val;
+    script: state.enabled = val;
   enabled:
     type: js
     vm: shared
@@ -90,7 +90,7 @@ chargers:
   maxcurrent:
     type: js
     vm: shared
-    script: set(); state.maxcurrent = val;
+    script: state.maxcurrent = val;
 
 vehicles:
 - name: demo
diff --git a/core/loadpoint.go b/core/loadpoint.go
index 547ccfc8..ac1a075e 100644
--- a/core/loadpoint.go
+++ b/core/loadpoint.go
@@ -219,8 +219,9 @@ func NewLoadPointFromConfig(log *util.Logger, cp configProvider, other map[strin
 	lp.configureChargerType(lp.charger)
 
 	// ensure 1p setup for switchable charger (https://github.com/evcc-io/evcc/issues/1572)
-	if _, ok := lp.charger.(api.ChargePhases); ok {
-		lp.setPhases(1)
+	if _, ok := lp.charger.(api.ChargePhases); ok && lp.Phases != 0 {
+		lp.log.WARN.Printf("ignoring phases config (%dp) for switchable charger", lp.Phases)
+		lp.setPhases(0)
 	}
 
 	// allow target charge handler to access loadpoint
@@ -550,9 +551,10 @@ func (lp *LoadPoint) syncCharger() {
 }
 
 // setLimit applies charger current limits and enables/disables accordingly
-func (lp *LoadPoint) setLimit(chargeCurrent float64, force bool) (err error) {
+func (lp *LoadPoint) setLimit(chargeCurrent float64, force bool) error {
 	// set current
 	if chargeCurrent != lp.chargeCurrent && chargeCurrent >= lp.GetMinCurrent() {
+		var err error
 		if charger, ok := lp.charger.(api.ChargerEx); ok {
 			err = charger.MaxCurrentMillis(chargeCurrent)
 		} else {
@@ -560,17 +562,17 @@ func (lp *LoadPoint) setLimit(chargeCurrent float64, force bool) (err error) {
 			err = lp.charger.MaxCurrent(int64(chargeCurrent))
 		}
 
-		if err == nil {
-			lp.log.DEBUG.Printf("max charge current: %.3gA", chargeCurrent)
-			lp.chargeCurrent = chargeCurrent
-			lp.bus.Publish(evChargeCurrent, chargeCurrent)
-		} else {
-			err = fmt.Errorf("max charge current %.3g: %w", chargeCurrent, err)
+		if err != nil {
+			return fmt.Errorf("max charge current %.3gA: %w", chargeCurrent, err)
 		}
+
+		lp.log.DEBUG.Printf("max charge current: %.3gA", chargeCurrent)
+		lp.chargeCurrent = chargeCurrent
+		lp.bus.Publish(evChargeCurrent, chargeCurrent)
 	}
 
 	// set enabled/disabled
-	if enabled := chargeCurrent >= lp.GetMinCurrent(); enabled != lp.enabled && err == nil {
+	if enabled := chargeCurrent >= lp.GetMinCurrent(); enabled != lp.enabled {
 		if remaining := (lp.GuardDuration - lp.clock.Since(lp.guardUpdated)).Truncate(time.Second); remaining > 0 && !force {
 			lp.log.DEBUG.Printf("charger %s: contactor delay %v", status[enabled], remaining)
 			return nil
@@ -585,27 +587,27 @@ func (lp *LoadPoint) setLimit(chargeCurrent float64, force bool) (err error) {
 		// 	}
 		// }
 
-		if err = lp.charger.Enable(enabled); err == nil {
-			lp.log.DEBUG.Printf("charger %s", status[enabled])
-			lp.enabled = enabled
-			lp.guardUpdated = lp.clock.Now()
+		if err := lp.charger.Enable(enabled); err != nil {
+			return fmt.Errorf("charger %s: %w", status[enabled], err)
+		}
 
-			lp.bus.Publish(evChargeCurrent, chargeCurrent)
+		lp.log.DEBUG.Printf("charger %s", status[enabled])
+		lp.enabled = enabled
+		lp.guardUpdated = lp.clock.Now()
 
-			// wake up vehicle
-			// TODO https://github.com/evcc-io/evcc/discussions/1929
-			// if car, ok := lp.vehicle.(api.VehicleStartCharge); enabled && ok {
-			// 	// log but don't propagate
-			// 	if err := car.StartCharge(); err != nil {
-			// 		lp.log.ERROR.Printf("vehicle remote charge start: %v", err)
-			// 	}
-			// }
-		} else {
-			err = fmt.Errorf("charger %s: %w", status[enabled], err)
-		}
+		lp.bus.Publish(evChargeCurrent, chargeCurrent)
+
+		// wake up vehicle
+		// TODO https://github.com/evcc-io/evcc/discussions/1929
+		// if car, ok := lp.vehicle.(api.VehicleStartCharge); enabled && ok {
+		// 	// log but don't propagate
+		// 	if err := car.StartCharge(); err != nil {
+		// 		lp.log.ERROR.Printf("vehicle remote charge start: %v", err)
+		// 	}
+		// }
 	}
 
-	return err
+	return nil
 }
 
 // connected returns the EVs connection state
@@ -964,21 +966,18 @@ func (lp *LoadPoint) scalePhases(phases int) error {
 
 // pvScalePhases switches phases if necessary and returns if switch occurred
 func (lp *LoadPoint) pvScalePhases(availablePower, minCurrent, maxCurrent float64) bool {
-	// correct charger state inconsistency (https://github.com/evcc-io/evcc/issues/1572)
 	phases := lp.GetPhases()
 
-	// if more active phases observed than configured, update internal state accordingly
+	// observed phase state inconsistency (https://github.com/evcc-io/evcc/issues/1572, https://github.com/evcc-io/evcc/issues/2230)
 	if phases < lp.activePhases {
-		lp.log.WARN.Printf("inconsistent phases: %dp configured < %dp observed active, updating internal state to 3p", phases, lp.activePhases)
-		phases = 3
-		lp.setPhases(3)
+		lp.log.WARN.Printf("ignoring inconsistent phases: %dp < %dp observed active", phases, lp.activePhases)
 	}
 
 	var waiting bool
 	targetCurrent := availablePower / Voltage / float64(lp.activePhases)
 
 	// scale down phases
-	if targetCurrent < minCurrent && phases > 1 && lp.activePhases > 1 {
+	if targetCurrent < minCurrent && (phases == 0 || phases == 3) && lp.activePhases > 1 {
 		lp.log.DEBUG.Printf("available power below %dp min threshold of %.0fW", lp.activePhases, float64(lp.activePhases)*Voltage*minCurrent)
 
 		if lp.phaseTimer.IsZero() {
@@ -1004,7 +1003,7 @@ func (lp *LoadPoint) pvScalePhases(availablePower, minCurrent, maxCurrent float6
 	}
 
 	// scale up phases
-	if min3pCurrent := powerToCurrent(availablePower, 3); min3pCurrent >= minCurrent && phases == 1 {
+	if min3pCurrent := powerToCurrent(availablePower, 3); min3pCurrent >= minCurrent && (phases == 0 || phases == 1) {
 		lp.log.DEBUG.Printf("available power above 3p min threshold of %.0fW", 3*Voltage*minCurrent)
 
 		if lp.phaseTimer.IsZero() {


Test patch:
diff --git a/core/loadpoint_test.go b/core/loadpoint_test.go
index d64e9198..f06aeda9 100644
--- a/core/loadpoint_test.go
+++ b/core/loadpoint_test.go
@@ -882,15 +882,15 @@ func TestScalePhases(t *testing.T) {
 			lp.phaseTimer = lp.clock.Now().Add(-dt)
 		}},
 
-		// error states from 1p/3p misconfig
-		{"1/3->1, enough power", 1, 3, 1 * Voltage * maxA, 3, false, nil},
-		{"1/3->1, kickoff, correct phase setting", 1, 3, 1 * Voltage * maxA, 3, false, func(lp *LoadPoint) {
+		// error states from 1p/3p misconfig - no correction for time being (stay at 1p)
+		{"1/3->1, enough power", 1, 3, 1 * Voltage * maxA, 1, false, nil},
+		{"1/3->1, kickoff, correct phase setting", 1, 3, 1 * Voltage * maxA, 1, false, func(lp *LoadPoint) {
 			lp.phaseTimer = time.Time{}
 		}},
-		{"1/3->1, timer running, correct phase setting", 1, 3, 1 * Voltage * maxA, 3, false, func(lp *LoadPoint) {
+		{"1/3->1, timer running, correct phase setting", 1, 3, 1 * Voltage * maxA, 1, false, func(lp *LoadPoint) {
 			lp.phaseTimer = lp.clock.Now()
 		}},
-		{"1/3->1, switch executed", 1, 3, 1 * Voltage * maxA, 1, true, func(lp *LoadPoint) {
+		{"1/3->1, switch not executed", 1, 3, 1 * Voltage * maxA, 1, false, func(lp *LoadPoint) {
 			lp.phaseTimer = lp.clock.Now().Add(-dt)
 		}},
 	}