Hi, was wondering if someone could fix this template up. When my Solar Inverter stops producing power (ie After dark), then the below template sensor becomes unavailable probably because its not taking into effect that the Inverter is 0, i just dont know where to update the template?
#### Live Power Consumption As a Positive
- name: "Live Power Consumption As a Positive"
icon: mdi:transmission-tower-import
unit_of_measurement: "kWh"
state: "{{ states('sensor.fronius_inverter_utilisation_kwh')|float(0) + states('sensor.fronius_live_power_flow_kwh')|float(0) }}"
device_class: energy
state_class: total_increasing
availability: "{{ states('sensor.fronius_inverter_utilisation_kwh')|float(0) != 0 and states('sensor.fronius_live_power_flow_kwh')|float(0) != 0 }}"