Skip to content

Instantly share code, notes, and snippets.

@papercodeIN
Last active June 21, 2024 04:16
Show Gist options
  • Select an option

  • Save papercodeIN/65167778bf21645c88ceef2b7526d673 to your computer and use it in GitHub Desktop.

Select an option

Save papercodeIN/65167778bf21645c88ceef2b7526d673 to your computer and use it in GitHub Desktop.
How to Write or Update BACnet IP Device Tag Values from Node-RED Dashboard
[
{
"id": "861e3ad6dca0b27a",
"type": "tab",
"label": "BACnet Write from Dashboard",
"disabled": false,
"info": "",
"env": []
},
{
"id": "a6222d33942a7850",
"type": "BACnet-Write",
"z": "861e3ad6dca0b27a",
"name": "Comfort Setpoint",
"objectType": "2",
"instance": "be3b468b.f01078",
"valueTag": "0",
"valueValue": "",
"propertyId": "85",
"priority": "9",
"device": "fc59ddc.809d92",
"server": "e6879e9.486886",
"multipleWrite": false,
"x": 574,
"y": 60,
"wires": [
[]
]
},
{
"id": "c6ff7619c5bedf36",
"type": "function",
"z": "861e3ad6dca0b27a",
"name": "Format Payload",
"func": "msg.payload = {\n values: [\n {\n type: 4, // BACnet 'REAL' type\n value: msg.payload // Use the payload value directly\n }\n ]\n};\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 60,
"wires": [
[
"a6222d33942a7850"
]
]
},
{
"id": "7ea4c2a2a6a00ee6",
"type": "ui_slider",
"z": "861e3ad6dca0b27a",
"name": "Comfort Setpoint",
"label": "Comfort Setpoint",
"tooltip": "",
"group": "7ba5b5c6.c89f5c",
"order": 18,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": 0,
"max": "50",
"step": "1",
"className": "",
"x": 174,
"y": 60,
"wires": [
[
"c6ff7619c5bedf36"
]
]
},
{
"id": "d5029c7dd7357ad8",
"type": "ui_slider",
"z": "861e3ad6dca0b27a",
"name": "ECO+ Setpoint",
"label": "ECO+ Setpoint",
"tooltip": "",
"group": "7ba5b5c6.c89f5c",
"order": 18,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": 0,
"max": "50",
"step": "1",
"className": "",
"x": 164,
"y": 120,
"wires": [
[
"07b0a25cb9af95ad"
]
]
},
{
"id": "07b0a25cb9af95ad",
"type": "function",
"z": "861e3ad6dca0b27a",
"name": "Format Payload",
"func": "msg.payload = {\n values: [\n {\n type: 4, // BACnet 'REAL' type\n value: msg.payload // Use the payload value directly\n }\n ]\n};\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 120,
"wires": [
[
"30e5f5433fccc80a"
]
]
},
{
"id": "30e5f5433fccc80a",
"type": "BACnet-Write",
"z": "861e3ad6dca0b27a",
"name": "ECO+ Setpoint",
"objectType": "2",
"instance": "deba93c3.e6e0b8",
"valueTag": "0",
"valueValue": "",
"propertyId": "85",
"priority": "9",
"device": "fc59ddc.809d92",
"server": "e6879e9.486886",
"multipleWrite": false,
"x": 564,
"y": 120,
"wires": [
[]
]
},
{
"id": "ed56e0a1c7ff6da6",
"type": "ui_slider",
"z": "861e3ad6dca0b27a",
"name": "Vacancy Setpoint",
"label": "Vacancy Setpoint",
"tooltip": "",
"group": "7ba5b5c6.c89f5c",
"order": 18,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": 0,
"max": "50",
"step": "1",
"className": "",
"x": 174,
"y": 180,
"wires": [
[
"4cf601936383aa24"
]
]
},
{
"id": "4cf601936383aa24",
"type": "function",
"z": "861e3ad6dca0b27a",
"name": "Format Payload",
"func": "msg.payload = {\n values: [\n {\n type: 4, // BACnet 'REAL' type\n value: msg.payload // Use the payload value directly\n }\n ]\n};\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 180,
"wires": [
[
"611359a1f4d8fd6d"
]
]
},
{
"id": "611359a1f4d8fd6d",
"type": "BACnet-Write",
"z": "861e3ad6dca0b27a",
"name": "Vacancy Setpoint",
"objectType": "2",
"instance": "d6dc8e69d0d97d5e",
"valueTag": "0",
"valueValue": "",
"propertyId": "85",
"priority": "9",
"device": "fc59ddc.809d92",
"server": "e6879e9.486886",
"multipleWrite": false,
"x": 574,
"y": 180,
"wires": [
[]
]
},
{
"id": "be3b468b.f01078",
"type": "BACnet-Instance",
"name": "Comfort SP",
"instanceAddress": "1"
},
{
"id": "fc59ddc.809d92",
"type": "BACnet-Device",
"name": "BACnet Device IP Address",
"deviceAddress": "192.168.1.8"
},
{
"id": "e6879e9.486886",
"type": "BACnet-Client",
"name": "Local System IP Address",
"adpuTimeout": "15000",
"port": "47808",
"interface": "192.168.1.5",
"broadcastAddress": "192.168.1.255"
},
{
"id": "7ba5b5c6.c89f5c",
"type": "ui_group",
"name": "Default",
"tab": "7a08c1ba.e16cf",
"order": 1,
"disp": false,
"width": "8",
"collapse": false,
"className": ""
},
{
"id": "deba93c3.e6e0b8",
"type": "BACnet-Instance",
"name": "ECO+ Setpoint",
"instanceAddress": "2"
},
{
"id": "d6dc8e69d0d97d5e",
"type": "BACnet-Instance",
"name": "Vacancy Setpoint",
"instanceAddress": "3"
},
{
"id": "7a08c1ba.e16cf",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment