UNPKG

node-red-contrib-uhppoted

Version:

A set of nodes for the UHPPOTE Wiegand Access Controller

1,925 lines 170 kB
[ { "id": "a640a000.d83cb", "type": "tab", "label": "1-get-devices", "disabled": false, "info": "# get-devices: basic example\n\nIssues a _get-devices_ broadcast command and displays the received information for the access controller with serial number 405419896.\n\nThe _get-devices_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "f0ca7ab6.b09058", "type": "tab", "label": "2-get-device", "disabled": false, "info": "# get-device: basic example\n\nIssues a _get-device_ command to the controller with serial number 405419896.\n\nThe _get-device_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "8bcf2d43.2e243", "type": "tab", "label": "3-IPv4", "disabled": false, "info": "# set-ip: basic example\n\nIssues a _set-ip_ command to set the IPv4 address, netmask and gateway for the controller with serial number 405419896.\n\nThe _IPv4_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "c56e1667.998748", "type": "tab", "label": "4-listen", "disabled": false, "info": "# event-listener: basic examples\n\nBasic examples for the _listen_, _get-listener_ and _set-listener_ nodes.\n\n - The _listen_ example establishes a listening node on startup that publishes received events to the debug window\n\n - the _get-listener_ example retrieves the current event listener IP address and port for the controller with serial number 405419896.\n\n - the _set-listener_ example sets '192.168.1.100:60001' as the event listener IP address and port for the controller with serial number 405419896.\n\nThe _listen_ flow in the _dashboard_ flowset contains a more complete example.\n" }, { "id": "b2b669ed.2b50b8", "type": "tab", "label": "5-status", "disabled": false, "info": "# get-status: basic example\n\nIssues a _get-status_ command to the controller with serial number 405419896 and publishes the received status to the debug pane.\n\nThe _status_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "f7a455cc.3fefe8", "type": "tab", "label": "6-time", "disabled": false, "info": "# system date/time: basic examples\n\nBasic examples for the _get-time_ and _set-time_ nodes.\n\n - the _get-time_ example retrieves the current system date and time from the controller with serial number 405419896.\n\n - the _set-time_ example sets the system date and time for the controller with serial number 405419896 to the current time\n\nThe _time_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "86bbf50e.a7f188", "type": "tab", "label": "7-doors", "disabled": false, "info": "# door control: basic examples\n\nBasic examples for the _get-door-control_, _set-door-control_ and _open-door_ nodes.\n\n - the _get-door-control_ example retrieves the current open delay to 5 seconds and control state for door 1 from the controller with serial number 405419896.\n\n - the _set-door-control_ example sets the open delay to 5 seconds and control state to 'normally closed' for door 1 on the controller with serial number 405419896.\n\n - the _open-door_ example opens door 1 on the controller with serial number 405419896 to the current time\n\nThe _doors_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "2a36b650.4b9b7a", "type": "tab", "label": "8-cards", "disabled": false, "info": "# card management: basic examples\n\nBasic examples for the _get-cards_, _get-card_, _get-card-by-index_, _put-card_, _delete-card_ and _delete-cards_ nodes.\n\n - the _get-cards_ example retrieves the number of stored card records from the controller with serial number 405419896.\n\n - the _get-card_ example retrieves the card record for card number 65538 from the controller with serial number 405419896.\n\n- the _get-card-by-index_ example retrieves the card record at record #3 from the controller with serial number 405419896.\n\n - the _put-card_ example stores card number 61532836 (valid from 2021-01-01 to 2021-13-31 and with access to doors 1, 3 and 4) to the controller with serial number 405419896.\n\n - the _delete-card_ example deletes the card record for card number 61532836 from the controller with serial number 405419896.\n\n - the _delete-cards_ example deletes all card records from the controller with serial number 405419896.\n\nThe _cards_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "590b5d52.6f70e4", "type": "tab", "label": "9-time-profiles", "disabled": false, "info": "" }, { "id": "66c3d22e.434c7c", "type": "tab", "label": "10-tasklist", "disabled": false, "info": "" }, { "id": "b5da19a5.72a0c8", "type": "tab", "label": "11-events", "disabled": false, "info": "# event retrieval: basic examples\n\nBasic examples for the _get-event-index_, _set-event-index_ and _get-event_ nodes.\n\n - the _get-event-index_ example retrieves the current 'downloaded event index' from the controller with serial number 405419896.\n\n - the _set-event-index_ example set the 'downloaded event index' to 17 for the controller with serial number 405419896.\n\n - the _get-event_ example retrieves the event record at record #3 from the controller with serial number 405419896.\n\nThe _events_ flow in the _dashboard_ flowset contains a more complete example." }, { "id": "084b05a6c596f92a", "type": "tab", "label": "12-set-pc-control", "disabled": false, "info": "", "env": [] }, { "id": "093e8f2cad65974a", "type": "tab", "label": "13-restore-default-parameters", "disabled": false, "info": "", "env": [] }, { "id": "cf35d9904542f0af", "type": "uhppoted-config", "name": "examples", "timeout": "2500", "bind": "192.168.1.100", "broadcast": "192.168.1.255:60000", "listen": "192.168.1.100:60001", "controllers": "{\"303986753\":{\"address\":\"192.168.1.100:60000\",\"broadcast\":false},\"405419896\":{\"address\":\"192.168.1.100:60000\",\"broadcast\":true}}", "debug": true }, { "id": "31429769.0664e8", "type": "debug", "z": "a640a000.d83cb", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 520, "y": 60, "wires": [] }, { "id": "82a8517a.6ef88", "type": "inject", "z": "a640a000.d83cb", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "test-get-controllers", "payload": "{}", "payloadType": "json", "x": 130, "y": 100, "wires": [ [ "fa5c3f4666ddf394" ] ] }, { "id": "6699677.c355098", "type": "function", "z": "a640a000.d83cb", "name": "parse", "func": "for (i=0; i<msg.payload.length; i++) {\n deviceId = msg.payload[i].deviceId\n device = msg.payload[i].device;\n if (deviceId == 405419896) {\n return msg.payload[i]; \n }\n}\n\nreturn { device: {} }", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 510, "y": 100, "wires": [ [ "86fc5747.ceaf78", "27be4ab8.2eac96", "301b11ef.dbf73e", "10c3ab90.e85124", "5707c80e.570f78", "86dd1102.ee59d", "c6be71d1.b0f19" ] ] }, { "id": "86fc5747.ceaf78", "type": "debug", "z": "a640a000.d83cb", "name": "serial-number", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.serialNumber", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 720, "y": 100, "wires": [] }, { "id": "27be4ab8.2eac96", "type": "debug", "z": "a640a000.d83cb", "name": "address", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.address", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 700, "y": 140, "wires": [] }, { "id": "301b11ef.dbf73e", "type": "debug", "z": "a640a000.d83cb", "name": "netmask", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.netmask", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 700, "y": 180, "wires": [] }, { "id": "10c3ab90.e85124", "type": "debug", "z": "a640a000.d83cb", "name": "gateway", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.gateway", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 700, "y": 220, "wires": [] }, { "id": "5707c80e.570f78", "type": "debug", "z": "a640a000.d83cb", "name": "MAC", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.MAC", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 690, "y": 260, "wires": [] }, { "id": "86dd1102.ee59d", "type": "debug", "z": "a640a000.d83cb", "name": "version", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.version", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 700, "y": 300, "wires": [] }, { "id": "c6be71d1.b0f19", "type": "debug", "z": "a640a000.d83cb", "name": "date", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.date", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 690, "y": 340, "wires": [] }, { "id": "fa5c3f4666ddf394", "type": "uhppoted-get-devices", "z": "a640a000.d83cb", "name": "get-devices", "topic": "get-devices", "config": "cf35d9904542f0af", "x": 310, "y": 100, "wires": [ [ "31429769.0664e8", "6699677.c355098" ] ] }, { "id": "a308f042.ba17e", "type": "debug", "z": "f0ca7ab6.b09058", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 660, "y": 100, "wires": [] }, { "id": "661f7370.91414c", "type": "inject", "z": "f0ca7ab6.b09058", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896}}", "payloadType": "json", "x": 130, "y": 100, "wires": [ [ "cf961bd6.504938" ] ] }, { "id": "cf961bd6.504938", "type": "uhppoted-get-device", "z": "f0ca7ab6.b09058", "name": "get-device", "topic": "", "config": "cf35d9904542f0af", "x": 290, "y": 100, "wires": [ [ "1b475bda78fb39d0" ] ] }, { "id": "6114aece.3cdf7", "type": "function", "z": "f0ca7ab6.b09058", "name": "parse", "func": "return { \n device: msg.payload.device \n}\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 650, "y": 140, "wires": [ [ "58ed0404.db248c", "61911f03.0d3d8", "d091e3d4.0b37", "97b9824d.da92d", "b539bbe4.6eb9d8", "8e4bb15a.08e78", "73a68892.3598d8" ] ] }, { "id": "58ed0404.db248c", "type": "debug", "z": "f0ca7ab6.b09058", "name": "serial-number", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.serialNumber", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 920, "y": 140, "wires": [] }, { "id": "61911f03.0d3d8", "type": "debug", "z": "f0ca7ab6.b09058", "name": "address", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.address", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 180, "wires": [] }, { "id": "d091e3d4.0b37", "type": "debug", "z": "f0ca7ab6.b09058", "name": "netmask", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.netmask", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 220, "wires": [] }, { "id": "97b9824d.da92d", "type": "debug", "z": "f0ca7ab6.b09058", "name": "gateway", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.gateway", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 260, "wires": [] }, { "id": "b539bbe4.6eb9d8", "type": "debug", "z": "f0ca7ab6.b09058", "name": "MAC", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.MAC", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 300, "wires": [] }, { "id": "8e4bb15a.08e78", "type": "debug", "z": "f0ca7ab6.b09058", "name": "version", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.version", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 340, "wires": [] }, { "id": "73a68892.3598d8", "type": "debug", "z": "f0ca7ab6.b09058", "name": "date", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "device.date", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 380, "wires": [] }, { "id": "4cfaeb95fa7b0084", "type": "inject", "z": "f0ca7ab6.b09058", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}", "payloadType": "json", "x": 130, "y": 180, "wires": [ [ "f12b1459d211e6d6" ] ] }, { "id": "f12b1459d211e6d6", "type": "uhppoted-get-device", "z": "f0ca7ab6.b09058", "name": "get-device-tcp", "topic": "", "config": "cf35d9904542f0af", "x": 300, "y": 180, "wires": [ [ "68a62e02b458d87a" ] ] }, { "id": "e31739459dec6f32", "type": "link in", "z": "f0ca7ab6.b09058", "name": "received", "links": [ "1b475bda78fb39d0", "68a62e02b458d87a", "ef8850a20f5f68b0" ], "x": 545, "y": 100, "wires": [ [ "a308f042.ba17e" ] ] }, { "id": "45d6c42b45d140b7", "type": "link in", "z": "f0ca7ab6.b09058", "name": "get-device", "links": [ "1b475bda78fb39d0", "68a62e02b458d87a", "ef8850a20f5f68b0" ], "x": 545, "y": 140, "wires": [ [ "6114aece.3cdf7" ] ] }, { "id": "1b475bda78fb39d0", "type": "link out", "z": "f0ca7ab6.b09058", "name": "get-device-udp", "mode": "link", "links": [ "45d6c42b45d140b7", "e31739459dec6f32" ], "x": 435, "y": 100, "wires": [] }, { "id": "68a62e02b458d87a", "type": "link out", "z": "f0ca7ab6.b09058", "name": "get-device-tcp", "mode": "link", "links": [ "45d6c42b45d140b7", "e31739459dec6f32" ], "x": 435, "y": 180, "wires": [] }, { "id": "441f9cddf524f6bb", "type": "inject", "z": "f0ca7ab6.b09058", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\"}}", "payloadType": "json", "x": 130, "y": 140, "wires": [ [ "05b93141d184148d" ] ] }, { "id": "05b93141d184148d", "type": "uhppoted-get-device", "z": "f0ca7ab6.b09058", "name": "get-device-udp", "topic": "", "config": "cf35d9904542f0af", "x": 300, "y": 140, "wires": [ [ "ef8850a20f5f68b0" ] ] }, { "id": "ef8850a20f5f68b0", "type": "link out", "z": "f0ca7ab6.b09058", "name": "get-device-tcp", "mode": "link", "links": [ "45d6c42b45d140b7", "e31739459dec6f32" ], "x": 435, "y": 140, "wires": [] }, { "id": "c601d685.422838", "type": "debug", "z": "8bcf2d43.2e243", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 620, "y": 100, "wires": [] }, { "id": "da41e071.55ece", "type": "inject", "z": "8bcf2d43.2e243", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "set-address", "payload": "{\"controller\":{\"id\":405419896},\"address\":\"192.168.1.125\",\"netmask\":\"255.255.255.0\",\"gateway\":\"192.168.1.1\"}", "payloadType": "json", "x": 130, "y": 100, "wires": [ [ "13a984d5.221c9b" ] ] }, { "id": "13a984d5.221c9b", "type": "uhppoted-set-ip", "z": "8bcf2d43.2e243", "name": "set-ip", "config": "cf35d9904542f0af", "x": 270, "y": 100, "wires": [ [ "142d6c4246ae8ffb" ] ] }, { "id": "b267a94cc5f28f8e", "type": "inject", "z": "8bcf2d43.2e243", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "set-address", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.125\",\"netmask\":\"255.255.255.0\",\"gateway\":\"192.168.1.1\"}", "payloadType": "json", "x": 130, "y": 140, "wires": [ [ "2312b07b0bdde6e8" ] ] }, { "id": "2312b07b0bdde6e8", "type": "uhppoted-set-ip", "z": "8bcf2d43.2e243", "name": "set-ip-tcp", "topic": "", "config": "cf35d9904542f0af", "x": 280, "y": 140, "wires": [ [ "6c1d1b24d0c2e59f" ] ] }, { "id": "6936a212ffa86446", "type": "link in", "z": "8bcf2d43.2e243", "name": "received", "links": [ "142d6c4246ae8ffb", "6c1d1b24d0c2e59f" ], "x": 505, "y": 100, "wires": [ [ "c601d685.422838" ] ] }, { "id": "142d6c4246ae8ffb", "type": "link out", "z": "8bcf2d43.2e243", "name": "set-ip-udp", "mode": "link", "links": [ "6936a212ffa86446" ], "x": 395, "y": 100, "wires": [] }, { "id": "6c1d1b24d0c2e59f", "type": "link out", "z": "8bcf2d43.2e243", "name": "set-ip-tcp", "mode": "link", "links": [ "6936a212ffa86446" ], "x": 395, "y": 140, "wires": [] }, { "id": "b94136c7.ef3808", "type": "debug", "z": "c56e1667.998748", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 760, "y": 80, "wires": [] }, { "id": "19dfdabc.2fc645", "type": "inject", "z": "c56e1667.998748", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896}}", "payloadType": "json", "x": 130, "y": 180, "wires": [ [ "75e6f5f0.c7e47c" ] ] }, { "id": "75e6f5f0.c7e47c", "type": "uhppoted-get-listener", "z": "c56e1667.998748", "name": "get-listener", "config": "cf35d9904542f0af", "x": 290, "y": 180, "wires": [ [ "dd4eef340b555843" ] ] }, { "id": "48b92667.8a59b8", "type": "uhppoted-set-listener", "z": "c56e1667.998748", "name": "set-listener", "config": "cf35d9904542f0af", "x": 290, "y": 300, "wires": [ [ "2be6914f23d7b2a5" ] ] }, { "id": "87c6a583.0bc8c8", "type": "inject", "z": "c56e1667.998748", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "set-listener", "payload": "{\"controller\":{\"id\":405419896},\"address\":\"192.168.1.100\",\"port\":60001,\"interval\":15}", "payloadType": "json", "x": 130, "y": 300, "wires": [ [ "48b92667.8a59b8" ] ] }, { "id": "4a5cf0bf.725ff", "type": "debug", "z": "c56e1667.998748", "name": "listener-address", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload.address", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 780, "y": 120, "wires": [] }, { "id": "e37a3ee9.78969", "type": "debug", "z": "c56e1667.998748", "name": "listener-port", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload.port", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 770, "y": 160, "wires": [] }, { "id": "18a61437.de498c", "type": "uhppoted-listen", "z": "c56e1667.998748", "name": "listen", "config": "cf35d9904542f0af", "x": 130, "y": 100, "wires": [ [ "b8dcd439.9a0448" ] ] }, { "id": "b8dcd439.9a0448", "type": "debug", "z": "c56e1667.998748", "name": "event", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 270, "y": 100, "wires": [] }, { "id": "86aa48a9e620c6cf", "type": "inject", "z": "c56e1667.998748", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}", "payloadType": "json", "x": 130, "y": 220, "wires": [ [ "c7466e083310bf9b" ] ] }, { "id": "c7466e083310bf9b", "type": "uhppoted-get-listener", "z": "c56e1667.998748", "name": "get-listener-tcp", "topic": "", "config": "cf35d9904542f0af", "x": 300, "y": 220, "wires": [ [ "11b333706a2d406b" ] ] }, { "id": "8dc08c333b80e03c", "type": "uhppoted-set-listener", "z": "c56e1667.998748", "name": "set-listener-tcp", "topic": "", "config": "cf35d9904542f0af", "x": 300, "y": 340, "wires": [ [ "822c4512104ba471" ] ] }, { "id": "22512f8ce8fabe30", "type": "inject", "z": "c56e1667.998748", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "set-listener", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"},\"address\":\"192.168.1.100\",\"port\":60001,\"interval\":15}", "payloadType": "json", "x": 130, "y": 340, "wires": [ [ "8dc08c333b80e03c" ] ] }, { "id": "fac10babfa379001", "type": "link in", "z": "c56e1667.998748", "name": "received", "links": [ "dd4eef340b555843", "11b333706a2d406b", "2be6914f23d7b2a5", "822c4512104ba471" ], "x": 615, "y": 80, "wires": [ [ "b94136c7.ef3808" ] ] }, { "id": "6732b5b29ab98d3a", "type": "link in", "z": "c56e1667.998748", "name": "get-listener", "links": [ "dd4eef340b555843", "11b333706a2d406b" ], "x": 615, "y": 120, "wires": [ [ "4a5cf0bf.725ff", "e37a3ee9.78969", "7957838146c94697" ] ] }, { "id": "dd4eef340b555843", "type": "link out", "z": "c56e1667.998748", "name": "get-listener-udp", "mode": "link", "links": [ "6732b5b29ab98d3a", "fac10babfa379001" ], "x": 435, "y": 180, "wires": [] }, { "id": "11b333706a2d406b", "type": "link out", "z": "c56e1667.998748", "name": "get-listener-tcp", "mode": "link", "links": [ "6732b5b29ab98d3a", "fac10babfa379001" ], "x": 435, "y": 220, "wires": [] }, { "id": "2be6914f23d7b2a5", "type": "link out", "z": "c56e1667.998748", "name": "set-listener-udp", "mode": "link", "links": [ "fac10babfa379001" ], "x": 425, "y": 300, "wires": [] }, { "id": "822c4512104ba471", "type": "link out", "z": "c56e1667.998748", "name": "set-listener-tcp", "mode": "link", "links": [ "fac10babfa379001" ], "x": 425, "y": 340, "wires": [] }, { "id": "7957838146c94697", "type": "debug", "z": "c56e1667.998748", "name": "auto-send-interval", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload.interval", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 790, "y": 200, "wires": [] }, { "id": "2dc88a53.cf8646", "type": "inject", "z": "b2b669ed.2b50b8", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896}}", "payloadType": "json", "x": 130, "y": 100, "wires": [ [ "1d2d547f.68acbc" ] ] }, { "id": "1d2d547f.68acbc", "type": "uhppoted-get-status", "z": "b2b669ed.2b50b8", "name": "get-status", "config": "cf35d9904542f0af", "x": 290, "y": 100, "wires": [ [ "5d4523a5d21855c8" ] ] }, { "id": "52d5b0c5.0e178", "type": "debug", "z": "b2b669ed.2b50b8", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 680, "y": 100, "wires": [] }, { "id": "66b13a53.2d40c4", "type": "function", "z": "b2b669ed.2b50b8", "name": "parse", "func": "return { state: msg.payload.state }\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 670, "y": 140, "wires": [ [ "ef31d4ba.63efa8", "29ce6298.a64dbe", "556bdbce.b524f4", "6111d895.7465d8", "4fb75951.33bd28", "b2228a25.b93978", "cd1868d9.6cea48", "e838e0df.3d412", "a0e71bbf.291688", "ae4ad5b4.12a328", "68b25cad.09ccb4", "8dcc56b2.9d3838", "b6e7e1e1.f8ea5", "b67b2038.bdb01", "8e8ff17a.6d6b9", "87389d80.11682", "69fc31ff.ef909", "16fccb9a.92d2e4", "ad99bfe8.44984", "1d9c039d.3e3e1c", "6a7fa162.6c726", "6d6a1058.fbb0d", "8927a0c3.ec594", "dbbde5d.034b118", "26e811ba.7bad4e", "b0a7a2ad.4e775" ] ] }, { "id": "ef31d4ba.63efa8", "type": "debug", "z": "b2b669ed.2b50b8", "name": "serial-number", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.serialNumber", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 920, "y": 140, "wires": [] }, { "id": "29ce6298.a64dbe", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.index", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.index", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 320, "wires": [] }, { "id": "556bdbce.b524f4", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.type", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.type.event", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 360, "wires": [] }, { "id": "6111d895.7465d8", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.granted", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.granted", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 920, "y": 400, "wires": [] }, { "id": "4fb75951.33bd28", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.door", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.door", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 440, "wires": [] }, { "id": "b2228a25.b93978", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.direction", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.direction.direction", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 920, "y": 480, "wires": [] }, { "id": "cd1868d9.6cea48", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.card", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.card", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 520, "wires": [] }, { "id": "e838e0df.3d412", "type": "debug", "z": "b2b669ed.2b50b8", "name": "event.timestamp", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.event.timestamp", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 930, "y": 560, "wires": [] }, { "id": "a0e71bbf.291688", "type": "debug", "z": "b2b669ed.2b50b8", "name": "door-1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.doors[1]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 620, "wires": [] }, { "id": "ae4ad5b4.12a328", "type": "debug", "z": "b2b669ed.2b50b8", "name": "door-2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.doors[2]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 660, "wires": [] }, { "id": "68b25cad.09ccb4", "type": "debug", "z": "b2b669ed.2b50b8", "name": "door-3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.doors[3]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 700, "wires": [] }, { "id": "8dcc56b2.9d3838", "type": "debug", "z": "b2b669ed.2b50b8", "name": "door-4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.doors[4]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 740, "wires": [] }, { "id": "b6e7e1e1.f8ea5", "type": "debug", "z": "b2b669ed.2b50b8", "name": "button-1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.buttons[1]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 800, "wires": [] }, { "id": "b67b2038.bdb01", "type": "debug", "z": "b2b669ed.2b50b8", "name": "button-2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.buttons[2]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 840, "wires": [] }, { "id": "8e8ff17a.6d6b9", "type": "debug", "z": "b2b669ed.2b50b8", "name": "button-3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.buttons[3]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 880, "wires": [] }, { "id": "87389d80.11682", "type": "debug", "z": "b2b669ed.2b50b8", "name": "button-4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.buttons[4]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 920, "wires": [] }, { "id": "69fc31ff.ef909", "type": "debug", "z": "b2b669ed.2b50b8", "name": "system-status", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.system.status", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 920, "y": 180, "wires": [] }, { "id": "16fccb9a.92d2e4", "type": "debug", "z": "b2b669ed.2b50b8", "name": "system-date", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.system.date", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 220, "wires": [] }, { "id": "ad99bfe8.44984", "type": "debug", "z": "b2b669ed.2b50b8", "name": "system-time", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.system.time", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 260, "wires": [] }, { "id": "1d9c039d.3e3e1c", "type": "debug", "z": "b2b669ed.2b50b8", "name": "special-info", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.specialInfo", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 1160, "wires": [] }, { "id": "6a7fa162.6c726", "type": "debug", "z": "b2b669ed.2b50b8", "name": "relay-1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.relays.relays[1]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 980, "wires": [] }, { "id": "6d6a1058.fbb0d", "type": "debug", "z": "b2b669ed.2b50b8", "name": "relay-2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.relays.relays[2]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 1020, "wires": [] }, { "id": "8927a0c3.ec594", "type": "debug", "z": "b2b669ed.2b50b8", "name": "relay-3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.relays.relays[3]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 1060, "wires": [] }, { "id": "dbbde5d.034b118", "type": "debug", "z": "b2b669ed.2b50b8", "name": "relay-4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.relays.relays[4]", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 890, "y": 1100, "wires": [] }, { "id": "26e811ba.7bad4e", "type": "debug", "z": "b2b669ed.2b50b8", "name": "force-locked", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.inputs.forceLock", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 910, "y": 1200, "wires": [] }, { "id": "b0a7a2ad.4e775", "type": "debug", "z": "b2b669ed.2b50b8", "name": "fire-alarm", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "state.inputs.fireAlarm", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 900, "y": 1240, "wires": [] }, { "id": "345ecd1b51ecbc87", "type": "inject", "z": "b2b669ed.2b50b8", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100\",\"protocol\":\"tcp\"}}", "payloadType": "json", "x": 130, "y": 140, "wires": [ [ "c1164d125de7fb37" ] ] }, { "id": "c1164d125de7fb37", "type": "uhppoted-get-status", "z": "b2b669ed.2b50b8", "name": "get-status-tcp", "topic": "", "config": "cf35d9904542f0af", "x": 300, "y": 140, "wires": [ [ "0116cfccc8a58852" ] ] }, { "id": "a4fd2e7b593a4f6e", "type": "link in", "z": "b2b669ed.2b50b8", "name": "received", "links": [ "5d4523a5d21855c8", "0116cfccc8a58852" ], "x": 565, "y": 100, "wires": [ [ "52d5b0c5.0e178" ] ] }, { "id": "665c34da74b0cd5c", "type": "link in", "z": "b2b669ed.2b50b8", "name": "get-status", "links": [ "5d4523a5d21855c8", "0116cfccc8a58852" ], "x": 565, "y": 140, "wires": [ [ "66b13a53.2d40c4" ] ] }, { "id": "5d4523a5d21855c8", "type": "link out", "z": "b2b669ed.2b50b8", "name": "get-status-udp", "mode": "link", "links": [ "665c34da74b0cd5c", "a4fd2e7b593a4f6e" ], "x": 435, "y": 100, "wires": [] }, { "id": "0116cfccc8a58852", "type": "link out", "z": "b2b669ed.2b50b8", "name": "get-status-tcp", "mode": "link", "links": [ "665c34da74b0cd5c", "a4fd2e7b593a4f6e" ], "x": 435, "y": 140, "wires": [] }, { "id": "6a3d799.3fe3688", "type": "uhppoted-get-time", "z": "f7a455cc.3fefe8", "name": "get-time", "topic": "", "config": "cf35d9904542f0af", "x": 280, "y": 100, "wires": [ [ "9aad52af6b62af8c" ] ] }, { "id": "2c2ab991.619516", "type": "debug", "z": "f7a455cc.3fefe8", "name": "received", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 780, "y": 100, "wires": [] }, { "id": "d84c21e5.b2692", "type": "inject", "z": "f7a455cc.3fefe8", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"controller\":{\"id\":405419896}}", "payloadType": "json", "x": 130, "y": 100, "wires": [ [ "6a3d799.3fe3688" ] ] }, { "id": "9d254489.c08578", "type": "inject", "z": "f7a455cc.3fefe8", "name": "test", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "set-time", "payload": "{}", "payloadType": "jso