Hi everyone! I’m new in the forum.
A few weeks ago I bought a raspberry and OH installer. I’m testing with modbus rtu and a 16-input module.
I have a problem when I want to configure the read data.
I have managed to read one bit but my intention is to read 2 bytes.
When I configure modbus.data to read “Read Value Type int16” I get this error: Thing modbus: data: 5b885192e4: 68781dccb5 invalid readValueType: Only readValueType = ‘bit’ (or undefined) supported with coils or discrete inputs. Value type was: int16
I am attaching my confinguration and the manual for the 16-input module.
MODBUS SERIAL:
UID: modbus:serial:0fc829740d
label: ID1
thingTypeUID: modbus:serial
configuration:
baud: 9600
timeBetweenTransactionsMillis: 35
connectMaxTries: 1
stopBits: "1.0"
parity: none
receiveTimeoutMillis: 1500
dataBits: 8
echo: false
encoding: rtu
flowControlIn: none
port: /dev/ttyUSB0
flowControlOut: none
connectTimeoutMillis: 10000
id: 1
enableDiscovery: false
MODBUS POLLER:
UID: modbus:poller:0fc829740d:5b885192e4
label: ID1
thingTypeUID: modbus:poller
configuration:
start: 0
length: 16
refresh: 100
maxTries: 3
cacheMillis: 50
type: discrete
bridgeUID: modbus:serial:0fc829740d
MODBUS DATA:
UID: modbus:data:5b885192e4:68781dccb5
label: ID1
thingTypeUID: modbus:data
configuration:
readValueType: int16
readTransform: default
writeTransform: default
readStart: "0"
updateUnchangedValuesEveryMillis: 1000
writeMultipleEvenWithSingleRegisterOrCoil: false
writeMaxTries: 3
bridgeUID: modbus:poller:0fc829740d:5b885192e4
Very grateful for any help.