This paste brought to you by paste.linuxiarz.pl. View Raw
- platform: template
sensors:
suma_fazy:
friendly_name: Phase summ
unit_of_measurement: "W"
value_template: "{{ states('sensor.0_electricity_meter_power_active_phase_1') | float | round(0) + states('sensor.0_electricity_meter_power_active_phase_2') | float | round(0) + states('sensor.0_electricity_meter_power_active_phase_3') | float | round(0) }}"
konsumpcja:
friendly_name: Consumption
unit_of_measurement: "W"
value_template: "{{ states('sensor.suma_fazy') | float | round(0) + states('sensor.sofarsolar_ac_power') | float(1) | round(0) | default(0) }}"