Quick Summary (TL;DR)
If you have solar panels, a home battery and an EV, the difficult part is not making the charger follow sunshine; it is deciding which load should receive each spare kilowatt and preventing the car from inadvertently emptying the house battery. Put electrical protection first, then a clear energy priority, then tariff optimisation. Treat the battery management system (BMS) and the charger’s approved dynamic load management as the authority for their safety and supply limits; Home Assistant can supervise discretionary charging, but it must not replace those protections.
A good default for households that value evening self-consumption or backup is house loads → battery reserve and target charge → EV from remaining solar surplus → export. Other households may deliberately prioritise the EV, and cheap overnight power can sometimes be better value than direct solar charging. Neither policy is universally optimal: the answer depends on battery reserve, departure time, export payments, import tariffs and the hardware’s actual control capabilities.
Practical starting point: measure grid import/export, battery power and state of charge (SoC), PV generation and actual EV charging power. Set a modest solar-export margin and sensible start/stop delays; use a minimum charging threshold of approximately 1.4 kW on one phase or 4.1–4.2 kW on three phases, unless your supported charger/car combination can safely switch phases. These are nominal 6 A-per-active-phase thresholds, not fixed guarantees at every voltage or with every vehicle. Most importantly, verify in the inverter readings that EV charging is not being supplied by the home battery when you intend solar-only operation.
Why solar, a home battery and an EV compete for the same energy
Without storage, many solar-aware EV chargers make a simple decision: when the property is exporting enough PV electricity, divert that surplus into the car. Add a home battery and there are now at least three competing uses for generation: running household appliances, charging stationary storage and charging the vehicle. A fourth choice is exporting electricity to the grid. The battery inverter may also discharge stored energy to keep the grid meter near zero, making the charger believe that solar generation is still covering the load.
For example, a charger monitoring only net grid export cannot necessarily distinguish an extra 2 kW of midday PV from 2 kW drawn out of the battery through a hybrid inverter. A charger which attempts to eliminate grid import can therefore continue charging after the cloud cover increases, while the battery silently fills the shortfall. The display may proudly show zero grid import, even though it is using energy you had reserved for the evening. This is a control boundary problem, not inherently a defective charger.
The goal is to establish one understandable policy for the household. Is the battery a reserve for essential loads, an economic store to offset peak prices, a source from which the EV may intentionally charge, or some mix of these? The same hardware can give very different results depending on this decision and on which controller has priority.
Five constraints you should establish before automating anything
| Constraint | What to check | Why it matters |
|---|---|---|
| Grid import limit | Contracted supply and permitted current per phase; existing main fuse and installer settings | High house load plus EV charging can exceed the allowed connection, even when an energy chart looks acceptable. |
| Charger and circuit limit | Commissioned EVSE maximum current, protective devices, cable and permitted phases | A software rule is not permission to exceed the installed circuit rating. |
| Inverter charge/discharge limit | Continuous AC rating, battery discharge/charge power, DC/AC coupling and operating mode | A 10 kWh battery does not imply it can deliver 10 kW, and some modes restrict discharge. |
| Usable battery reserve | Manufacturer-supported minimum SoC, backup reserve and any warranty operating band | The app-visible percentage is not a licence to override BMS cut-offs or emergency reserve. |
| EV deadline | Departure time, required energy, vehicle/charger schedules and charging interruption behaviour | Solar-only operation can leave the car undercharged if the weather changes or the car refuses to resume. |
Ask the qualified installer to document the metering positions and the actual meaning of each limit, including whether limits apply to total site import, each phase, inverter output or the chargepoint branch. For a deeper treatment of this protection layer, see our EV charger dynamic load balancing guide. Solar optimisation is a second, subordinate control objective.
Choose the energy priority: four useful operating policies
| Policy | Dispatch order (simplified) | Best fit | Main trade-off |
|---|---|---|---|
| Battery-first solar | House → battery charge/SoC goal → EV using additional surplus → export | Reserve-conscious homes, expensive evening tariffs, backup priorities | EV can miss the midday window if the battery absorbs most available PV. |
| EV-first solar | House → EV solar surplus → battery → export | Car parked at home briefly or needed for an imminent journey | Stationary storage may be less charged in the evening. |
| Tariff-first | Meet minimum battery/EV needs, then allocate based on import/export price and deadlines | Dynamic or time-of-use tariffs with reliable scheduling | Higher complexity; tariff changes, losses and export value must be modelled. |
| Reserve-first emergency | House critical needs → preserve protected storage reserve → opportunistic EV charging only | Storm preparation, fragile grid, backup-focused installation | Less solar self-consumption and slower EV top-up. |
The order is not an instruction to defeat inverter firmware. In many installations the inverter manufacturer already implements the battery priority and you may only set supported modes, schedules and SoC ranges. The EV charger’s solar mode can be an additional request on top of that priority. Where the battery controller takes any new household load as permission to discharge, you may need coordinated controls or an explicit restriction on battery discharge during an EV session.
Also distinguish economic reserve from protection reserve. Your desired 30% SoC for evening consumption is a household preference. The manufacturer’s BMS low-voltage, temperature and protection thresholds are mandatory constraints. Home Assistant should not attempt to write undocumented battery registers, spoof sensors or defeat reserve protections.
Understand the electricity flows before setting a solar trigger
For a simplified grid-connected site, define grid import as positive and grid export as negative. Battery charging is positive consumption and battery discharge reduces net grid demand. Neglecting conversion losses for a moment, the balance at the site boundary is:
Net grid power = house load + EV power + battery charging power
- battery discharge power - solar generation
That sign convention is a teaching choice, not a Home Assistant entity standard. Individual inverter, clamp and meter integrations may report discharge as a positive or negative value. Confirm signs under known conditions and account for inverter conversion losses, parasitic consumption, metering placement and three-phase netting. Do not add power from devices that are already inside another sensor’s measurement boundary; doing so double-counts energy.
| Example at one moment | Power | Interpretation |
|---|---|---|
| PV generation | 5.5 kW | What the PV inverter reports now. |
| Non-EV house demand | 0.9 kW | Refrigerators, appliances and other house loads. |
| Home battery charging | 1.5 kW | The stationary battery is storing solar energy. |
| EV charging | 3.0 kW | The car is taking 3 kW at the AC charger boundary. |
| Net grid flow | −0.1 kW | Approximately 100 W export; balance 0.9 + 1.5 + 3.0 − 5.5 = −0.1. |
Now imagine PV falling from 5.5 kW to 2.0 kW while the charger stays at 3.0 kW. The inverter may stop charging the home battery and then discharge it so grid import remains near zero. Looking at grid import alone would hide this change. An accurate solar-priority controller needs either direct battery power measurements or an inverter-supported operating mode that demonstrably blocks undesired discharge during EV charging.
The 6 A charging minimum: why “only use spare solar” is not always possible
Normal AC EV charging depends on a control-pilot agreement between the charger and vehicle. For mainstream conductive AC charging, the practical minimum advertised current is commonly 6 A. At nominal 230 V single-phase supply, that is about 230 V × 6 A = 1.38 kW. At nominal 400 V three-phase supply, 6 A on each of three phases is approximately √3 × 400 V × 6 A = 4.16 kW, assuming a near-unity power factor. Real power varies with voltage and the vehicle’s onboard charger.
If only 900 W of true solar surplus exists and the charger cannot offer less than 6 A, there is no magic setting that charges the car at 900 W continuously. It must either wait, supplement with grid or home-battery energy, or employ a manufacturer-supported mode which changes the number of active charging phases. Some chargers support automatic one/three-phase switching, subject to vehicle compatibility and safe changeover delays; many do not. Do not switch AC supply phases using improvised contactors or Home Assistant relays.
The distinction between “eco” and “strict solar” is important. For example, myenergi documents ECO as a mode that can continue at the minimum charge rate by importing an energy shortfall, while ECO+ can pause when configured with its green contribution threshold. Wallbox documents solar charging modes with minimum surplus requirements and explicitly warns that solar charging can discharge a home battery depending on the system. The settings and terminology are vendor-specific. See the manufacturer documentation linked at the end rather than assuming every wallbox uses the same interpretation.
Grid limits and solar priorities must operate at different levels
Think of the controls as a hierarchy. Level 1: protective hardware and battery firmware—the EVSE’s electrical ratings, residual-current protection scheme, installation rules and battery BMS/inverter restrictions. Level 2: charger-native load management—approved metering and curtailment of charging current to protect the agreed supply and feeder capacity. Level 3: energy optimisation—solar diversion, battery reserve preferences, tariff windows and target vehicle SoC. Only the last layer is optional automation.
If the household is approaching its grid or per-phase current ceiling, charger load management should reduce the EV’s request regardless of whether Home Assistant thinks the solar price is attractive. If the inverter reports a fault or is managing a battery protection event, the automation should not keep commanding discharge. If telemetry disappears, the optional controller should revert to a conservative documented state: such as pausing discretionary solar-only charging or reverting to the charger’s approved local mode, while the charger’s own safety protection remains effective.
The relevant control unit may be instantaneous amperes per phase, not only averaged kW. A property exporting 2 kW overall could still have an overloaded phase if a three-phase charger and a large single-phase load are unevenly distributed. Select an approved metering architecture for your exact grid configuration, including phase association, phase-specific constraints and communications-failure behaviour.
Home-battery reserve: choose a policy, not a guessed universal percentage
People often ask whether to set a battery reserve to 10%, 20% or 30% before allowing EV charging. There is no universal correct value. The right target depends on usable storage capacity, expected evening load, forecast solar generation, battery manufacturer’s permitted operating range, backup requirements and your willingness to import grid electricity. A 10 kWh nominal battery with 30% indicated SoC may not have exactly 3 kWh available on its AC output. The usable range and inverter losses matter.
A reserve policy can be expressed as keep enough energy for expected essential loads and a practical uncertainty margin, while staying inside all manufacturer limits. For example, if you expect a 2 kWh essential overnight requirement, an inverter’s AC-side usable energy, current SoC, power limit and any overnight grid charging permission determine what the battery can genuinely supply. A household that uses storage only for bill reduction can choose a different preference from one that needs outage resilience.
Some inverters expose separate backup reserve and self-consumption minimum SoC, while others offer fewer controls. Treat a supported minimum SoC value as a floor, not a promise that the EV will avoid battery discharge above that floor. Battery-to-house demand can continue until the minimum is reached. If preserving battery energy is your goal, the charger must detect and avoid that discharge—or the inverter must offer a documented setting to prevent it during those hours.
Worked example: decide whether to charge the EV or refill the home battery
Assume a house has 6 kW of PV generation at noon, ordinary household demand is 1 kW, the home battery can safely accept up to 2 kW and the parked EV could draw 3 kW at its present current limit. These are illustrative instantaneous powers, not performance claims about a specific hybrid inverter.
| Strategy | Power to battery | Power to EV | Grid export | Result |
|---|---|---|---|---|
| Battery-first, battery below target | 2 kW | 3 kW | 0 kW | Both charge; EV demand can fall quickly if clouds arrive. |
| Battery-first, only 4 kW of PV | 2 kW | 1 kW potential surplus | 0 kW | 1 kW is below normal single-phase 6 A minimum: EV may wait. |
| EV-first, only 4 kW of PV | 0 kW | 3 kW | 0 kW | EV completes sooner; stationary storage receives no extra charge. |
| Preserve 100 W export margin at 6 kW PV | Up to 2 kW | Up to 2.9 kW | At least 0.1 kW | Buffer helps recognise falling surplus but may cost a little exported energy. |
What changes as the day continues? If the battery reaches its target before lunchtime, EV-first and battery-first may converge. If a cloud reduces generation, a controller must either lower the EV current, pause, permit grid top-up or permit battery support according to the chosen policy. If the charger is three-phase-only at a 6 A-per-phase floor, a 2.9 kW EV allocation is below the approximate 4.2 kW minimum; the solar-only mode may have to wait unless it can change to single phase.
Use battery power as a reality check: a positive discharge reading while EV charging starts suggests that the car may be pulling stored electricity, even if site grid import remains close to zero. Check this before declaring a system “100% solar”.
Prevent accidental battery-to-EV discharge: the three main approaches
Approach 1: Native charger solar mode plus a deliberate export margin
A solar-aware charger typically watches the supply meter and adjusts EV current in response to export. In a battery-equipped home, a small positive export requirement can help make the EV back off before the inverter begins discharging to hold grid flow at zero. myenergi specifically documents an Export Margin for hybrid PV/battery systems: the installer configures a small export buffer and uses an appropriate minimum green setting in ECO+ mode. Its guidance gives 50 W as a starting example, with 100–150 W sometimes required; these numbers are manufacturer examples, not universal values for every charger.
The practical outcome is highly dependent on metering location, inverter response speed and competing controllers. A 100 W margin can reduce steady-state battery drainage, but it does not make the system physically incapable of brief discharge during clouds or load steps. Where your charger has no supported export-margin feature, do not copy another vendor’s menu instructions.
Approach 2: Use an inverter-supported EV or discharge-limitation mode
Some inverter and charger ecosystems can share battery status, change allowed battery discharge, or choose an EV-specific operating mode. Where the manufacturer exposes a supported setting, the inverter can refrain from discharging to cover the car while still discharging for other household purposes—or it may apply a more basic whole-home discharge restriction. These behaviours are not interchangeable. Verify the exact model, firmware and region, and test with live measurements rather than relying on an attractive feature name in the brochure.
GivEnergy, for example, documents battery operating modes and supports charger-specific choices through its API for compatible equipment; the available modes and permitted battery export to an EV should be confirmed on the actual installed version. Avoid unsupported “force zero discharge” commands that could conflict with active battery charging, emergency reserves or firmware scheduling. Change settings through approved interfaces only.
Approach 3: Supervisory Home Assistant controller with measured battery power
If the wallbox permits supported remote current adjustments or start/stop commands and your inverter exposes reliable SoC and charge/discharge power, Home Assistant can decide when to request EV charging and how much to request. The control should combine export measurements with battery data. For example, it can reduce the EV limit when the battery begins discharging, prevent fresh charging below a preferred SoC, and postpone charging during a high-value tariff period. Its role is to coordinate preferences, not to perform safety-related dynamic load protection.
Use this approach only where the charger responds predictably, including during network failure, restart and repeated commands. Avoid mixing cloud calls with sub-second closed-loop behaviour. If the charger already has effective native solar diversion, use Home Assistant for high-level mode selection and display instead of writing a second fast current-control loop.
A safe control hierarchy for a Home Assistant installation
Start with a status dashboard and manual decisions. Only automate after the measurements and underlying protections have been commissioned. The following is a conceptual hierarchy, not a copy-and-paste automation and not a substitute for the manufacturer’s control logic:
- Always obey hardware constraints. Retain the EVSE’s certified installation rating, manufacturer-approved load balancing, inverter/BMS limits and fault actions. Do not increase those limits through automation.
- Check telemetry health. Require valid, recent grid, battery and charger readings before making an optimisation decision. A battery SoC last updated two hours ago is not a reliable dispatch input.
- Apply the user’s reserve policy. If the battery is below your preferred SoC target, defer solar-only EV charging unless an explicit departure override or cheap-grid schedule applies.
- Check actual battery flow. If stationary storage is discharging while EV charging, trim or suspend discretionary EV charging after an appropriate persistence delay. If intentional battery-to-EV support is enabled, keep it within the supported limits.
- Calculate a charging request from measured surplus. Allow a margin for fluctuating loads, conversion losses and measurement delay, then cap requests at the charger’s permitted maximum and any lower dynamic limit reported by its certified controller.
- Apply a minimum start threshold and hysteresis. Do not command an impossible current below the car/charger minimum. Require stable surplus before a start or current increase; use different thresholds or delays for stopping.
- Respect the EV’s deadline and minimum energy goal. When required departure energy cannot be met from forecast surplus, schedule a clearly labelled grid-supported charge window rather than silently missing the target.
- Provide a local fallback and user override. Decide what happens if Home Assistant or the network stops, and expose a simple way to see why charging is waiting or being curtailed.
For chargers with official local integration, Home Assistant can sometimes offer charging power, current limits, state and a solar-divert mode. Its OpenEVSE integration is one documented example: Home Assistant can supervise charging current and read data locally, but the charger’s solar-divert function still requires its own configured live solar/grid feed. An integration’s existence does not imply that it implements an all-vendor battery-aware control strategy.
Which Home Assistant entities are genuinely needed?
| Signal | Measurement or unit | Primary use | Common pitfall |
|---|---|---|---|
| Grid import/export power | Instantaneous W or kW; sign documented | Detect available export and catch actual import | Battery discharge masks solar shortage; total netting hides individual phase constraints. |
| PV generation power | Instantaneous W or kW | Forecast and sanity-check solar availability | PV generation is not the same as spare PV after house and storage loads. |
| Battery SoC | Percentage with last-updated time | Preferred reserve and scheduling | SoC is not equal to available AC kWh and is not a safety cut-off. |
| Battery charge/discharge power | Instantaneous W or kW, verified sign | Confirm whether the battery is supplying the EV | Some integrations report separate signed or unsigned charge/discharge sensors. |
| EV charger power | Instantaneous measured W or kW | Confirm actual charging, measure response | Advertised current is not the same as real consumed power. |
| EV charging state and controllable limit | State plus allowed A/current setpoint | Issue documented mode requests and detect pauses | Not every integration exposes writable controls or supports charge recovery. |
| Per-phase site current | Measured A on L1/L2/L3 if applicable | Audit load-management behaviour | A whole-home net kW sensor does not prove any single phase is under its limit. |
| EV required energy or target SoC | kWh or reliable target SoC/departure time | Guarantee an adequate charge before travel | Many wallboxes cannot read vehicle SoC; car API data may be delayed. |
| Tariff and export rate | Timestamped unit price plus taxes/fees as relevant | Choose economically sensible time windows | Flat averages misprice dynamic intervals and export opportunity cost. |
The Home Assistant Energy dashboard is suitable for analysing grid, solar, battery and individual-device energy over time. Use correctly configured cumulative energy sensors for kWh accounting; do not feed a momentary W entity into an energy-total field. Historical kWh helps measure performance, whereas live, sufficiently fresh power readings are necessary for a solar-following controller. More on correct dashboard entity mapping: grid, solar and battery entities in Home Assistant.
A practical state machine: reserve, solar, top-up and fault
A state-based policy is usually easier to debug than dozens of overlapping automations. Consider these named operating states and transitions. All thresholds are examples to be tuned to actual approved devices, not universal recommendations.
| State | Entry condition | Requested EV behaviour | Exit condition |
|---|---|---|---|
| Reserve protection | Home battery below preferred target; no mandatory EV deadline | Wait for excess solar or use an explicitly chosen grid charge slot | Reserve recovers and surplus remains stable. |
| Solar surplus | Fresh battery/grid telemetry; adequate persistent genuine surplus; approved hardware available | Start or raise charge within charger limits | Surplus disappears, battery starts undesirable discharge or a higher-priority event occurs. |
| Low solar / hold | Below charging threshold, short cloud or temporary large household load | Reduce current or pause solar-only session | Stable surplus returns after hysteresis interval. |
| Scheduled top-up | EV deadline at risk or deliberately cheap grid window | Enable a limited, time-bounded grid-assisted session | Target energy reached, tariff window ends or user cancels. |
| Fault / unknown | Stale meter data, inverter fault, charger error or unsafe operating conditions | Stop software-driven optimisation and defer to safe charger/vendor fallback | Fault cleared, readings validated, deliberate recovery. |
Use independent timers to avoid “flapping”: for instance require several minutes of consistently adequate surplus to start and a shorter persistent deficit before pausing, within the charger’s documented constraints. Use a cooldown following repeated failed starts. Hysteresis can be applied to the power threshold as well as time. Avoid aggressive repeated start/stop cycles; some vehicles have anti-cycling delays or require user interaction after too many interruptions.
For an example supervisory rule, imagine that the PV/battery telemetry is valid, grid export has exceeded the one-phase 6 A floor plus a margin for three minutes, and the stationary battery is above its preferred reserve target and is not discharging. The controller may then request solar mode. If storage discharge persists after PV drops, it can request a smaller charge current or pause. This logic does not detect wiring faults, earth leakage or a feeder overload. Those remain the responsibility of the installed protective systems.
Solar-only versus cheapest: the tariff can reverse the answer
“Maximise solar consumption” and “minimise household bills” are not always the same objective. Using 1 kWh of rooftop electricity in the EV may avoid 1 kWh of later imported charging, but it also sacrifices the payment or credit you would have earned by exporting that kWh. Similarly, charging a battery and releasing it later introduces conversion losses and some finite degradation cost. Your actual import and export rates matter.
| Illustrative tariff situation | Choice to compare | Simple economic insight |
|---|---|---|
| Peak import 28p/kWh; solar export 10p/kWh | Use an otherwise exported solar kWh now or import at peak later | Direct solar charging can save roughly 18p/kWh before small efficiency differences, assuming the alternative is peak grid energy. |
| Off-peak import 8p/kWh; solar export 15p/kWh | Charge EV now from solar or export and import off-peak later | Exporting solar and charging off-peak can be better value by around 7p/kWh before losses and tariff details. |
| Home battery partly full with expensive evening demand | Send solar to stationary battery or EV | Battery-first may be more valuable when stored energy will replace expensive evening import. |
| High-cost peak approaching, car needs a guaranteed range | Wait for solar or schedule an EV top-up | Reliability and the departure deadline may outweigh a small theoretical saving. |
These pence values are hypothetical UK-style arithmetic examples, not current tariffs or forecasts. Compare costs over the same delivered AC energy with real interval import prices, export compensation, charging efficiency, time-of-use rules and taxes. If the car needs a full charge at 07:00, a rule that optimises this afternoon’s solar but overlooks the overnight deadline is not economical in any useful practical sense.
A rough decision calculation is: cost of using solar now ≈ forgone export revenue per kWh, whereas cost of grid charging later ≈ import price at the eligible window, adjusted for different efficiencies, grid fees and eligibility constraints. Stationary battery storage adds losses and potential degradation cost; avoid declaring a fixed cycle cost without usable-capacity and warranty data. For a more complete financial picture, see our home-battery return-on-investment and degradation analysis.
Night charging: prevent a cheap EV session from draining an expensive home battery
A common surprise occurs on an off-peak tariff. The user schedules the EV to charge at night at the cheapest rate, expecting electricity from the grid. The battery inverter, still set to minimise grid import, interprets the EV as an ordinary household load and empties the stationary battery to cover it. The grid import may be low even though the original plan was to preserve battery energy for morning loads. A schedule to charge the car does not, by itself, tell the battery not to discharge.
Where supported by the inverter manufacturer, use an approved nighttime battery operating mode or discharge limit that matches your objective; some products allow scheduled charging or a reserve increase, while others support only limited controls. Check whether changing mode also affects essential loads or backup readiness. Alternatively, schedule the EV when the stationary battery is already above its target and deliberately allow it to contribute, provided the economics and reserve requirements support that choice.
Avoid the temptation to “fix” a night schedule by permanently disabling all inverter discharge or forcing extreme SoC settings. That may break beneficial daytime self-consumption, change backup behaviour or create a mismatch with the vendor’s schedules. Document the starting state and restore the intended mode after the top-up window only through supported interfaces.
Power limits: a 7 kW wallbox is not a 7 kW solar surplus guarantee
A nominal single-phase 7.4 kW charger is approximately a 32 A charging point at 230 V, but its real usable limit is whichever is lowest: its installed circuit rating, site-approved current ceiling after other loads, any smart load-management curtailment, the car’s onboard AC acceptance, and your deliberate solar/price target. Likewise, an 11 kW three-phase wallbox is typically around 16 A per phase and a 22 kW unit around 32 A per phase, but a car may accept less on AC.
At 230 V, suppose the site and house loads leave only 20 A permitted for the EV on a particular phase. The charger’s approved load-balancing system must enforce that ceiling even if Home Assistant calculated 5 kW of “spare solar” using aggregate data. Do not assume the net grid meter alone establishes the available current on each phase. A qualified electrician must configure and verify every protective current limit.
A 5 kW inverter also does not necessarily allow a 5 kW extra EV load from the battery. Its rating may describe generation, grid-connected output, islanded backup output, or a combined PV-plus-battery limit under specific conditions. Battery current, SoC, ambient temperature and firmware modes can reduce available discharge power further. This matters particularly when someone wants the EV to charge “from the battery” during grid outages.
What about EV charging during a power cut?
Ordinary grid-tied solar and battery systems often stop energising the home when the grid fails unless they include approved backup/islanding equipment. A system with an emergency power supplyAliExpress price (EPS) or backup output may energise only selected circuits, have a lower continuous power rating and use a specific neutral/earth arrangement and changeover protection. It is unsafe to assume that a vehicle wallbox is on the backed-up circuit or that the battery can support its minimum charging power.
If EV charging during an outage matters, it must be planned into the certified electrical design, including grid separation, inverter capability, charging load shedding, earthing and protection. Do not bridge protected and unprotected distribution circuits or energise a wallbox through improvised backfeeding. Most homes should prioritise refrigeration, lighting, communications and other essential loads rather than an EV. Our related guide covers what home battery EPS and backup outputs can actually run.
Vehicle-to-home (V2H) or vehicle-to-grid (V2G) is a separate architecture requiring compatible vehicles, bidirectional equipment and permissions. Merely having a solar-aware AC wallbox or a stationary battery does not provide V2H capability.
Equipment checklist: what to buy and what to verify
| Component | A useful buying question | Avoid |
|---|---|---|
| Hybrid inverter + battery | Does it expose documented SoC, battery flow, supported discharge schedules and backup reserve settings? | Assuming a generic Modbus register map safely authorises BMS or inverter control. |
| Solar-aware smart EV charger | Can it pause below the solar threshold, honour a reserve policy or accept approved supervisory requests? | Assuming all “eco” modes exclude grid and battery electricity. |
| Manufacturer-approved grid meter / CT kit | Is it compatible with this wallbox hardware revision and the number of phases? | Choosing by CT size or RS485 connector alone. |
| Battery/inverter monitoring gateway | Are data local, documented, sufficiently fast, and readable during an internet outage? | Buying a cloud-only device for a control loop that needs timely readings. |
| Ethernet / reliable LAN | Can charger, inverter gateway and Home Assistant communicate predictably without exposing control endpoints publicly? | Depending on unreliable Wi-Fi or unsolicited port forwarding to run safety-adjacent software. |
| Home Assistant host | Can it keep reliable time, long-term energy totals and reasonable downtime behaviour? | Assuming reboot or loss of internet will always leave optimised charging working. |
| Installer commissioning | Will the electrician document phase allocation, source/export meter positions and failure modes? | Self-installing CTs inside live distribution boards or altering protective devices. |
Do not buy a second current transformerAliExpress price kit until you know what is already installed. The charger’s safety-related meter and the inverter’s generation meter may be on different electrical boundaries, and a third Home Assistant monitoring device may be unnecessary if both publish trustworthy data. Conversely, vendor metering can be private or too slow for a chosen automation; confirm the interface before ordering an expensive charger.
For support on wiring-independent metering decisions, compare Home Assistant energy monitors and EV load-management controllers and compatible meters. Professional installation is still necessary for fixed EVSE, main-board sensors and protective equipment.
Commissioning tests: prove the control works, not merely that the graphs look pretty
- Record the starting arrangement. Note inverter model/firmware, charger firmware, metering type and location, phase supply, battery reserve and original schedules. Photograph controller settings only where appropriate and keep an installer record.
- Validate the meter signs. Observe grid import at night with PV off, battery charging and battery discharging under known loads. Confirm all values and timestamps are plausible.
- Run a baseline EV session. With safe grid-supported charging enabled, confirm the vehicle accepts the configured current, the charger meter rises and certified site load balancing reacts to changing ordinary house loads.
- Test true solar surplus. Under sufficient PV production, enable the chosen solar mode. Confirm the EV current responds and the stationary battery is charging, idle or discharging according to policy.
- Test a falling solar step. Wait for a cloud or a normal appliance change. Look for battery discharge and sustained grid import, not merely a near-zero grid graph. Confirm a conservative, non-oscillating response.
- Verify reserve protection. Near the preferred battery SoC, test whether the supervisory system defers new EV charging while the inverter still obeys its own documented operating range.
- Verify the deadline override. If a journey requires charging, make sure the selected tariff-supported top-up starts, finishes and is visible to the driver; confirm any car-side departure schedule is not fighting the wallbox.
- Test communication loss without defeating protections. With the electrician/manufacturer’s guidance, verify what the charger and inverter do when Home Assistant or the network connection is unavailable. Never test overcurrent protection by deliberately overloading circuits.
- Reconcile daily kWh. Compare grid import/export, PV, stationary storage and EV meter totals across the same interval, allowing for losses and sampling. See EV charger kWh versus utility meter kWh for measurement boundaries.
Use a simple before/after test log with time, PV W, grid W, battery W, battery SoC, charger current and whether the car actually charged. A few well-instrumented tests are more informative than weeks of dashboards that do not separate battery discharge from solar export.
Troubleshooting: seven problems specific to batteries and solar EV charging
1. The car charges from the home battery despite “solar-only” mode
Likely cause: the charger sees net import/export at the grid meter, while the battery inverter keeps grid flow near zero by discharging. Check live battery discharge power as PV falls. Use a supported export margin, vendor battery-aware setting, or battery-power-informed supervision. “Zero grid import” does not prove “zero battery discharge”.
2. The car never charges even though the PV array is producing 3 kW
Likely cause: house demand and battery charging consume most generation, leaving less than the charger’s minimum 6 A-equivalent surplus. Or a three-phase-only session needs about 4.2 kW before it can begin. Check actual measured export, inverter battery charging power, phase selection, the green percentage threshold and any EV departure schedules.
3. Battery is full, but the charger still waits
Likely cause: the solar/export sensor has the wrong sign, the CT is on the wrong conductor or boundary, a charger minimum threshold is unmet, or an app schedule blocks the session. With an electrician, verify grid meter orientation and phase mapping. Check whether the car-side timetable is waiting for its own departure schedule before concluding the inverter is to blame.
4. Charging starts and stops every time a cloud passes
Likely cause: insufficient time hysteresis, a margin too close to zero, slow telemetry or two controllers issuing contradictory current requests. Give one controller authority over fast solar diversion, use its supported delay settings, and avoid repeated commands from both charger software and Home Assistant. Some cars may stop automatically restarting after multiple interruptions.
5. Grid import spikes when a heat pump or oven starts
Likely cause: the energy-optimisation loop has been mistaken for site-load protection, or readings arrive too slowly. A brief transient does not necessarily mean protection has failed, but sustained phase overload must be addressed using manufacturer-approved dynamic load management and professional commissioning. Do not attempt to fix this merely with a Home Assistant template sensor.
6. The overnight cheap-rate schedule empties the stationary battery
Likely cause: the hybrid inverter is in a self-consumption mode and supplies the new EV load before importing from the grid. Check battery discharge during the night session; consult inverter-supported time or reserve modes and apply one deliberate scheduling authority. Avoid assuming that setting a cheap tariff in the EV app influences the inverter.
7. The vehicle reports “fully charged” but Home Assistant predicts missing energy
Likely cause: EV target SoC is unavailable or delayed, charger kWh is AC-side while the car’s capacity is DC-side, or charging efficiency has been ignored. Use an appropriately conservative energy allowance; verify real vehicle SoC through a supported interface where available and review the car/charger app for fault or schedule states.
How to evaluate whether the strategy actually saved money
Measure at least a representative mix of sunny, cloudy and overnight charging days. Record vehicle AC kWh, PV production, grid import/export kWh, home battery charge/discharge totals, start/end SoC, tariff intervals and export credit. Compare the new strategy with a baseline that meets the same EV departure requirement. It is misleading to call avoided grid import “savings” while ignoring lost export credit, battery losses or a missed cheap-rate period.
Useful measures include EV kWh delivered before the departure deadline, percentage of EV energy drawn from genuine contemporaneous PV rather than battery discharge, unintended home-battery discharge during EV sessions, peak grid current per phase, and net import/export cost. A dashboard can also show “charging paused to protect home reserve” or “charging scheduled for lower tariff” so family members know the system is acting intentionally.
Be careful with the phrase “100% solar”. If the battery was charged from solar yesterday and powers the EV today, the energy is solar-origin in one sense, but it is not same-time surplus solar and includes storage losses. State your metric: current PV diversion, renewable energy attribution, grid-import avoidance or total cost. The labels lead to different controllers and different results.
Frequently asked questions
Should I charge my EV or my home battery first?
Usually charge the home battery first if its stored energy is needed for expensive evening electricity or reliable backup, and use surplus PV for the car after its preferred target is reached. Prioritise the EV if its next departure is soon or if financial comparison favours direct car charging. Set the choice as a policy rather than treating one priority as universally best.
Can a home battery run my EV charger?
Electrically, stored battery energy may feed an ordinary AC EV load through a compatible grid-connected inverter, within the inverter’s and battery’s limits. That does not mean it is economical, desirable or possible during an outage. Check continuous output, discharge limit, reserve, permitted control modes and the relevant wiring. For islanded charging, see the separate EPS/backup guide.
Will solar-only mode automatically prevent the stationary battery discharging?
Not necessarily. Many chargers observe grid flow, and a hybrid inverter can hold that flow near zero while discharging. In some systems a carefully set export margin helps, while other systems require coordination with the inverter or direct battery-power feedback. Verify both battery flow and grid power under falling PV.
Is a 20% home-battery reserve enough?
There is no universal percentage. Reserve is a product of battery usable capacity, essential load expectation, weather, household preference and manufacturer limits. A 20% setting is neither a generic safety rule nor a guarantee of available backup power. Follow the inverter/battery manual and any installer-defined reserve policy.
Why does a three-phase wallbox often wait for more solar than a single-phase charger?
Mainstream AC EV charging commonly needs at least 6 A on each active phase. At typical European voltages this is roughly 1.4 kW on one phase but around 4.2 kW on three phases. Manufacturer-supported automatic phase switching can improve low-surplus charging, but the vehicle and wallbox must explicitly support it.
Should Home Assistant directly control battery charge or discharge current?
Only if the inverter manufacturer exposes documented, supported supervisory settings suitable for that purpose, and never as a way to bypass BMS protection. In many homes the best design is Home Assistant supervising EV charging while the battery’s native controller owns storage protection and dispatch. Avoid reverse-engineered control registers for safety-critical operating limits.
Can I charge my EV on cheap grid power while preserving the house battery?
Often yes, but you need compatible inverter controls or a deliberate schedule that prevents the stationary battery from covering the EV load. The vehicle schedule alone cannot enforce this. Confirm the actual battery power reading during the first overnight session and restore other operating modes as necessary.
How much buffer should I set to stop battery discharge?
No single margin works for all systems. myenergi’s hybrid-battery guidance suggests beginning with a small Export Margin (for example 50 W, sometimes 100–150 W) in its documented zappi configuration. Other chargers use different modes or may not offer this feature. The right setting depends on inverter response, sensor placement, minimum current and the installer’s verification.
Will a 7 kW charger trip a limited home supply?
A properly installed wallbox is configured for its circuit and connection, and approved dynamic load balancing can reduce its charging current when household load increases. A “7 kW” nameplate is not proof that 7 kW may always be drawn. Follow the installer-commissioned site and per-phase limits; Home Assistant optimisation must not be the sole overload safeguard.
Bottom line
Decide the priority first, measure every relevant energy flow second, and automate only within the certified limits of the installation. The stationary battery should not silently become an expensive fuel tank for the car unless that is a deliberate choice. Use manufacturer-approved charger and inverter features to respect supply capacity and battery reserves; use Home Assistant to coordinate optional solar, deadline and tariff preferences, with a documented fallback when readings or connectivity fail.
For most households, the most reliable first improvement is not another complex automation. It is to confirm that your existing wallbox really pauses on insufficient genuine surplus, that your battery SoC and discharge are visible, and that an overnight EV charging schedule does not accidentally defeat the plan. Once those behaviours are verified, tariff optimisation becomes both safer and more predictable.
Sources and further reading
- myenergi: Hybrid PV and battery setup — avoid draining — explains export margins and ECO+ configuration for compatible zappi systems.
- myenergi: zappi charging modes — documents FAST, ECO, ECO+, minimum charging current and green contribution settings.
- Wallbox: Solar Charging activation and user guide — minimum surplus, single/three-phase requirements and battery-system caveats.
- Home Assistant: Home energy management — correct approach to grid, solar, battery and individual-device accounting.
- Home Assistant: Integrating home batteries — supported energy monitoring and installer warning for CT measurement.
- Home Assistant: OpenEVSE integration — documented local EV charger entities, current control and prerequisites for solar diversion.
- GivEnergy: Understanding Eco Mode — example of stationary batteries discharging to meet ordinary household demand.
- GivEnergy: System Mode Settings — supported battery eco, timed and operating-range concepts.
- ESP32.co.uk: Solar surplus EV charging with Home Assistant
- ESP32.co.uk: Home battery EPS and backup outputs
- ESP32.co.uk: Measuring the real cost of EV charging
Editorial and safety note: This is an energy-management design guide, not a procedure for opening an electrical distribution board or changing EVSE, inverter or BMS safety settings. Equipment capabilities, software integrations, electrical rules, supply permissions and battery warranty conditions vary by location, model and firmware. Have a qualified electrician or authorised installer commission the equipment and confirm current manufacturer guidance before relying on a control strategy.
