Closed overas closed 10 months ago
Ok but what is your power production and consumption. If you constraint the grid power do you have enough available power to supply your load. Can you show the results table from the webui?
Here is the results table when I use default value for maximum_power_from_grid: 9000. If you want the results table for maximum_power_from_grid: 5310 I can arrange that too.
Here is the template for sensor.power_load_no_var_loads I use::
- sensor:
- name: "Power load no var loads"
unique_id: fbfeef21-1aa3-4a54-b781-426f46fef597
unit_of_measurement: W
device_class: power
state: >
{% set powerload = states('sensor.total_load_consumption') | float(default=0) %}
{% set vkbad1etg = states('sensor.varmekabel_bad1etg_electric_consumption_w') | float(default=0) %}
{% set vkbad2etg = states('sensor.varmekabel_bad2etg_electric_consumption_w') | float(default=0) %}
{% set vkgang = states('sensor.varmekabel_gang_electric_consumption_w') | float(default=0) %}
{% set vkgmlstue = states('sensor.varmekabel_gmlstue_electric_consumption_w') | float(default=0) %}
{% set vknystue = states('sensor.varmekabel_nystue_electric_consumption_w') | float(default=0) %}
{% set vkkjokken = states('sensor.varmekabel_kjokken_electric_consumption_w') | float(default=0) %}
{% set vvb = states('sensor.bryter_varmvannsbereder_electric_consumption_w') | float(default=0) %}
{% set value = (powerload - vkbad1etg - vkbad2etg - vkgang - vkgmlstue - vknystue - vkkjokken - vvb) | round(1,default=0) %}
{% if value < 0.0 %}
{{ 0.0 }}
{% else %}
{{ value }}
{% endif %}
For calculating the sensor.total_load_consumption for my house I use this template:
- name: "Total load consumption"
unique_id: c68d8562-abf0-42eb-8a72-e93e57b8b88a
unit_of_measurement: "W"
state: >
{% set imported = states('sensor.power_toraldasen_32')|float(0) %}
{% set pvproduced = states('sensor.ecu_current_power')|float(0) %}
{% set export = states('sensor.power_production_toraldasen_32')|float(0) %}
{{ (imported + pvproduced) - export}}
Take a look at your P_grid most of the time it is higher than 5300. So if you constraint that unfeasible condition seems inevitable here. You will need to reduce either the number of deferrable loads that you have, their maximum power or the total operating time of each deferrable load.
Thank you for your help. I going to try to reduce the deferrable loads or time of each deferrable load.
EMHASS add-on v0.5.4 Home Assistant 2024.1.2 Intel Nuc 5 with Hassos
When I use the maximum_power_from_grid: 5310, I get Status: Infeasible. When I use default value for maximum_power_from_grid: 9000 I get Status: Optimal.
Is this a bug or can I use maximum_power_from_grid: 9000 without any problem?
When running RESTful Command: trigger_forecast with maximum_power_from_grid: 5310:
When running RESTful Command: trigger_forecast with maximum_power_from_grid: 9000:
RESTful Command: trigger_forecast:
Emhass addon config:
root@5b918bf2-emhass:/data# cat options.json