I am trying to sum the energy consumption of 3 sensors (Mill brand ovens) .
Any ideas as to why these three sensors won’t sum unless all of them have a value other than 0?
Code:
kwh_po_hourly:
value_template: >
{{ '%0.1f' | format(states('sensor.kwh_po_soverommet_hourly') | float(0) +
states('sensor.kwh_po_barnerom_hourly:') | float(0) +
states('sensor.kwh_po_kontoret_hourly:') | float(0)) }}
unit_of_measurement: 'kWh'
friendly_name: Panelovner Samlet Forbruk per Time
Result below, where the bottom one should yield 0,18 (?)