evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Refactor: split charger into current- and power controllers

Open andig opened this issue 2 years ago • 2 comments

This PR is an investigation into splitting chargers into:

  • CurrentController: typically wall boxes
  • PowerController: typically heating devices, some chargers (ChargeX)
  • no controller ability beyond on/off: switch sockets

TODO

  • [ ] move all current control and phase switching logic from Loadpoint to core.currentController
  • [ ] refactor switchSocket to declare required power and remove Controller interfaces
  • [ ] think about refactoring ChargeState as part of Charger, potentially separate PR

Refs https://github.com/evcc-io/evcc/pull/6301, https://github.com/evcc-io/evcc/pull/7207

andig avatar Apr 10 '23 11:04 andig

Amperfied solar.connect kann auch mit Leistung statt Strom gesteuert werden und schaltet darüber auch selbstständig zwischen 1P/3P.

maatinh avatar Apr 25 '24 08:04 maatinh

Just a note: with EEBUS both variants should be possible in the same charger implementation as it depends on the chargers EEBUS version and implementation which is being supported. And it can also make sense to use currents e.g. for ISO connected cars and power for PWM.

DerAndereAndi avatar Jun 08 '24 12:06 DerAndereAndi