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

Feature Request: Add possibility to add minimum power in P_deferrable_nom #129

Open robinostlund opened 8 months ago

robinostlund commented 8 months ago

HI, First of, awesome work with this tool it is awesome and looking forward for new features in upcoming releases 😄

Anyway, i have a feature request and that is to be able to specify the minimal power that a defferable load can handle. For example i have an ev charger where i specify the max power it can use today but it can only charge my car if the power is above 6a per phase, so around 4140w is the minimum otherwise the charger wont start.

Brg Robin

davidusb-geek commented 8 months ago

Yes this could be nice. I've reluctant to add this because this will add more constraints to the optimization problem but I understand that it can be useful in some context.

davidusb-geek commented 5 months ago

This was added to the development to do list.

Just for reference here is an example on how to implement the minimum power that a deferrable load can handle, otherwise it disconnect: self.optim_conf['P_deferrable_min'][k]. Use this: https://stackoverflow.com/questions/24449959/linear-programming-constraint-x-c-or-x-0

@michaelpiron could you be interested in contributing to this?