Based on looking at the existing Tasmoto configuration, it appears to be a HLW8012 power sensor, correct? Found support in this in ESPHome https://esphome.io/components/sensor/hlw8012.html however there are some options which I need some more info.
What's the current resistor, and voltage divider values? Otherwise it looks like select pin is 12, CF1 is 5, and CF is 4. That seem correct?