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.