Add optimistic flag to Modbus Select (#1949)

This commit is contained in:
stegm 2022-03-09 20:40:47 +01:00 committed by Jesse Hills
parent e09f8921a3
commit 7b568ad3df
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -62,6 +62,9 @@ Configuration variables:
- **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``. Defaults
to ``false``.
- **optimistic**: (*Optional*, boolean): Whether to operate in optimistic mode - when in this mode,
any command sent to the Modbus Select will immediately update the reported state. Defaults
to ``false``.
- All other options from :ref:`Select <config-select>`.