jmcollin78 / solar_optimizer

The Solar Optimizer integration for Home Assistant starts and stops your equipments depending on the Solar net production
MIT License
53 stars 10 forks source link

Energy buy price is zero #8

Closed HACS-bank closed 7 months ago

HACS-bank commented 7 months ago

Some power supply contracts do not pay for export energy

It would be logical for the energy buy price to be optional in which case, if not entered in config, treat as zero.

lostcontrol commented 7 months ago

Hijacking yet another thread since I didn't get any answer here and my question is related.

I'm pretty sure that every electricity supplier in the world is buying energy at a lower price than it is selling it. So isn't minimizing the energy import good enough? I'm trying to understand why energy price is actually required. Usually, you want to optimize your "auto-consommation" so just looking at energy should be enough to do the job, no?

jmcollin78 commented 7 months ago

I cannot optimize a function which is always 0. This make no sense. If you don't have price put 1 or what you want in the price but not 0.