Slave unit removed in modbus service calls. (#28871)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
jan iversen 2023-09-12 11:31:34 +02:00 committed by GitHub
parent ba809beda1
commit 1131ff6688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1538,8 +1538,7 @@ Description:
| Attribute | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hub | Hub name (defaults to 'modbus_hub' when omitted) |
| unit | Slave address (0-255), alternative to slave |
| slave | Slave address (0-255), alternative to unit |
| slave | Slave address (0-255) |
| address | Address of the Register (e.g. 138) |
| value | (write_register) A single value or an array of 16-bit values. Single value will call modbus function code 0x06. Array will call modbus function code 0x10. Values might need reverse ordering. E.g., to set 0x0004 you might need to set `[4,0]`, this depend on the byte order of your CPU |
| state | (write_coil) A single boolean or an array of booleans. Single boolean will call modbus function code 0x05. Array will call modbus function code 0x0F |
@ -1565,7 +1564,7 @@ To write a float32 datatype register use network format like `10.0` == `0x412000
service: modbus.write_register
data:
address: <target register address>
unit: <target slave address>
slave: <target slave address>
hub: <hub name>
value: [0x4120, 0x0000]
```