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
260 stars 51 forks source link

Feature Request: Pd_max/Pc_max as runtime parameters #315

Open anline380 opened 1 week ago

anline380 commented 1 week 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 (The greatest thing would be as a timeslot/array). 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.