7 lines
397 B
Django/Jinja
7 lines
397 B
Django/Jinja
{% set totalWh = 3200 %}
|
|
{% set currentChargePercent = states('sensor.system_flos_bkw_sb_state_of_charge') | float(0) %}
|
|
|
|
{% set todayProductionWh = (states('sensor.balkon_solcast_pv_forecast_balkonsolar_forecast_remaining_today') | float(0)) * 1000 %}
|
|
{% set estimatedProductionPercent = 100 * (todayProductionWh / totalWh) %}
|
|
|
|
{{ (currentChargePercent + estimatedProductionPercent) | round(2) }} |