Hi everyone, I need help because I don’t know how to do it, I need to create a sensor that shows me a negative value if I’m taking energy from the GRid and a positive value if I’m feeding it into the grid.
In home asistan I have two separate sensors one for import and the other for export
It’d help if you gave us details of the sensors, otherwise we need to make them up and then you need to convert our made-up sensors back to your real ones.
Create a template sensor in the UI (under Helpers) with this as the state template: