Advertisement
NittyGritty

Zigbee Valves

Jan 3rd, 2024
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "68ac9fb4.9c90c",
  4.         "type": "mqtt in",
  5.         "z": "4058904c.658ad",
  6.         "name": "",
  7.         "topic": "/home/zigbee/Ventil-01",
  8.         "qos": "2",
  9.         "datatype": "auto-detect",
  10.         "broker": "595dfa51.2c1224",
  11.         "nl": false,
  12.         "rap": false,
  13.         "inputs": 0,
  14.         "x": 180,
  15.         "y": 580,
  16.         "wires": [
  17.             [
  18.                 "b92b8a21.4b5178"
  19.             ]
  20.         ]
  21.     },
  22.     {
  23.         "id": "77a76d92.e9b8c4",
  24.         "type": "link out",
  25.         "z": "4058904c.658ad",
  26.         "name": "Ventil-01-Influx-Out",
  27.         "mode": "link",
  28.         "links": [
  29.             "22f2e00e.74f9a"
  30.         ],
  31.         "x": 725,
  32.         "y": 480,
  33.         "wires": []
  34.     },
  35.     {
  36.         "id": "2594b919.43c9c6",
  37.         "type": "mqtt in",
  38.         "z": "4058904c.658ad",
  39.         "name": "",
  40.         "topic": "/home/zigbee/Ventil-02",
  41.         "qos": "2",
  42.         "datatype": "auto-detect",
  43.         "broker": "595dfa51.2c1224",
  44.         "nl": false,
  45.         "rap": false,
  46.         "inputs": 0,
  47.         "x": 180,
  48.         "y": 220,
  49.         "wires": [
  50.             [
  51.                 "ee580ce.2e131f"
  52.             ]
  53.         ]
  54.     },
  55.     {
  56.         "id": "6d44446b.fe5f9c",
  57.         "type": "link out",
  58.         "z": "4058904c.658ad",
  59.         "name": "Ventil-02-Influx-Out",
  60.         "mode": "link",
  61.         "links": [
  62.             "22f2e00e.74f9a"
  63.         ],
  64.         "x": 725,
  65.         "y": 160,
  66.         "wires": []
  67.     },
  68.     {
  69.         "id": "941c1014.a70af",
  70.         "type": "inject",
  71.         "z": "4058904c.658ad",
  72.         "name": "Update Ventil-01",
  73.         "props": [
  74.             {
  75.                 "p": "payload",
  76.                 "v": "{\"system_mode\": \"on\"}",
  77.                 "vt": "str"
  78.             },
  79.             {
  80.                 "p": "topic",
  81.                 "v": "",
  82.                 "vt": "str"
  83.             }
  84.         ],
  85.         "repeat": "600",
  86.         "crontab": "",
  87.         "once": false,
  88.         "onceDelay": "1",
  89.         "topic": "",
  90.         "payload": "{\"system_mode\": \"on\"}",
  91.         "payloadType": "str",
  92.         "x": 190,
  93.         "y": 660,
  94.         "wires": [
  95.             [
  96.                 "d9210e8f.56b74"
  97.             ]
  98.         ]
  99.     },
  100.     {
  101.         "id": "d9210e8f.56b74",
  102.         "type": "mqtt out",
  103.         "z": "4058904c.658ad",
  104.         "name": "",
  105.         "topic": "/home/zigbee/Ventil-01/set",
  106.         "qos": "",
  107.         "retain": "",
  108.         "broker": "595dfa51.2c1224",
  109.         "x": 480,
  110.         "y": 660,
  111.         "wires": []
  112.     },
  113.     {
  114.         "id": "bc24bc5c.24eaa",
  115.         "type": "inject",
  116.         "z": "4058904c.658ad",
  117.         "name": "Update Ventil-02",
  118.         "props": [
  119.             {
  120.                 "p": "payload"
  121.             },
  122.             {
  123.                 "p": "topic",
  124.                 "vt": "str"
  125.             }
  126.         ],
  127.         "repeat": "600",
  128.         "crontab": "",
  129.         "once": false,
  130.         "onceDelay": "1",
  131.         "topic": "",
  132.         "payload": "{\"window_detection\":\"off\"}",
  133.         "payloadType": "str",
  134.         "x": 190,
  135.         "y": 300,
  136.         "wires": [
  137.             [
  138.                 "ba865231.189c2"
  139.             ]
  140.         ]
  141.     },
  142.     {
  143.         "id": "ba865231.189c2",
  144.         "type": "mqtt out",
  145.         "z": "4058904c.658ad",
  146.         "name": "",
  147.         "topic": "/home/zigbee/Ventil-02/set",
  148.         "qos": "",
  149.         "retain": "",
  150.         "respTopic": "",
  151.         "contentType": "",
  152.         "userProps": "",
  153.         "correl": "",
  154.         "expiry": "",
  155.         "broker": "595dfa51.2c1224",
  156.         "x": 480,
  157.         "y": 300,
  158.         "wires": []
  159.     },
  160.     {
  161.         "id": "d4eaa56.3b35958",
  162.         "type": "inject",
  163.         "z": "4058904c.658ad",
  164.         "name": "Set 21.0°C to Ventil-02",
  165.         "props": [
  166.             {
  167.                 "p": "payload"
  168.             },
  169.             {
  170.                 "p": "topic",
  171.                 "vt": "str"
  172.             }
  173.         ],
  174.         "repeat": "",
  175.         "crontab": "",
  176.         "once": false,
  177.         "onceDelay": "1",
  178.         "topic": "",
  179.         "payload": "{\"current_heating_setpoint\":\"21.0\"}",
  180.         "payloadType": "str",
  181.         "x": 180,
  182.         "y": 360,
  183.         "wires": [
  184.             [
  185.                 "ba865231.189c2"
  186.             ]
  187.         ]
  188.     },
  189.     {
  190.         "id": "9cc32425.ae9868",
  191.         "type": "inject",
  192.         "z": "4058904c.658ad",
  193.         "name": "Set 18.0°C to Ventil-01",
  194.         "props": [
  195.             {
  196.                 "p": "payload"
  197.             },
  198.             {
  199.                 "p": "topic",
  200.                 "vt": "str"
  201.             }
  202.         ],
  203.         "repeat": "",
  204.         "crontab": "",
  205.         "once": false,
  206.         "onceDelay": "1",
  207.         "topic": "",
  208.         "payload": "{\"current_heating_setpoint\":\"19.0\"}",
  209.         "payloadType": "str",
  210.         "x": 180,
  211.         "y": 720,
  212.         "wires": [
  213.             [
  214.                 "d9210e8f.56b74"
  215.             ]
  216.         ]
  217.     },
  218.     {
  219.         "id": "b92b8a21.4b5178",
  220.         "type": "function",
  221.         "z": "4058904c.658ad",
  222.         "name": "",
  223.         "func": "var words = msg.topic.split('/');\nvar KnotenName = (words[3]);\n\n// var Position = JSON.parse(msg.payload.position);\n// var Local_Temperature = JSON.parse(msg.payload.local_temperature); \nvar Local_Temperature = msg.payload.local_temperature; \nvar Current_Heating_Setpoint = JSON.parse(msg.payload.current_heating_setpoint); \nvar Link_Quality = JSON.parse(msg.payload.linkquality); \n\nvar time = Date.now();\nvar LastSeen = { payload: time };\n\nvar Influx = [{\n    Room: KnotenName,\n//    Position: Position,\n    LocalTemp: Local_Temperature,\n    HeatSetPoint: Current_Heating_Setpoint,\n    Link: Link_Quality\n}]\nvar Influx1 = { payload: Influx };\n\nnode.status({fill:\"blue\",shape:\"ring\",text:KnotenName + \" \" +\n//                    \"Position: \" + Position + \"%, \" +\n                    \"LocalTemp: \" + Local_Temperature + \"°C, \" +\n                    \"Heating_Setpoint: \" + Current_Heating_Setpoint + \"°C, \" +\n                    \"Link: \" + Link_Quality\n            });\n\nreturn [Influx1, LastSeen];\n",
  224.         "outputs": 2,
  225.         "noerr": 0,
  226.         "initialize": "",
  227.         "finalize": "",
  228.         "libs": [],
  229.         "x": 620,
  230.         "y": 580,
  231.         "wires": [
  232.             [
  233.                 "77a76d92.e9b8c4"
  234.             ],
  235.             [
  236.                 "ac93bd7eddfafa55"
  237.             ]
  238.         ]
  239.     },
  240.     {
  241.         "id": "ee580ce.2e131f",
  242.         "type": "function",
  243.         "z": "4058904c.658ad",
  244.         "name": "",
  245.         "func": "var words = msg.topic.split('/');\nvar KnotenName = (words[3]);\n\nvar Position = JSON.parse(msg.payload.position);\nvar Local_Temperature = JSON.parse(msg.payload.local_temperature); \nvar Current_Heating_Setpoint = JSON.parse(msg.payload.current_heating_setpoint); \nvar Link_Quality = JSON.parse(msg.payload.linkquality); \n\nvar time = Date.now();\nvar LastSeen = {payload:time};\n\nvar Influx = [{\n    Room: KnotenName,\n    Position: Position,\n    LocalTemp: Local_Temperature,\n    HeatSetPoint: Current_Heating_Setpoint,\n    Link: Link_Quality\n}]\nvar Influx1 = { payload: Influx };\n\nnode.status({fill:\"blue\",shape:\"ring\",text:KnotenName +\n                    \" Position: \" + Position +\n                    \"%, LocalTemp: \" + Local_Temperature +\n                    \"°C, Heating_Setpoint: \" + Current_Heating_Setpoint +\n                    \"°C, Link: \" + Link_Quality\n            });\n            \nreturn [Influx1, LastSeen];\n",
  246.         "outputs": 2,
  247.         "noerr": 0,
  248.         "initialize": "",
  249.         "finalize": "",
  250.         "libs": [],
  251.         "x": 620,
  252.         "y": 220,
  253.         "wires": [
  254.             [
  255.                 "6d44446b.fe5f9c"
  256.             ],
  257.             [
  258.                 "df6f8ec729e1b5fb"
  259.             ]
  260.         ]
  261.     },
  262.     {
  263.         "id": "f6d895a7.a9b168",
  264.         "type": "comment",
  265.         "z": "4058904c.658ad",
  266.         "name": "Ventil-02 (Wohnzimmer)",
  267.         "info": "",
  268.         "x": 180,
  269.         "y": 140,
  270.         "wires": []
  271.     },
  272.     {
  273.         "id": "764caed9.d0dfa",
  274.         "type": "comment",
  275.         "z": "4058904c.658ad",
  276.         "name": "Ventil-01 (Schlafzimmer)",
  277.         "info": "",
  278.         "x": 150,
  279.         "y": 520,
  280.         "wires": []
  281.     },
  282.     {
  283.         "id": "df6f8ec729e1b5fb",
  284.         "type": "moment",
  285.         "z": "4058904c.658ad",
  286.         "name": "",
  287.         "topic": "",
  288.         "input": "payload",
  289.         "inputType": "msg",
  290.         "inTz": "ETC/GMT",
  291.         "adjAmount": "0",
  292.         "adjType": "hours",
  293.         "adjDir": "subtract",
  294.         "format": "dd DD. MMMM YYYY HH:mm:ss ",
  295.         "locale": "de_DE",
  296.         "output": "",
  297.         "outputType": "msg",
  298.         "outTz": "Europe/Berlin",
  299.         "x": 900,
  300.         "y": 160,
  301.         "wires": [
  302.             [
  303.                 "3f31aebc6ebd7be7"
  304.             ]
  305.         ]
  306.     },
  307.     {
  308.         "id": "3f31aebc6ebd7be7",
  309.         "type": "debug",
  310.         "z": "4058904c.658ad",
  311.         "name": "",
  312.         "active": true,
  313.         "tosidebar": false,
  314.         "console": false,
  315.         "tostatus": true,
  316.         "complete": "payload",
  317.         "targetType": "msg",
  318.         "statusVal": "payload",
  319.         "statusType": "auto",
  320.         "x": 930,
  321.         "y": 200,
  322.         "wires": []
  323.     },
  324.     {
  325.         "id": "9f76c41e95646a3b",
  326.         "type": "inject",
  327.         "z": "4058904c.658ad",
  328.         "name": "Set 18.0°C to Ventil-02",
  329.         "props": [
  330.             {
  331.                 "p": "payload"
  332.             },
  333.             {
  334.                 "p": "topic",
  335.                 "vt": "str"
  336.             }
  337.         ],
  338.         "repeat": "",
  339.         "crontab": "",
  340.         "once": false,
  341.         "onceDelay": "1",
  342.         "topic": "",
  343.         "payload": "{\"current_heating_setpoint\":\"18\"}",
  344.         "payloadType": "str",
  345.         "x": 180,
  346.         "y": 420,
  347.         "wires": [
  348.             [
  349.                 "ba865231.189c2"
  350.             ]
  351.         ]
  352.     },
  353.     {
  354.         "id": "ac93bd7eddfafa55",
  355.         "type": "moment",
  356.         "z": "4058904c.658ad",
  357.         "name": "",
  358.         "topic": "",
  359.         "input": "payload",
  360.         "inputType": "msg",
  361.         "inTz": "ETC/GMT",
  362.         "adjAmount": "0",
  363.         "adjType": "hours",
  364.         "adjDir": "subtract",
  365.         "format": "dd DD. MMMM YYYY HH:mm:ss ",
  366.         "locale": "de_DE",
  367.         "output": "",
  368.         "outputType": "msg",
  369.         "outTz": "Europe/Berlin",
  370.         "x": 900,
  371.         "y": 520,
  372.         "wires": [
  373.             [
  374.                 "eef85a7bd8ad72ca"
  375.             ]
  376.         ]
  377.     },
  378.     {
  379.         "id": "eef85a7bd8ad72ca",
  380.         "type": "debug",
  381.         "z": "4058904c.658ad",
  382.         "name": "",
  383.         "active": true,
  384.         "tosidebar": false,
  385.         "console": false,
  386.         "tostatus": true,
  387.         "complete": "payload",
  388.         "targetType": "msg",
  389.         "statusVal": "payload",
  390.         "statusType": "auto",
  391.         "x": 930,
  392.         "y": 560,
  393.         "wires": []
  394.     },
  395.     {
  396.         "id": "595dfa51.2c1224",
  397.         "type": "mqtt-broker",
  398.         "name": "Kossdorf",
  399.         "broker": "192.168.123.16",
  400.         "port": "1883",
  401.         "clientid": "",
  402.         "autoConnect": true,
  403.         "usetls": false,
  404.         "protocolVersion": "4",
  405.         "keepalive": "60",
  406.         "cleansession": true,
  407.         "birthTopic": "",
  408.         "birthQos": "0",
  409.         "birthPayload": "",
  410.         "birthMsg": {},
  411.         "closeTopic": "",
  412.         "closePayload": "",
  413.         "closeMsg": {},
  414.         "willTopic": "",
  415.         "willQos": "0",
  416.         "willPayload": "",
  417.         "willMsg": {},
  418.         "userProps": "",
  419.         "sessionExpiry": ""
  420.     }
  421. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement