Using PZEM and additional CT sensor

Hi~~~~

I’ve successfully connect PZEM-004T and bunch of additional CT by using ADS1115 to Home Assistant, I would like to create simple watt meter for each circuit (CT) by using voltage and power factor value from PZEM-004T and current from each CT to calculate wattage.

I have find and read some info but I’m not familiar with ESPHome and still can’t figure out how write the code to call value and do calculation.

Has anyone know how to do it? Thanks you :slight_smile: