Skip to content

Commit

Permalink
Adds COP for heating and hot water
Browse files Browse the repository at this point in the history
  • Loading branch information
kr0ner committed Nov 16, 2024
1 parent 467d5d8 commit 5b2306c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions yaml/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,30 @@ sensor:
ESP_LOGI("SET", "Updating humidity to %f", x);
id(gFEUCHTE) = x;
#########################################
# #
# Template Sensors #
# #
#########################################
- platform: template
name: "COP WW TAG"
update_interval: $interval_very_slow
state_class: "measurement"
lambda: |-
if (id(WAERMEERTRAG_WW_TAG_SUMME_KWH).state && id(EL_AUFNAHMELEISTUNG_WW_SUMME_KWH).state && id(EL_AUFNAHMELEISTUNG_WW_SUMME_KWH).state != 0.0f)
return id(WAERMEERTRAG_WW_TAG_SUMME_KWH).state / id(EL_AUFNAHMELEISTUNG_WW_SUMME_KWH).state;
else
return 0.0f;
- platform: template
name: "COP HEIZ TAG"
update_interval: $interval_very_slow
state_class: "measurement"
lambda: |-
if (id(WAERMEERTRAG_HEIZ_TAG_SUMME_KWH).state && id(EL_AUFNAHMELEISTUNG_HEIZ_SUMME_KWH).state && id(EL_AUFNAHMELEISTUNG_HEIZ_SUMME_KWH).state != 0.0f)
return id(WAERMEERTRAG_HEIZ_TAG_SUMME_KWH).state / id(EL_AUFNAHMELEISTUNG_HEIZ_SUMME_KWH).state;
else
return 0.0f;
#########################################
# #
# Selects #
Expand Down

0 comments on commit 5b2306c

Please sign in to comment.