My Homebattery gives me SoC and Power values. Via integral I have generated the Energy value.
Goal is to use this in the enery dashboard but the dashbord editor requests statistics for “Energy charged into the battery” and “Energy discharged from the battery” See the red markings in the hardcopy.
Means: I have to separate the positive and negative power into two Energy integrals. How can I do this?
Environment: Home Assistant Green with OS v16.3 (and absolute HA beginner).
Of cause the solution is here in the community but I have been searching for several days with no success.
It either goes into configuration.yaml, or into a separate file depending on how you split your configuration.
But since writing template sensors in YAML appears to be new to you, I would recommend not messing with the YAML files and instead just create the sensors using the UI. The second post in that link shows that method.