This can help with the logging.
You need a device to get the data. There are a couple options. I’m using the Aeon Smart Energy Switch 6 and this handler.