Home Assistant has recently introduced Energy Monitor.
Energy Management in Home Assistant - Home Assistant (home-assistant.io)
Which are the correct sensors to be used in the Configuration / Energy / Electricity Grid? The data is required in KwH . Please assist.