evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Energyflow: consumers drawing power show 0.0 kW

Open ghaeprv opened this issue 1 month ago • 1 comments

Is your feature request related to a problem? Please describe.

A consumer that draws power should never show 0.0.

The energy flow uses one unit for all entries, chosen from the largest of grid import, PV, battery and export (powerUnit() in Energyflow.vue). Once that value reaches 1,000 W, every entry is shown in kW with one decimal. A consumer drawing 40 W then reads 0.0 kW and looks like it is off.

A second, smaller annoyance: when PV or grid import hovers around 1 kW, the same consumer reads 200 W, then 0.2 kW, then 200 W again.

Describe the solution you'd like

Every consumer that draws power shows a non-zero value. Either of these would solve it for me:

  1. A setting in Settings > User interface, next to the distance unit: Power unit: Automatic (default) / W / kW. A fixed unit keeps one unit for all entries and also stops the flip.
  2. Three decimals in kW, so 1 W reads 0.001 kW and 40 W reads 0.040 kW.

Additional context

None.

🤖 Generated with Claude Code

ghaeprv avatar Oct 30 '26 19:10 ghaeprv

Confirmed in the code: powerUnit() in assets/js/components/Energyflow/Energyflow.vue picks one unit for all entries from the largest value, and Entry.vue formats with it, so small consumers round to 0.0 kW once the unit flips to kW. Both proposals (a fixed power unit setting in the UI settings, or more kW decimals) are feasible, but which one to take is a UX decision for the maintainers.

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 30 '26 19:10 github-actions[bot]