I added a battery, a heat pump and other devices to the solar system on my house and wanted a single system that could monitor this. I wanted a single energy monitoring system that could monitor energy imported and exported by multiple devices. After some iteration through different solutions I came up with the project detailed @ https://github.com/pjaos/ct6_meter_os. This link contains details of the hardware (schematic/pcb etc) and the source code of all the software used by the device and associated applications.