type=“input”
modbus.thing
Bridge modbus:tcp:WSRELAYID23 [ host="192.168.2.9", port=502, id=23, receiveTimeoutMillis="150", timeBetweenTransactionsMillis="50" ]
{
Bridge poller int8ID23 [start=255, length=1, refresh=500, type="input" ]{
Thing data Relay1 [ readStart="255.0", readValueType="bit" ]
}
}
log
2021-12-14 19:20:13.241 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from ONLINE to OFFLINE
2021-12-14 19:20:13.263 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from ONLINE to OFFLINE
2021-12-14 19:20:13.270 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from OFFLINE to ONLINE
2021-12-14 19:20:13.271 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from OFFLINE (CONFIGURATION_ERROR): readStart=X.Y is not allowed to be used with coils or discrete inputs! to OFFLINE (BRIDGE_OFFLINE): No online bridge
2021-12-14 19:20:13.273 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from OFFLINE (BRIDGE_OFFLINE): No online bridge to ONLINE
2021-12-14 19:20:23.892 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error (ModbusSlaveIOExceptionImpl) with read. Request: ModbusReadRequestBlueprint [slaveId=23, functionCode=READ_INPUT_REGISTERS, start=255, length=1, maxTries=3]. Description: ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception: SocketTimeoutException Read timed out', cause2=null). Message: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: SocketTimeoutException Read timed out', cause2=null
2021-12-14 19:20:23.895 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.core.io.transport.modbus.internal.ModbusSlaveIOExceptionImpl: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: SocketTimeoutException Read timed out', cause2=null
2021-12-14 19:20:23.896 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from OFFLINE (COMMUNICATION_ERROR): Error (ModbusSlaveIOExceptionImpl) with read. Request: ModbusReadRequestBlueprint [slaveId=23, functionCode=READ_INPUT_REGISTERS, start=255, length=1, maxTries=3]. Description: ModbusSlaveIOException(cause=ModbusIOException, EOF=false, message='I/O exception: SocketTimeoutException Read timed out', cause2=null). Message: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: SocketTimeoutException Read timed out', cause2=null to OFFLINE (BRIDGE_OFFLINE): No online bridge
type=“coil”
Bridge modbus:tcp:WSRELAYID23 [ host="192.168.2.9", port=502, id=23, receiveTimeoutMillis="150", timeBetweenTransactionsMillis="50" ]
{
Bridge poller int8ID23 [start=255, length=1, refresh=500, type="coil" ]{
Thing data Relay1 [ readStart="255.0", readValueType="bit" ]
}
}
event.log
2021-12-14 19:17:23.423 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:tcp:WSRELAYID23' changed from UNINITIALIZED to INITIALIZING
2021-12-14 19:17:23.435 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:tcp:WSRELAYID23' changed from INITIALIZING to ONLINE
2021-12-14 19:17:23.439 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from UNINITIALIZED to INITIALIZING
2021-12-14 19:17:23.450 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:poller:WSRELAYID23:int8ID23' changed from INITIALIZING to ONLINE
2021-12-14 19:17:23.473 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from UNINITIALIZED to INITIALIZING
2021-12-14 19:17:23.484 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'modbus:data:WSRELAYID23:int8ID23:Relay1' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): readStart=X.Y is not allowed to be used with coils or discrete inputs!
I do not know how i can read value of relay…