From 6e48e1838473424e46838baa721174a941632c80 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 24 Jun 2023 11:37:05 +0200 Subject: [PATCH] Fixed 'Leckstrom' template sensor to not go wild because of solar power. --- configuration.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.yaml b/configuration.yaml index 9109cd9..bc3aa48 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -45,6 +45,7 @@ template: icon: mdi:flash state: > {% set total = states('sensor.netzleistung') | float %} + {% set solar = states('sensor.balkonkraftwerk_power') | float %} {% set raumduft = states('sensor.flur_raumduft_power') | float %} {% set keller = states('sensor.keller_power') | float %} {% set anrichte = states('sensor.kuche_anrichte_power') | float %} @@ -56,7 +57,7 @@ template: {% set serverraum = states('sensor.serverraum_power') | float %} {% set heimkino_wz = states('sensor.wohnzimmer_heimkino_power') | float %} {% set spieleschrank = states('sensor.wohnzimmer_spieleschrank_power') | float %} - {{ (total - raumduft - keller - musik - bett - heimkino_sz - deko - schreibtisch - serverraum - heimkino_wz - spieleschrank) | round(1) }} + {{ (total + solar - raumduft - keller - musik - bett - heimkino_sz - deko - schreibtisch - serverraum - heimkino_wz - spieleschrank) | round(1) }} # calendar integration calendar: !include calendars.yaml