adds template sources

This commit is contained in:
2026-06-29 17:06:30 +02:00
parent 83820fec32
commit 6f784bac3c
4 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{% 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) }}