Combine 3 solar panel groups in Forecast.Solar

Hi,

Disclaimer : I am not a coder! I just started using HA (loving it) and so far the built-in cards/sensors/integrations work perfectly. However, I am now trying to optimise my solar production.

Situation : I have solar panels on 3 roofs with different orientations. I managed to add all three of them with the Forecast.Solar Integration, and the option to add them as a forecast on the Energy Dashboard appears. All good so far. What I wish to do is to combine all three “versions” so as to get one simple value that I could use in other dashboards/cards or even use in automations.

So my question is : how do I combine three solar panel datas in Forecast.Solar? It says to create a template sensor - but how? What is the yaml coding for that??

Side question : with the free version of Forecast.Solar, the forecast is not based on weather correct??

Thank you so much for your help!

Kind regards.

2 Likes

Hi -

In general, template sensor Yaml will go either into your Config.yaml or if your system is set up into Template.Yaml.

This is an example of adding two sensors together. This will create a new entity you can define and then use for your frontend/automations/energy meter/etc.

 - platform: template
    sensors:
      powermon_totalsolar:
        friendly_name: "Solar Generation - Total"
        value_template: “{{ states(‘sensor.powermon_housesolar’) | float + states(‘sensor.powermon_shedsolar’) | float }}”
        unit_of_measurement: 'watts'

You would just add a third state for your total power.

1 Like

And you are correct, this forecast takes in effect the location and historical forecast - but does not take in effect on current or predictive weather.

I don’t get a ton of value in the kWh totals, but I use it for the peak time of day.

This really helped me. THANK YOU!!!

1 Like