Modbus communication error battery Varta.Wall

Hi All,

i am struggling at the very beginning to establish a modbus communication with the Varta.Wall battery storage.
Setup looks as following.

  1. HA on raspi, connected to Fritzbox
  2. Varta Wall connected to Fritzbox

Trying to use a very simple configuration to just read the serial number of the battery:

I added the following to the configuration.yaml

modbus:
name: “mb_varta”
type: tcp
host: 192.168.178.97 # replace with your ip of the your varta
port: 502
delay: 1
timeout: 3
message_wait_milliseconds: 250
sensors:
### Serial Number
- name: mb_varta_serial
slave: 1
address: 1054
count: 10
data_type: string
precision: 0
scale: 1

In the protocol i get the following error:

Logger: pymodbus.logging
Quelle: components/modbus/modbus.py:316
Erstmals aufgetreten: 16:54:07 (34 Vorkommnisse)
Zuletzt protokolliert: 17:27:11

Failed to connect [Errno 111] Connect call failed (‘192.168.178.97’, 502)

Does anyone has the same issue. Could you give me some hints how to trouble shoot the connection error? I guess i miss something stupid from beginning.

Thanks

Have you tried the Protocol Wizard that may help you understand your configuration challenges?

Can you also please use the </> forum formatting when posting logs etc, to make them more readable, and help see if your yaml spacing may be incorrect.