Retired legacy template sensor for helper with statistics enabled.
This commit is contained in:
parent
8a6e5b416e
commit
0c2d11f7fa
@ -13,8 +13,6 @@ tts:
|
||||
language: "de-DE"
|
||||
- platform: google_translate
|
||||
language: "de"
|
||||
- platform: marytts
|
||||
language: "de"
|
||||
|
||||
# Include modules
|
||||
group: !include groups.yaml
|
||||
@ -40,22 +38,12 @@ mqtt: !include mqtt.yaml
|
||||
|
||||
# Template sensors
|
||||
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:
|
||||
- name: "Leckstrom"
|
||||
unit_of_measurement: "W"
|
||||
icon: mdi:flash
|
||||
state: >
|
||||
{% set total = states('sensor.line_power_total') | float %}
|
||||
{% set total = states('sensor.netzleistung') | float %}
|
||||
{% set raumduft = states('sensor.flur_raumduft_power') | float %}
|
||||
{% set keller = states('sensor.keller_power') | float %}
|
||||
{% set anrichte = states('sensor.kuche_anrichte_power') | float %}
|
||||
|
@ -152,7 +152,7 @@ sensor:
|
||||
id: temp_serverroom
|
||||
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.line_power_total
|
||||
entity_id: sensor.netzleistung
|
||||
id: power_total
|
||||
|
||||
- platform: homeassistant
|
||||
|
Loading…
Reference in New Issue
Block a user