marstek-venus-rs485-node-red icon indicating copy to clipboard operation
marstek-venus-rs485-node-red copied to clipboard

[Improvement] Optionally expose individual phases to dashboard + strategies

Open nickles-lee opened this issue 8 months ago • 3 comments

Summary

Today the project exposes a single P1 reader / metric representing the aggregate wattage across all three phases.

That makes sense for most strategies from an economic/billing perspective, because Dutch billing looks at the net total. However, it prevents per-phase visibility and any future per-phase throttling / protection logic to help avoid overload on an individual phase.

This issue is to expand the current model so the dashboard and strategies can still use the aggregate P1 value [non-breaking], while also optionally receiving the three phase power ratings (L1 / L2 / L3).

Requested functionality

Expand from the dashboard and strategies seeing only the aggregate P1 metric to also supporting:

  • P1 aggregate
  • P1 phase 1
  • P1 phase 2
  • P1 phase 3

The aggregate metric should remain the primary/common path, but the three component phases should be available when the user has those sensors.

Details / Specs

1) Per-phase inputs should be optional / nullable

The provision of phase information should remain optional.

Proposed behavior:

  • Existing setups that only provide aggregate P1 should continue to work unchanged
  • phase_1, phase_2, and phase_3 inputs may be absent / null
  • Any per-phase UI or logic should only activate when those sensors are configured

This keeps the current simple setup intact while enabling more advanced 3-phase installations.

2) Add configurable "max power per phase"

Add a setting for:

  • Max power per phase
  • Default: 5500 W (25 A @ 220 V)

This would provide a configurable threshold for per-phase utilization calculations and future protection / shaving logic.

3) Add dashboard gauges for phase utilization

When per-phase sensors are specified, add dashboard gauges for L1 / L2 / L3 so users can immediately see utilization per phase.

An example of the type of gauge I currently use in Home Assistant:

type: gauge
entity: sensor.p1_meter_current_phase_1
needle: true
severity:
  green: 0
  yellow: 4400
  red: 5500
max: 7700

nickles-lee avatar Mar 16 '26 10:03 nickles-lee

Assuming that there's consensus that this is something that people want, I can raise a PR for this sometime in the near future.

nickles-lee avatar Mar 16 '26 11:03 nickles-lee

Add configurable "max power per phase"

I would also like this. I have a 3x25A grid connection. 2 of the 3 phases have a pv installation. The third has not.

I have 3 batteries. If the battery on the phase that has no pv is active, it is very possible to draw more than 25 ampere on that phase, tripping the main breaker.

Getting power from the grid while the 2 other phases are supplying power to the grid would accomplish this if I pull with another device more than 3000W (while NOM).

Example: L1: -2500W, L2: -4000W, L3: would go to +6500W for NOM, the battery only can get 2500W, but if I pull already 4000W with another device it would trip the main breaker.

It would be nice if I can somehow limit the power draw to eg 5200W, so the main breaker would never trip.

Thanks

Wimpie-ccc avatar Apr 23 '26 17:04 Wimpie-ccc

@Wimpie-ccc Could you take a look at https://github.com/gitcodebob/marstek-venus-rs485-node-red/issues/101 and see if that's matching what you're asking for?

The two intentions that I'm trying to solve for in there (and which I'll need to spend some time experimenting with):

  1. Charging MUST NOT exceed 25A per phase, and should throttle back or stop as needed
  2. If further throttling / charge stops are not sufficient, IRRESPECTIVE OF STRATEGY (unless in "Full Stop"), power should be supplied by phase-assigned batteries until power consumption is back within safety margins.

On point #1, it will be interesting to see how the current peak-shaving implementation interacts with P1-aware car chargers, which may also try to throttle (or max out a phase) at the same time. Possible that a "fairer" non-cooperative [power] congestion control algorithm may be needed.

nickles-lee avatar Jun 03 '26 16:06 nickles-lee