Modbus without discrete_inputs or coils

My problem is, I don’t have discrete_inputs or coils. If I delete them in the config- > TOML config file error. If i fill the with dummy values, I just get a timeout, because there is nothing to read. So what should I do if I just want to use olding_registers and input_registers?

Am I doing something wrong?

Additionally:
this is the config file

[[inputs.modbus]]
  ## Device name
  name = "wrl"

  ## Slave ID - addresses a MODBUS device on the bus
  ## Range: 0 - 255 [0 = broadcast; 248 - 255 = reserved]
  slave_id = 20

  ## Timeout for each request
  timeout = "5s"



  # TCP - connect via Modbus/TCP
  controller = "tcp://192.168.1.32:502"

  ## Measurements
  ##

  ## Digital Variables, Discrete Inputs and Coils
  ## measurement - the (optional) measurement name, defaults to "modbus"
  ## name        - the variable name
  ## address     - variable address

  discrete_inputs = [
    ]
  coils = [
    ]

  ## Analog Variables, Input Registers and Holding Registers
  ## measurement - the (optional) measurement name, defaults to "modbus"
  ## name        - the variable name
  ## byte_order  - the ordering of bytes
  ##  |---AB, ABCD   - Big Endian
  ##  |---BA, DCBA   - Little Endian
  ##  |---BADC       - Mid-Big Endian
  ##  |---CDAB       - Mid-Little Endian
  ## data_type  - INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT32-IEEE, FLOAT64-IEEE (the IEEE 754 binary representation)
  ##              FLOAT32 (deprecated), FIXED, UFIXED (fixed-point representation on input)
  ## scale      - the final numeric variable representation
  ## address    - variable address

  holding_registers = [
    { name = "Auszentemperatur",      byte_order = "AB",   data_type = "UINT16", scale=0.1,   address = [30]},
    { name = "Fortlufttemperatur",    byte_order = "AB",   data_type = "UINT16", scale=0.1,   address = [31]},
	{ name = "Ablufttemperatur",      byte_order = "AB",   data_type = "UINT16", scale=0.1,   address = [32]},
	{ name = "Zulufttemperatur",      byte_order = "AB",   data_type = "UINT16", scale=0.1,   address = [33]},
 ]
  input_registers = [
    { name = "Lüftungsstufe",   byte_order = "AB",   data_type = "UINT16",   scale=0.1,     address = [2]},
  ]

Error on start of telegraf

The config file couldn't be validated by the TOML validator.

I suspect you have a typo in your config file somewhere or something else doesn’t fit in the config file.
The TOML parser already complains, this is not because of the configuration of the empty arrays.
Besides, the empty arrays should work, when I use your config snippet, the parser doesn’t complain for me.

Ticket can be closed - config works now…

What was the error?
Maybe others can learn from it?
You can mark the solution here in the forum, this is not a ticket system.

I really would love to tell you, but actually I don’t have a clue, what fixed my problem