Modbus Error: Not connected[AsyncModbusTcpClient

I’m trying to integrate a Carlo Gavazzi EM24-E1-AV2 X meter into HA.

To do so, I’ve added these entries to the config.yaml file.
For testing, only with one sensor:

modbus:
  - name: EM24
    type: tcp
    host: 192.168.1.10
    port: 502
    sensors:
      - name: EM1 Phase 1 voltage
        address: 0
        slave: 1
        unique_id: em1_phase_1_voltage
        data_type: int32
        device_class: voltage
        input_type: input
        precision: 2
        scale: 0.1
        state_class: measurement
        swap: word
        unit_of_measurement: V

In homeassistance.log I get the follwing error:

2025-07-06 16:22:31.047 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-07-06 16:22:33.481 WARNING (MainThread) [pymodbus.logging] Failed to connect [Errno 111] Connect call failed ('192.168.1.10', 502)
2025-07-06 16:22:34.137 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: EM24: Error: device: 1 address: 0 -> Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.1.10:502]

What am I doing wrong?

I’m grateful for any advice.

I’d like to integrate multiple meters in the next step.

The connection works in the Carlo Gavazzi UCS7 configuration software:



I can also read the registers with Open Mod Scan:

I found the problem. Too embarrassing.

The same IP address was on the network twice.
Amazing that the manufacturer’s software and Open Mod Scan didn’t have any problems.

All good!