Quite easy way to fetch all measurements from your electricity meter - also with solar - positive and negative counter. I used the IR reader from weidmann-elektronik.de Which is connected by USB with the HomeAssistant Raspberry Pi. And configured with the following lines from the configuration.yaml as described in the documentation
sensors:
- platform: edl21
name: Stromzaehler
serial_port: /dev/ttyUSB0
Then you can configure your energy dashboard with the different sources and it looks finally like this