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
{{ message }}
Repository navigation
Calculate and report EV charging energy cost #1545
For EV charging, show the energy delivered to the vehicle and its cost using the full variable electricity price. The user's charger is Easee.
Current FTW behavior
The energy ledger already records vehicle_charge for EV charger assets from session/lifetime counters or integrated power readings. The energy history view can show charger energy. It does not attribute that energy to price intervals or calculate a charging cost.
Expected behavior
Report delivered EV charging energy in kWh and cost for the selected history period.
Attribute measured energy to matching price intervals, including 15-minute and hourly prices.
Use FTW's configured consumer price, including spot, network tariff, per-kWh energy taxes and VAT. Keep the configured currency and price units consistent.
Preserve measurement provenance. If an interval has missing energy or price data, show the result as incomplete rather than silently treating it as zero or presenting a false exact total.
Keep EV charging totals scoped to vehicle charging so household import is not counted as EV energy.
Acceptance criteria
Easee session energy/counter readings are used when available, with the existing power-integration fallback.
Costs are tested across price boundaries and supported price resolutions, including missing price/measurement intervals.
History displays total EV charging kWh and cost for the selected period, with an indication when the total is incomplete.
Existing energy-history and household totals remain unchanged.
Activity