I have two Energy Meters independent. One is the electricity generated by my solar system, and other is power consumption installed on my distribution board.
I’d like to know how could I create an entity to subtract Power consumption from Generated Energy. The result will be the Energy Returned.