-**address** (**Required**, int): start address of the first register in a range
-**value_type** (**Required**): datatype of the modbus register data. The default data type for modbus is a 16 bit integer in big endian format (MSB first)
-``U_WORD`` (unsigned 16 bit integer from 1 register = 16bit)
-``S_WORD`` (signed 16 bit integer from 1 register = 16bit)
-``U_DWORD`` (unsigned 32 bit integer from 2 registers = 32bit)
-``S_DWORD`` (signed 32 bit integer from 2 registers = 32bit)
-``U_DWORD_R`` (unsigned 32 bit integer from 2 registers low word first)
-``S_DWORD_R`` (signed 32 bit integer from 2 registers low word first)
-``U_QWORD`` (unsigned 64 bit integer from 4 registers = 64bit)
-``S_QWORD`` (unsigned 64 bit integer from 4 registers = 64bit)
-``U_QWORD_R`` (unsigned 64 bit integer from 4 registers low word first)
-``U_QWORD_R`` signed 64 bit integer from 4 registers low word first)
-``FP32`` (32 bit IEEE 754 floating point from 2 registers)
-``FP32_R`` (32 bit IEEE 754 floating point - same as FP32 but low word first)
Lambda is evaluated before the modbus write command is created. The value is passed in as ``float x`` and an empty vector is passed in as ``std::vector<uint16_t>&payload``.
- for ``register_type: holding``: empty vector for the payload. The lamdba can add 16 bit raw modbus register words.
- for ``register_type: coil``: empty vector for the payload. If payload is set in the lambda it is sent as a custom command and must include all required bytes for a modbus request
note: because the response contains data for all registers in the same range you have to use ``data[item->offset]`` to get the first response byte for your sensor.
-**register_type** (*Optional*): ``coil`` to create a binary outout or ``holding`` to create a float output.
-**multiply** (*Optional*, float): multiply the new value with this factor before sending the requests. Ignored if lambda is defined. Only valid for ``register_type: holding``.
-**offset** (*Optional*, int): only required for uncommon response encodings
offset from start address in bytes. If more than one register is read a modbus read registers command this value is used to find the start of this datapoint relative to start address. The component calculates the size of the range based on offset and size of the value type
-**use_write_multiple** (*Optional*, boolean): By default the modbus command ``Preset Single Registers`` (function code 6) is used for setting the holding register if only 1 register is set. If your device only supports ``Preset Multiple Registers`` (function code 16) set this option to true.