Not using these plugs but you may check here: Arlec Grid Connect Smart Plug In Socket With Energy Meter (PC191HA or PC191BKHA) | devices.esphome.io or here: Energy consumption and Arlec Grid Connect (Tuya) smart plug - #85 by Mahko_Mahko for code example