Hihome WPP-16S

Hi.
I have some WPP-16S flashed with tasmota, which i would like to convert to esphome devices
The tasmota template hihome wpp

Thesensor platform is a hlw8012, as i see it and I’m able to get Voltage and Power. I assume it is resistive power. And how do i get the remaining stuff out, like energy factor, reactive power etc, that the Tasmota device provide?
Anyone managed to convert that template?