This is the all in one Solution based on and in collaboration with the home-assistant-glow from Klaas
Home Assistant Glow makes a (not so) smart meter without a P1 port easily readable, reading the pulse LED that is always present in most cases and it works with ESPHome!
please make sure that you have a maximal pulse rate of 5000p/kWh*
*there have been mixed results with 10000 p/kWh if you want to use the reader for more than 5000p/kWh it will be at your own risk
This reader can also be used for any other application having a "pulse" light.
you will have to modify the firmware though
Based on the home-assistant-glow project from Klaas