WTH is there no easy Solar excess automation?

In the beautiful Energy dashboard, we should have a real easy accessible automation for using excess solar energy.

Currently we as noob users have to fiddle way too much.


  • when Solar is producing
  • we do not use all solar energy, and deliver back to grid
  • switch X,Y,Z on

Variable could be the amount of power. Eg:

  • switch small appliance when 100 watts available
  • switch big fat heater on when 2000 watts available

Thanks !

You can create one template sensor to calculate the “excess” and then use it in automation. I’m not sure how much simpler it can be. Only shortcoming is that templates can’t be create via UI yet.

I guess it can’t be so simple and universal that it is a point to automatically create such sensor. For example you may have a battery and then first prefer to charge that but for instance after 50% is charged you still continue but now consider this energy already excess for some other means (time to turn cooling more aggressive for instance).

hi Couger,

Well, not being in the GUI is such a big miss for a lot of the mainstream users. In my search for such a simple action, I did not find anything about templates.

I believe that this does need to be universal, at the moment a solar energy installation is detected by HA…

So in my opinion, this is exactly such a WTH scenario.

Here is an add-on that can help to maximize your solar production/consumption… but it is not as easy as you think because it is linked with a lot of factors: energy cost evolution during the day, solar production forecast vs real production, available consumption sources and corresponding power and so on… And one case is not another… This add-on is using the linear programming technique (well known in automation) and can be used to plan how to use your excess of solar production… Enjoy !


I did see this one already, but with WTH in mind: it should be easy for mainstream otherwise people don’t even start using it…


How about this one?

It looks like something the world needs to be a better place!
I guess this is custom?

1 Like

Not custom, just started with an empty automation and added the relevant entries.

The new GUI automation editor makes these easy.

When starting a new automation, we need to set a trigger as in your example.
Lot’s of choices, but no ‘Solar/ energy’ choice?
Where did you get the ‘excess solar’ in the first trigger?
I guess this must be a custom value?

Just to make one thing very clear:
In no way I intend to piss of other peoples hard work. This community is brilliant, but:

Whenever I speak to people of different classes and professions, everybody agrees that with current energy crisis and prices each and everything will help. Everybody loves projects like home-assistant and what you can do with it. However, for 90% of the people it is still too complicated. The Energy dashboard is a big leap with that in mind. It is easy, no technical or programming knowledge required, and insight is provided directly. Exactly that method is required for those millions of peoples currently hesitating.

If a small part of this community can contribute to these cases, on a large scale these things will ‘matter’.

Just think about the scenario where billions of households worldwide deliver 1-10 Kw less electricity to the grid, and how much savings this would make on a global scale for these electricity networks, and how much that would save on energy prices.

Just dreaming with my head in the clouds…

1 Like

That depends on your solar setup.

For my powerwall it is

For my SolarEdge inverters it is

Yeah it’s annoying and you will see the “how much easier can it be” responses all through WTH. People seem to get very defensive or think everyone is at their level of understanding… But as I always say, “you don’t know what you don’t know”.

Maybe we should rename WTH to WTP…(What’s the point) of bringing it up only to be shot down in flames by now knowledgeable members and moderators.

I’m on this journey myself.
Currently using a template sensor to take the house usage off the solar.
Thought process is to create an automation based off this value. I’m fortunate enough that there is a great integration with the Tesla API and so I can control the charge rate on the car.
Looking at scaling this as the solar excess changes and leaving my car plugged in on the drive to soak up any extra power during the day.
I agree an entity of Solar Surplus baked into home assistant would be awesome. Anything that avoids writing code into yaml files should be celebrated as a step towards being user friendly.
Don’t be put off making suggestions. Its the community of people striving to make this platform the best it can be that is so great. :+1:

1 Like

For everybody still looking for a solution, I implemented a pretty extensive PV / solar excess automation which can be configured via blueprints: PV / Solar Excess Optimizer: Auto-control appliances (wallbox, dish washer, heatpump, ...) based on excess solar power