Retired legacy template sensor for helper with statistics enabled.

This commit is contained in:
Marcus Scholz 2023-05-08 18:15:16 +02:00
parent 8a6e5b416e
commit 0c2d11f7fa
2 changed files with 2 additions and 14 deletions

View File

@ -13,8 +13,6 @@ tts:
language: "de-DE" language: "de-DE"
- platform: google_translate - platform: google_translate
language: "de" language: "de"
- platform: marytts
language: "de"
# Include modules # Include modules
group: !include groups.yaml group: !include groups.yaml
@ -40,22 +38,12 @@ mqtt: !include mqtt.yaml
# Template sensors # Template sensors
template: template:
- sensor:
- name: "Line Power Total"
unit_of_measurement: "W"
icon: mdi:flash
unique_id: power.total
state: >
{% set phase_a = states('sensor.line_power_channel_a_power') | float %}
{% set phase_b = states('sensor.line_power_channel_b_power') | float %}
{% set phase_c = states('sensor.line_power_channel_c_power') | float %}
{{ (phase_a + phase_b + phase_c) | round(1) }}
- sensor: - sensor:
- name: "Leckstrom" - name: "Leckstrom"
unit_of_measurement: "W" unit_of_measurement: "W"
icon: mdi:flash icon: mdi:flash
state: > state: >
{% set total = states('sensor.line_power_total') | float %} {% set total = states('sensor.netzleistung') | float %}
{% set raumduft = states('sensor.flur_raumduft_power') | float %} {% set raumduft = states('sensor.flur_raumduft_power') | float %}
{% set keller = states('sensor.keller_power') | float %} {% set keller = states('sensor.keller_power') | float %}
{% set anrichte = states('sensor.kuche_anrichte_power') | float %} {% set anrichte = states('sensor.kuche_anrichte_power') | float %}

View File

@ -152,7 +152,7 @@ sensor:
id: temp_serverroom id: temp_serverroom
- platform: homeassistant - platform: homeassistant
entity_id: sensor.line_power_total entity_id: sensor.netzleistung
id: power_total id: power_total
- platform: homeassistant - platform: homeassistant