here is my sensor i cannot get this into the engery dashboard ,if i add state_class:total_increasing it will work unti HA refreshes then it removes state_class and the dashboard errors ,please help me make this into a new template sensor ,thank you
No matter what I try, I cannot get this template sensor to load. Any suggestions? Also, what file do I put this in other than customize.yaml? template.yaml or sensor.yaml?
Note that my template statement evaluates perfectly in Dev tools.
template:
- sensor:
- name: "Sum of all Battery Current draw"
value_template: >-
{{ states('sensor.battery_current') | float + states('sensor.inverter_2_battery_current') | float + states('sensor.inverter_3_battery_current') | float }}
unit_of_measurement: "A"
device_class: energy
```