Fixed 'Leckstrom' template sensor to not go wild because of solar power.
This commit is contained in:
parent
55e1a02544
commit
6e48e18384
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user