davidusb-geek / emhass

emhass: Energy Management for Home Assistant, is a Python module designed to optimize your home energy interfacing with Home Assistant.
MIT License
316 stars 64 forks source link

Feature Request: Pd_max/Pc_max as runtime parameters #315

Closed anline380 closed 5 months ago

anline380 commented 5 months ago

HI David , I have been using EMHASS since the first version and I am happy and grateful for how this project has developed over the last few years. Currently EMHASS runs great for me as HA Add-On, but I think there is one relevant feature missing for home storage systems (I hope I haven't overlooked anything).

Would it be possible to implement Pd_max: The maximum discharge power and Pc_max: The maximum charge power as runtime parameters. A very relevant application scenario would be, for example, to load the Home Storage gently or the Spot Price Market. I am currently setting the Solaredge - Storage Charge Limit from a maximum of 5000W to 1500W via HA. With EMHASS you would now have to set Pd_max (currently only via config) to 1500 during the runtime so that the System know whether the desired SOC, e.g. 100, is achieved at the end of the day with max 1500W charging power. If the Home Storage needs to be charged quickly, e.g. bad weather or hours with a low spot price, you can set Pd_max/Pc_max back to 5000 using the runtime parameter.

In addition to gentle charging, you could also charge the battery so that no clipping occurs. (If the storage is full, for example, I can only use 10kW instead of 14kW DC )

davidusb-geek commented 5 months ago

Hi, yes this can be added to the set of parameters that could be set at runtime. I will try to add this to the following release.

anline380 commented 5 months ago

That would be really great. I think it would be a game changer not just for me. Thank you very much in advance, Manuel🤗

anline380 commented 5 months ago

A big Thank you for the very quick implementation, the update works excellent.👍👍