For the hardware part, see my instructable: https://www.instructables.com/id/Read-Your-Main-Power-Electricity-Meter-ESP8266-WiF/
For the hardware part, see my instructable: https://www.instructables.com/id/Read-Your-Main-Power-Electricity-Meter-ESP8266-WiF/