Powering a microcontroller inductively from mains wire
If you want to monitor mains power precisely, you have to measure not only mains current but also mains voltage. When you measure mains voltage you can use a small transformer to power the microcontroller inductively because you already have a connection to both wires of mains. No energy harvesting necessary.