Hello guys I am currently trying to get bluelinky (node-red-contrib-bluelinky (node) - Node-RED) working with node-red and have it report status updates to openhab via the node red openhab rest api node-red-contrib-openhab2 (node) - Node-RED
This my current flow:
[
{
"id": "f6f2187d.f17ca8",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "7151f9b3.64a868",
"type": "car-status",
"z": "f6f2187d.f17ca8",
"name": "Get status",
"dorefresh": true,
"parsed": false,
"bluelinky": "e0bc8bf7.f937a8",
"x": 490,
"y": 180,
"wires": [
[
"8c0e1278.48eeb"
]
]
},
{
"id": "8c0e1278.48eeb",
"type": "change",
"z": "f6f2187d.f17ca8",
"name": "doorLock",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.status.doorLock",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 180,
"wires": [
[
"5e5c84cd.fa00bc"
]
]
},
{
"id": "73245381.663b7c",
"type": "openhab2-in",
"z": "f6f2187d.f17ca8",
"name": "",
"controller": "da3bb014.482e5",
"itemname": "GetBluelinkyStatus",
"x": 150,
"y": 180,
"wires": [
[
"8a29a69f.7baf48"
],
[]
]
},
{
"id": "5e5c84cd.fa00bc",
"type": "openhab2-out",
"z": "f6f2187d.f17ca8",
"name": "",
"controller": "da3bb014.482e5",
"itemname": "BLDoorLockStatus",
"topic": "ItemUpdate",
"payload": "",
"x": 910,
"y": 180,
"wires": [
[]
]
},
{
"id": "8a29a69f.7baf48",
"type": "switch",
"z": "f6f2187d.f17ca8",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "ON",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 330,
"y": 180,
"wires": [
[
"7151f9b3.64a868"
]
]
},
{
"id": "e0bc8bf7.f937a8",
"type": "bluelinky",
"username": "XXXXXXXXXXXXXX",
"password": "XXXXXXXXXXXXXX",
"region": "EU",
"pin": "XXXXXXXXXXXXXX",
"vin": "XXXXXXXXXXXXXX"
},
{
"id": "da3bb014.482e5",
"type": "openhab2-controller",
"name": "Openhab",
"protocol": "http",
"host": "localhost",
"port": "8080",
"path": "",
"username": "",
"password": ""
}
]
Is this the correct way to send data to an item ?