Untitled

From Colorant Echidna, 5 Months ago, written in YAML, viewed 1 times.
URL https://paste.linuxiarz.pl/view/545d4f9a Embed
Download Paste or View Raw
  1.  - platform: template
  2.     sensors:
  3.  
  4.       suma_fazy:
  5.         friendly_name: Phase summ
  6.         unit_of_measurement: "W"
  7.         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) }}"
  8.       konsumpcja:
  9.         friendly_name: Consumption
  10.         unit_of_measurement: "W"
  11.         value_template: "{{ states('sensor.suma_fazy') | float | round(0) + states('sensor.sofarsolar_ac_power') | float(1) | round(0) | default(0) }}"
  12.       bilans_energii:
  13.         friendly_name: Bilans energii
  14.         unit_of_measurement: "kWh"
  15.         value_template: "{{ states('sensor.0_electricity_meter_total_forward_active_energy') | float | round(0) - states('sensor.0_electricity_meter_total_reverse_active_energy') | float | round(0) }}"
  16.      

Reply to "Untitled"

Here you can reply to the paste above

captcha