Modbus default slave in actions (#39793)

This commit is contained in:
Claudio Ruggeri - CR-Tech 2025-07-01 13:20:05 +02:00 committed by GitHub
parent fb57fb870e
commit 34b96e078e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1733,7 +1733,7 @@ Description:
| Attribute | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hub | Hub name (defaults to 'modbus_hub' when omitted) |
| slave | Slave address (0-255) |
| slave | Slave address (0-255, defaults to 1 when omitted) |
| 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 |