@barneyd I’m not very familiar with Node-Red but maybe this can help you. Below are my flows as well as a screenshot of how they look in the GUI. The darker green nodes with “msg.debug” in them are the debug nodes and they populate the debug window on the right hand panel. I didn’t connect the OH node until I could see things happening over there. They are currently deactivated, as symbolised by the half-hidden rectangle to the right of each node. If you’re having trouble you probably don’t want to hear this but I actually did very little configuration and it pretty much worked correctly for me on the first attempt, so there was no real troubleshooting or having to wrestle with settings to get this to work.
Hopefully the info below helps…
[
{
"id": "a198c74b.08af98",
"type": "tab",
"label": "TCP",
"disabled": false,
"info": ""
},
{
"id": "e557f99a.4d646",
"type": "tcp in",
"z": "a198c74b.08af98",
"name": "",
"server": "client",
"host": "192.168.1.4",
"port": "2101",
"datamode": "stream",
"datatype": "utf8",
"newline": "",
"topic": "",
"base64": false,
"x": 300,
"y": 160,
"wires": [
[
"4e31965b.aae1",
"6f67c0b2.62582"
]
]
},
{
"id": "4e31965b.aae1",
"type": "debug",
"z": "a198c74b.08af98",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 570,
"y": 200,
"wires": []
},
{
"id": "6f67c0b2.62582",
"type": "openhab2-out",
"z": "a198c74b.08af98",
"name": "",
"controller": "cab40e46.548e5",
"itemname": "Elk_Bridge",
"topic": "ItemUpdate",
"payload": "",
"x": 570,
"y": 120,
"wires": [
[]
]
},
{
"id": "4108b948.b90148",
"type": "openhab2-in",
"z": "a198c74b.08af98",
"name": "",
"controller": "cab40e46.548e5",
"itemname": "Elk_Bridge",
"x": 340,
"y": 360,
"wires": [
[
"fb896b5d.ff7438",
"688700d6.44531"
],
[]
]
},
{
"id": "fb896b5d.ff7438",
"type": "debug",
"z": "a198c74b.08af98",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 570,
"y": 400,
"wires": []
},
{
"id": "688700d6.44531",
"type": "tcp out",
"z": "a198c74b.08af98",
"host": "192.168.1.4",
"port": "2101",
"beserver": "client",
"base64": false,
"end": false,
"name": "",
"x": 600,
"y": 320,
"wires": []
},
{
"id": "cab40e46.548e5",
"type": "openhab2-controller",
"name": "OH3",
"protocol": "http",
"host": "localhost",
"port": "8080",
"path": "",
"username": "",
"password": ""
}
]