My Solar PV Battery app

I’m liking this new version, and am happy with the colour scheme it has settled on.

It dawned on me that the stacking of energies on the daily history is potentially misleading as the top of the bar doesn’t match consumption:

Total load on that 2nd day is 30 kWh, yet the bar reaches nearly 40!

The energy that attributed to charging (9.4 kWh) and discharging (7.6 kWh) the battery is partially counted twice (and some is lost). I think it’s impossible to properly show energy flow between 3 sources on a chart that only has 2 directions (positive and negative).

I have one possible alternative visualization, where only the 3 ‘to load’ energies gets stacked, with a black point for total consumption. Grid to battery shown as a red outline, solar to battery is the blue bit without outline and solar to grid (yellow) sits on top.

I don’t know if this is better, or that any single visualisation will work, or even if it matters at all. :man_shrugging:

I agree and have a similar feeling about the power graph. I wonder if we’re trying to present too much information, simply because we have it to hand. For example in the power graph (a) it’s a bit of a struggle to work out what is stacked and what is overlaid, and (b) the peak value measured off against the y-axis (the sum total of the stacked items) sometimes doesn’t seem to reflect anything useful.

@TrystanLea is it straightforward for you to describe the graph plotting and stacking logic with respect to the 7 flows?

It might be better to present less information in each graph, but endeavour to select that combination of elements which present a clear and unambiguous state of affairs. Perhaps more than one ‘view’ (i.e. power and energy graph) is required?

Apologies I am not able to spend very much time on this for the next few weeks and will be working from an iPhone, but will try and do what I can.

Thanks @Timbones @PeteF

Great.

Agreed and thanks for thinking through suggestions.

Yes maybe splitting out into different views in the daily mode makes most sense:

  • Consumption only by source (3 ‘to load’)
  • Solar to sink (use, battery, grid)
  • Battery charge by source (positive), discharge by sink (negative)
  • Everything as currently displayed..

A higher level question:

The current implementation of the MySolarPVBattery app also supports: Consumption only, Consumption + Battery only. Consumption + Solar only. Would it be better to rename the app: MyHome?

This might be suitable particularly when other loads are added: diverter, EV, heat pump - if this can be made to work sensibly.

If we do rename the app, it could enable a period of time where both the legacy version of the app and the new version are available in parallel. This could provide an extended period of proving out and refining the new implementation.

I think my view is “yes that makes sense” @glyn.hudson is of similar persuasion

Maybe MyEnergyFlow would be a better fit?

Thanks @Timbones ! I wonder if that would still fit if I merge in the tariff app..

I feel that the tariff explorer would be more useful if it was focused on daily costs, rather than half hourly energy flow, to avoid duplication.

For example:

  • purple is the actual cost, i.e. import × unit rate (+ standing charge)
  • orange is what it would have cost without solar: consumption × unit rate
  • blue is what I saved by importing cheap power at night: grid to battery × 90% × difference between night and day prices (assumes battery is discharged in same day)
  • grey is what it would have cost on the standard tariff: consumption × standard unit rate (+ standing charge)
  • green is revenue from exporting back to the grid
  • Y-axis is in £s

Zooming out to a year:

(When period is greater than 2 months, I like to show weekly instead of daily, then monthly above 1 year)

I would like the app to show me total cost or saving for the 5 series over the period in the graph. Average unit rate too.

  • Actual cost = £X (x.xxx p/kWh)
  • Standard cost = £Y (y.yyy p/kWh)
  • Export revenue = £Z
  • Solar saving = £A
  • Battery saving = £B

(Strictly speaking, some of the solar saving is provided by the battery and is difficult to separate. May need to tweak or define these terms better. Will also need localisation of currency symbols.)

If a second tariff is selected, I should be able to see which is cheaper. Maybe the graph only shows two sets of bars in this case.

  • Tariff 1 = £X (x.xxx p/kWh)
  • Tariff 2 = £Y (y.yyy p/kWh)

There does need to be a caveat about load shifting (or maybe some magic to automatically shift loads between cheap periods). My house is tuned to run on the Cosy schedule - if I switched to another TOU tariff, I’d need to adjust to a different schedule. A simple tariff comparison would not factor that in, and may provide inaccurate conclusions.

Sound like a job for Sankey…

Since the Solar Battery App is undergoing some changes, would it be possible to add support for showing the state of charge for multiple batteries?

As an example, I managed to hack the existing app a while back to produce this:

I’d like to try this new version, but don’t want to lose my separate SOC monitoring.

Thanks @ebsol are your batteries connected to the same inverter? do you just sum the charge/discharge powers?

Thanks @TrystanLea. My system has two identical inverters each with its own solar string and DC coupled battery. So, as you say, I sum the data and feed it to emonpi so it sees them as one single unit, but in addition I also send the SOC’s for each battery separately.

The inverters are meant to manage the SOC’s themselves to maintain the same levels. So if, for example, one string gets shadowed, the other will compensate by sending some power over AC to boost the level. But as you can see form my graph, I doesn’t do a perfect job, so I like to keep an eye on it.

To avoid the risk of continued stalling before reaching perfection :sweat_smile: I’ve merged the new MySolarPVBattery app into master and stable :tada:

It’s now called MyElectricFlow thanks @Timbones !

and it now integrated the tariff explorer in the same app - so as to reuse the same feed configuration and provide easy switching between energy and cost views for the same time window.

This is now included in v3.3.0 app module stable release: Release 3.3.0 · emoncms/app · GitHub.

The original mysolarpvbattery app and octopus/tariff explorer are still available for backwards compatibility in the short term.

Next steps

  • Add option to select different export tariffs.
  • Add a custom tariff schedule builder to enable creation simple time of use tariffs.
  • Place the older apps in an app archive section, e.g when you go to add a new app, it doesn’t show the older apps by default but provides an option to expand to show the older archived apps if useful for comparison/testing in the short term.
  • Update Solar PV documentation to use the new MyElectricFlow app.
  • Update Emoncms.org to use this and the latest changes to Emoncms core as well.

I will then come back to the more fundamental questions of how best to present the data that your exploring above @Timbones and further developments such as multiple SOC lines and other load types. Cheers all!

This is now done! It’s now live on Emoncms.org!

I’m liking MyElectricFlow.

In the future, would it be possible to have seperate import and export tariffs selected simultaneously?

Thanks @vworp yes absolutely, that’s on the plan :+1: