InventoCasa / ha-advanced-blueprints

Advanced Blueprints combined with pyscript for extra useful automations
139 stars 33 forks source link

feat: turn off lower priority devices #69

Closed carlossg closed 2 weeks ago

carlossg commented 1 month ago

when higher priority ones can be turned on

fixes #55

It computes the power being generated that would be available if all the lower priority devices were switched off If the power is greater than the power needed for this appliance then start shutting down lower priority devices

Maik7 commented 1 month ago

Hi Carlos, thanks for your contribution. I think one detail is missing: not all running appliances can be switched off, they can be appliance_on_only appliances or the appliance_switch_interval is not fulfilled. But this kind of enhancement is a big step forward for this project. I am testing a similar solution, but first I need to get another pull request implemented (to switch on high prioritized appliances, even if the solar excess is sufficient for a fraction of the needed energy only).

carlossg commented 2 weeks ago

moved to #72