Need help with modbus energy meter configuration

Hello, im pretty new to home assistant and I need some help with the set-up of my modbus energy meter. Im running 6 Enerdis memo4 through a modbus to tcp converter. I have been trying to make it work for two days but i dont know where is the problem.
Capture d’écran du 2023-10-12 15-11-04
Here is the code I have written.

For the moment I only want to be able to read the power going through one energy meter.

I’ll be very thankfull if anybody could help me or give me a tip or two,
Thank you.