Completely new Energy monitoring, with cumulative import, export and consumption.
This commit is contained in:
@@ -38,26 +38,7 @@ utility_meter: !include utility_meters.yaml
|
||||
mqtt: !include mqtt.yaml
|
||||
|
||||
# Template sensors
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Leckstrom"
|
||||
unit_of_measurement: "W"
|
||||
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 %}
|
||||
{% set musik = states('sensor.kuche_musik_power') | float %}
|
||||
{% set bett = states('sensor.schlafzimmer_bett_power') | float %}
|
||||
{% set heimkino_sz = states('sensor.schlafzimmer_heimkino_power') | float %}
|
||||
{% set deko = states('sensor.schreibtisch_deko_power') | float %}
|
||||
{% set schreibtisch = states('sensor.schreibtisch_power') | float %}
|
||||
{% 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 + solar - raumduft - keller - musik - bett - heimkino_sz - deko - schreibtisch - serverraum - heimkino_wz - spieleschrank) | round(1) }}
|
||||
template: !include template.yaml
|
||||
|
||||
# calendar integration
|
||||
calendar: !include calendars.yaml
|
||||
|
Reference in New Issue
Block a user