Modbus communication

Hello, quick question to the experts here. I am currently trying to set up Home Assistant. Among other things, I have the EVCC integration running. Now I wanted to query additional values from my inverter to use the uni-meter integration. For this, I have entered a test register query in the config.yaml:

modbus:

* name: Fox ESS
type: serial
port: /dev/ttyUSB0
baudrate: 9600
bytesize: 8
method: rtu
parity: E
stopbits: 1
sensors:
  * name: "39277"
slave: 247
address: 39277
input_type: holding
data_type: int16
scan_interval: 10
unit_of_measurement: "W"

My problem now is that as soon as I integrate this query, evcc no longer receives data. Can the Modbus query only work for one integration at a time?

You have not followed the required syntax. Please check the examples in the documentation. There is no “*” anywhere in that.

Also spacing (indentation is important in YAMl. Take note of the indentation in the examples closely.

depends might be the correct answer.
With modbus TCP I query my photovoltaics inverter from 3 different machine, one running a utility for storage diagnoses, then from within HA with it’s integrations and with a modbustester from my windowsmachine without any problems.

But I can force such issues you described since I could configure the tool for the battery data to fetch informations in realtime (permanent) down to once an hour or 10min or each 15sec.
And that makes a big difference.

Perhaps you should consider to play with

delay: xxx
message_wait_milliseconds: xxx
timeout: xxx

if one of these does make a difference. I remember that some devs even mention that their 3rd party integrations shouldn’t be used side by side with others, looks to me as if some modbus servers aren’t able to talk to multiple client same time.

Hey, thanks.
Do I only have to add the lines after the others?
Which value should I use for each of them?

Likely a trial’n’error process, in the end it all depends upon how responsive the modbus server is I’d say. There’s no common values as far as I know.

And there is no given order, I tend to put the required ones first followed by the ones which are opional, but thats my personal like and not a requirement.