In case someone else even gets caught with this,

In case someone else even gets caught with this, I had built a Power monitor that counts the pulses on the Meter and also looks at the Tarif LED.

I was suffering intermittent boots with no pattern to why, was driving me crazy.
For this I was using pins D1/D2/D3 in this case which some of you may know D3 is GPIO0 and some may know GPIO0 is used for flashing the firmware ( I did not ) and so depending if the sensor on D3 had light (Tariff ) or not depended if it will boot.

I guess you used a nodemcu development board? It takes care of pulling gpio00 down and restarting the esp8266 when flashing new code. If you use any of the modules by them self, you need a pull-up resistor on gpio00, but after booting up, you can use that pin again for other things, as long as they tolerate the pull-up resistor being there.

Moving to an another pin was easiest