I’m also interested in a TCP binding for OH3. I use it for my door bell which is connected to a mobotix front door camera. Here my real world example.
The config file
# all parameters can be applied to both the TCP and UDP binding unless
# specified otherwise
# Port to listen for incoming connections
port=5100
# Cron-like string to reconnect remote ends, e.g for unstable connection or remote ends
#reconnectcron=0 0 0 * * ?
# Interval between reconnection attempts when recovering from a communication error,
# in seconds
#retryinterval=5
# Queue data whilst recovering from a connection problem (TCP only)
#queue=true
# Maximum buffer size whilst reading incoming data
#buffersize=1024
# Share connections within the Item binding configurations
itemsharedconnections=true
# Share connections between Item binding configurations
bindingsharedconnections=true
# Share connections between inbound and outbound connections
directionssharedconnections=false
# Allow masks in ip:port addressing, e.g. 192.168.0.1:* etc
addressmask=true
# Pre-amble that will be put in front of data being sent
#preamble=
# Post-amble that will be appended to data being sent
#postamble=\r\n
# Perform all write/read (send/receive) operations in a blocking mode, e.g. the binding
# will wait for a reply from the remote end after data has been sent
blocking=false
# timeout, in milliseconds, to wait for a reply when initiating a blocking write/read
# operation
#timeout=3000
# Update the status of Items using the response received from the remote end (if the
# remote end sends replies to commands)
updatewithresponse=false
# Timeout - or 'refresh interval', in milliseconds, of the worker thread
refreshinterval=250
# Timeout, in milliseconds, to wait when "Selecting" IO channels ready for communication
#selecttimeout=1000
# Used character set
charset=ASCII
The items file
Switch Klingel {tcp="<[ON:192.168.0.10:5100:'REGEX((ON))']", autoupdate="false" }
In addition I have a rule that send a push notification to the iOS App, a TTS on the echo dots and a message to the TV, so everyone will realize it in the house.
I would really appreciate a new TCP binding for OH3 in order to get rid of the second OH2 installation.
Best Regards,
Marcel