mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
use_write_multiple for modbus_controller number and output (#1713)
This commit is contained in:
parent
f3565db673
commit
7793d61fa1
@ -53,6 +53,7 @@ Configuration variables:
|
||||
- **write_lambda** (*Optional*, :ref:`lambda <config-lambda>`): Lambda called before send.
|
||||
Lambda is evaluated before the modbus write command is created.
|
||||
- **multiply** (*Optional*, float): multiply the new value with this factor before sending the requests. Ignored if lambda is defined.
|
||||
- **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.
|
||||
|
||||
|
||||
All other options from :ref:`Number <config-number>`.
|
||||
|
@ -33,6 +33,7 @@ Configuration variables:
|
||||
- **multiply** (*Optional*, float): multiply the new value with this factor before sending the requests. Ignored if lambda is defined.
|
||||
- **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.
|
||||
|
||||
All other options from :ref:`Output <config-output>`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user