Start the Powercalc config flow, choose Virtual power (library), and pick Xiaomi → lumi.gateway.mgl03.
Add this to your configuration.yaml, replacing light.my_light with your own entity.
powercalc:
sensors:
- entity_id: light.my_light
manufacturer: xiaomi
model: lumi.gateway.mgl03