Kód: Vybrat vše
template:
- sensor:
#din switch teplene cerpadlo
- name: "tep_cer_napeti"
state: >-
{{ states.switch.tepelne_cerpadlo_bazen.attributes.voltage | round(2) }}
unit_of_measurement: "V"
- name: "tep_cer_ampery"
state: >-
{{ states.switch.tepelne_cerpadlo_bazen.attributes.current | multiply(0.001) | round(2) }}
unit_of_measurement: "A"
- name: "tep_cer_spotreba"
state: >-
{{ states.switch.tepelne_cerpadlo_bazen.attributes.current_consumption | round(2) }}
unit_of_measurement: "W"
Kód: Vybrat vše
sensor:
# Spínač na tepelné čerpadlo
- platform: integration
name: Tepelné čerpadlo
source: sensor.tep_cer_spotreba
method: trapezoidal
unit_prefix: k
unit_time: h
round: 2