I’m using PVPC official integration and I have to say it’s quite nice, but it could be improved by adding a new attribute
I did it manually with a sensor template but I really think the best approach is to have it integrated within the very same official HA integration:
Maybe @McGiverGim or @azogue can have a look and help or suggest. Thanks a lot!