Advertisement
Guest User

Untitled

a guest
Oct 28th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.41 KB | None | 0 0
  1. [
  2.     {
  3.         "id": "44b9230f.2c8964",
  4.         "type": "tab",
  5.         "label": "Read Victron BMV",
  6.         "disabled": false,
  7.         "info": ""
  8.     },
  9.     {
  10.         "id": "d62bd87f.a8e1e8",
  11.         "type": "serial in",
  12.         "z": "44b9230f.2c8964",
  13.         "name": "Victron Monitor",
  14.         "serial": "ea3dd41c.5929b",
  15.         "x": 100,
  16.         "y": 20,
  17.         "wires": [
  18.             [
  19.                 "5316a6bf.e51378",
  20.                 "9fc1d53.4d7b1a8",
  21.                 "be888a68.1ba178"
  22.             ]
  23.         ]
  24.     },
  25.     {
  26.         "id": "5316a6bf.e51378",
  27.         "type": "debug",
  28.         "z": "44b9230f.2c8964",
  29.         "name": "",
  30.         "active": false,
  31.         "tosidebar": true,
  32.         "console": false,
  33.         "tostatus": false,
  34.         "complete": "payload",
  35.         "x": 596,
  36.         "y": 20,
  37.         "wires": []
  38.     },
  39.     {
  40.         "id": "be3519ce.a1dc98",
  41.         "type": "debug",
  42.         "z": "44b9230f.2c8964",
  43.         "name": "",
  44.         "active": false,
  45.         "tosidebar": true,
  46.         "console": false,
  47.         "tostatus": false,
  48.         "complete": "payload",
  49.         "x": 596,
  50.         "y": 60,
  51.         "wires": []
  52.     },
  53.     {
  54.         "id": "9fc1d53.4d7b1a8",
  55.         "type": "function",
  56.         "z": "44b9230f.2c8964",
  57.         "name": "Convert_obj",
  58.         "func": "// 'msg' is the message object the Function node receives\nvar myVars = msg.payload.split(\"\\r\\n\");\nvar result = {};\nmyVars.forEach(function(v) {\n   // The following split uses ' = ' - because your example output appears to\n   // have spaces around the equals sign.\n   var parts = v.split(\"\\t\");\n   result[parts[0]] = parts[1];\n});\nmsg.payload = result;\n// The Function node returns the message to be sent to the next node(s) in the flow\nreturn msg;",
  59.         "outputs": 1,
  60.         "noerr": 0,
  61.         "x": 210,
  62.         "y": 60,
  63.         "wires": [
  64.             [
  65.                 "be3519ce.a1dc98",
  66.                 "f4317c41.c022e"
  67.             ]
  68.         ]
  69.     },
  70.     {
  71.         "id": "367d85f1.c139fa",
  72.         "type": "debug",
  73.         "z": "44b9230f.2c8964",
  74.         "name": "",
  75.         "active": false,
  76.         "tosidebar": true,
  77.         "console": false,
  78.         "tostatus": false,
  79.         "complete": "true",
  80.         "x": 576,
  81.         "y": 120,
  82.         "wires": []
  83.     },
  84.     {
  85.         "id": "f4317c41.c022e",
  86.         "type": "split",
  87.         "z": "44b9230f.2c8964",
  88.         "name": "",
  89.         "splt": "\\n",
  90.         "spltType": "str",
  91.         "arraySplt": 1,
  92.         "arraySpltType": "len",
  93.         "stream": true,
  94.         "addname": "topic",
  95.         "x": 190,
  96.         "y": 120,
  97.         "wires": [
  98.             [
  99.                 "367d85f1.c139fa",
  100.                 "b6e286d6.f7417"
  101.             ]
  102.         ]
  103.     },
  104.     {
  105.         "id": "b6e286d6.f7417",
  106.         "type": "switch",
  107.         "z": "44b9230f.2c8964",
  108.         "name": "Route",
  109.         "property": "parts.key",
  110.         "propertyType": "msg",
  111.         "rules": [
  112.             {
  113.                 "t": "eq",
  114.                 "v": "V",
  115.                 "vt": "str"
  116.             },
  117.             {
  118.                 "t": "eq",
  119.                 "v": "I",
  120.                 "vt": "str"
  121.             },
  122.             {
  123.                 "t": "eq",
  124.                 "v": "SOC",
  125.                 "vt": "str"
  126.             },
  127.             {
  128.                 "t": "eq",
  129.                 "v": "VS",
  130.                 "vt": "str"
  131.             }
  132.         ],
  133.         "checkall": "true",
  134.         "repair": false,
  135.         "outputs": 4,
  136.         "x": 190,
  137.         "y": 256,
  138.         "wires": [
  139.             [
  140.                 "f94a1dec.4a7d08"
  141.             ],
  142.             [
  143.                 "ae90aa66.d1e3a"
  144.             ],
  145.             [
  146.                 "5d93068d.967258"
  147.             ],
  148.             [
  149.                 "5c574c66.f5f594"
  150.             ]
  151.         ]
  152.     },
  153.     {
  154.         "id": "a5a94137.753d68",
  155.         "type": "debug",
  156.         "z": "44b9230f.2c8964",
  157.         "name": "",
  158.         "active": false,
  159.         "tosidebar": true,
  160.         "console": false,
  161.         "tostatus": false,
  162.         "complete": "false",
  163.         "x": 728,
  164.         "y": 188,
  165.         "wires": []
  166.     },
  167.     {
  168.         "id": "7a21b561.166514",
  169.         "type": "debug",
  170.         "z": "44b9230f.2c8964",
  171.         "name": "",
  172.         "active": false,
  173.         "tosidebar": true,
  174.         "console": false,
  175.         "tostatus": false,
  176.         "complete": "payload",
  177.         "x": 729,
  178.         "y": 270,
  179.         "wires": []
  180.     },
  181.     {
  182.         "id": "f94a1dec.4a7d08",
  183.         "type": "change",
  184.         "z": "44b9230f.2c8964",
  185.         "name": "V to num",
  186.         "rules": [
  187.             {
  188.                 "t": "set",
  189.                 "p": "payload",
  190.                 "pt": "msg",
  191.                 "to": "$number(msg.payload)/1000",
  192.                 "tot": "jsonata"
  193.             }
  194.         ],
  195.         "action": "",
  196.         "property": "",
  197.         "from": "",
  198.         "to": "",
  199.         "reg": false,
  200.         "x": 400,
  201.         "y": 224,
  202.         "wires": [
  203.             [
  204.                 "9c0d0bf2.af71c"
  205.             ]
  206.         ]
  207.     },
  208.     {
  209.         "id": "ae90aa66.d1e3a",
  210.         "type": "change",
  211.         "z": "44b9230f.2c8964",
  212.         "name": "I to num",
  213.         "rules": [
  214.             {
  215.                 "t": "set",
  216.                 "p": "payload",
  217.                 "pt": "msg",
  218.                 "to": "$number(msg.payload)/1000",
  219.                 "tot": "jsonata"
  220.             }
  221.         ],
  222.         "action": "",
  223.         "property": "",
  224.         "from": "",
  225.         "to": "",
  226.         "reg": false,
  227.         "x": 400,
  228.         "y": 304,
  229.         "wires": [
  230.             [
  231.                 "aadd1be0.5932f8"
  232.             ]
  233.         ]
  234.     },
  235.     {
  236.         "id": "bf9ef81e.200508",
  237.         "type": "debug",
  238.         "z": "44b9230f.2c8964",
  239.         "name": "",
  240.         "active": false,
  241.         "tosidebar": true,
  242.         "console": false,
  243.         "tostatus": false,
  244.         "complete": "false",
  245.         "x": 731,
  246.         "y": 371,
  247.         "wires": []
  248.     },
  249.     {
  250.         "id": "5d93068d.967258",
  251.         "type": "change",
  252.         "z": "44b9230f.2c8964",
  253.         "name": "SoC to num",
  254.         "rules": [
  255.             {
  256.                 "t": "set",
  257.                 "p": "payload",
  258.                 "pt": "msg",
  259.                 "to": "$number(msg.payload)/10",
  260.                 "tot": "jsonata"
  261.             }
  262.         ],
  263.         "action": "",
  264.         "property": "",
  265.         "from": "",
  266.         "to": "",
  267.         "reg": false,
  268.         "x": 410,
  269.         "y": 404,
  270.         "wires": [
  271.             [
  272.                 "166dfc03.216b14"
  273.             ]
  274.         ]
  275.     },
  276.     {
  277.         "id": "aadd1be0.5932f8",
  278.         "type": "smooth",
  279.         "z": "44b9230f.2c8964",
  280.         "name": "Two dec",
  281.         "property": "payload",
  282.         "action": "mean",
  283.         "count": "5",
  284.         "round": "2",
  285.         "mult": "multi",
  286.         "x": 560,
  287.         "y": 304,
  288.         "wires": [
  289.             [
  290.                 "82f40943.e1196",
  291.                 "7a21b561.166514"
  292.             ]
  293.         ]
  294.     },
  295.     {
  296.         "id": "166dfc03.216b14",
  297.         "type": "smooth",
  298.         "z": "44b9230f.2c8964",
  299.         "name": "No dec",
  300.         "property": "payload",
  301.         "action": "mean",
  302.         "count": "5",
  303.         "round": "0",
  304.         "mult": "multi",
  305.         "x": 560,
  306.         "y": 404,
  307.         "wires": [
  308.             [
  309.                 "3f684bb.e167d34",
  310.                 "c88b0201.31eb6",
  311.                 "bf9ef81e.200508"
  312.             ]
  313.         ]
  314.     },
  315.     {
  316.         "id": "5c574c66.f5f594",
  317.         "type": "change",
  318.         "z": "44b9230f.2c8964",
  319.         "name": "V to num",
  320.         "rules": [
  321.             {
  322.                 "t": "set",
  323.                 "p": "payload",
  324.                 "pt": "msg",
  325.                 "to": "$number(msg.payload)/1000",
  326.                 "tot": "jsonata"
  327.             }
  328.         ],
  329.         "action": "",
  330.         "property": "",
  331.         "from": "",
  332.         "to": "",
  333.         "reg": false,
  334.         "x": 400,
  335.         "y": 484,
  336.         "wires": [
  337.             [
  338.                 "a123011e.34ddc8"
  339.             ]
  340.         ]
  341.     },
  342.     {
  343.         "id": "43b9c2ec.e48424",
  344.         "type": "debug",
  345.         "z": "44b9230f.2c8964",
  346.         "name": "",
  347.         "active": false,
  348.         "tosidebar": true,
  349.         "console": false,
  350.         "tostatus": false,
  351.         "complete": "false",
  352.         "x": 730,
  353.         "y": 450,
  354.         "wires": []
  355.     },
  356.     {
  357.         "id": "9c0d0bf2.af71c",
  358.         "type": "smooth",
  359.         "z": "44b9230f.2c8964",
  360.         "name": "Two dec",
  361.         "property": "payload",
  362.         "action": "mean",
  363.         "count": "5",
  364.         "round": "2",
  365.         "mult": "multi",
  366.         "x": 560,
  367.         "y": 224,
  368.         "wires": [
  369.             [
  370.                 "a5a94137.753d68",
  371.                 "4276ce64.c77d68"
  372.             ]
  373.         ]
  374.     },
  375.     {
  376.         "id": "a123011e.34ddc8",
  377.         "type": "smooth",
  378.         "z": "44b9230f.2c8964",
  379.         "name": "Two dec",
  380.         "property": "payload",
  381.         "action": "mean",
  382.         "count": "5",
  383.         "round": "2",
  384.         "mult": "multi",
  385.         "x": 560,
  386.         "y": 484,
  387.         "wires": [
  388.             [
  389.                 "2a0cd436.75c7ac",
  390.                 "43b9c2ec.e48424"
  391.             ]
  392.         ]
  393.     },
  394.     {
  395.         "id": "c88b0201.31eb6",
  396.         "type": "link out",
  397.         "z": "44b9230f.2c8964",
  398.         "name": "SOC",
  399.         "links": [
  400.             "cc3be543.17c228"
  401.         ],
  402.         "x": 799,
  403.         "y": 405,
  404.         "wires": []
  405.     },
  406.     {
  407.         "id": "be888a68.1ba178",
  408.         "type": "serial out",
  409.         "z": "44b9230f.2c8964",
  410.         "name": "CCGX",
  411.         "serial": "ad449943.39b8a8",
  412.         "x": 432.0078315734863,
  413.         "y": 40.24609565734863,
  414.         "wires": []
  415.     },
  416.     {
  417.         "id": "3f684bb.e167d34",
  418.         "type": "ha-entity",
  419.         "z": "44b9230f.2c8964",
  420.         "name": "SOC",
  421.         "server": "b630c8e7.1510e",
  422.         "version": 1,
  423.         "debugenabled": false,
  424.         "outputs": 1,
  425.         "entityType": "sensor",
  426.         "config": [
  427.             {
  428.                 "property": "name",
  429.                 "value": "victron_SOC"
  430.             },
  431.             {
  432.                 "property": "device_class",
  433.                 "value": "battery"
  434.             },
  435.             {
  436.                 "property": "icon",
  437.                 "value": ""
  438.             },
  439.             {
  440.                 "property": "unit_of_measurement",
  441.                 "value": "%"
  442.             }
  443.         ],
  444.         "state": "payload",
  445.         "stateType": "msg",
  446.         "attributes": [],
  447.         "resend": true,
  448.         "outputLocation": "",
  449.         "outputLocationType": "none",
  450.         "inputOverride": "allow",
  451.         "x": 710,
  452.         "y": 405,
  453.         "wires": [
  454.             []
  455.         ]
  456.     },
  457.     {
  458.         "id": "2a0cd436.75c7ac",
  459.         "type": "ha-entity",
  460.         "z": "44b9230f.2c8964",
  461.         "name": "Spenning Startbatteri",
  462.         "server": "b630c8e7.1510e",
  463.         "version": 1,
  464.         "debugenabled": false,
  465.         "outputs": 1,
  466.         "entityType": "sensor",
  467.         "config": [
  468.             {
  469.                 "property": "name",
  470.                 "value": "victron_V_start"
  471.             },
  472.             {
  473.                 "property": "device_class",
  474.                 "value": ""
  475.             },
  476.             {
  477.                 "property": "icon",
  478.                 "value": "icon:current-dc"
  479.             },
  480.             {
  481.                 "property": "unit_of_measurement",
  482.                 "value": "V"
  483.             }
  484.         ],
  485.         "state": "payload",
  486.         "stateType": "msg",
  487.         "attributes": [],
  488.         "resend": true,
  489.         "outputLocation": "",
  490.         "outputLocationType": "none",
  491.         "inputOverride": "allow",
  492.         "x": 759,
  493.         "y": 484,
  494.         "wires": [
  495.             []
  496.         ]
  497.     },
  498.     {
  499.         "id": "82f40943.e1196",
  500.         "type": "ha-entity",
  501.         "z": "44b9230f.2c8964",
  502.         "name": "Øyeblikksforbruk",
  503.         "server": "f139d2be.9db9b8",
  504.         "version": 1,
  505.         "debugenabled": false,
  506.         "outputs": 1,
  507.         "entityType": "sensor",
  508.         "config": [
  509.             {
  510.                 "property": "name",
  511.                 "value": "victron_current"
  512.             },
  513.             {
  514.                 "property": "device_class",
  515.                 "value": ""
  516.             },
  517.             {
  518.                 "property": "icon",
  519.                 "value": "mdi:resistor"
  520.             },
  521.             {
  522.                 "property": "unit_of_measurement",
  523.                 "value": "A"
  524.             }
  525.         ],
  526.         "state": "payload",
  527.         "stateType": "msg",
  528.         "attributes": [],
  529.         "resend": true,
  530.         "outputLocation": "",
  531.         "outputLocationType": "none",
  532.         "inputOverride": "allow",
  533.         "x": 748,
  534.         "y": 304,
  535.         "wires": [
  536.             []
  537.         ]
  538.     },
  539.     {
  540.         "id": "4276ce64.c77d68",
  541.         "type": "ha-entity",
  542.         "z": "44b9230f.2c8964",
  543.         "name": "Spenning Forbruksbatteri",
  544.         "server": "b630c8e7.1510e",
  545.         "version": 1,
  546.         "debugenabled": false,
  547.         "outputs": 1,
  548.         "entityType": "sensor",
  549.         "config": [
  550.             {
  551.                 "property": "name",
  552.                 "value": "victron_V_utility"
  553.             },
  554.             {
  555.                 "property": "device_class",
  556.                 "value": ""
  557.             },
  558.             {
  559.                 "property": "icon",
  560.                 "value": "current-dc"
  561.             },
  562.             {
  563.                 "property": "unit_of_measurement",
  564.                 "value": "V"
  565.             }
  566.         ],
  567.         "state": "payload",
  568.         "stateType": "msg",
  569.         "attributes": [],
  570.         "resend": true,
  571.         "outputLocation": "",
  572.         "outputLocationType": "none",
  573.         "inputOverride": "allow",
  574.         "x": 767,
  575.         "y": 223,
  576.         "wires": [
  577.             []
  578.         ]
  579.     },
  580.     {
  581.         "id": "ea3dd41c.5929b",
  582.         "type": "serial-port",
  583.         "serialport": "/dev/serial/by-id/usb-VictronEnergy_BV_VE_Direct_cable_VE26ZM61-if00-port0",
  584.         "serialbaud": "19200",
  585.         "databits": "8",
  586.         "parity": "none",
  587.         "stopbits": "1",
  588.         "waitfor": "",
  589.         "newline": "\\n",
  590.         "bin": "false",
  591.         "out": "char",
  592.         "addchar": "",
  593.         "responsetimeout": "10000"
  594.     },
  595.     {
  596.         "id": "ad449943.39b8a8",
  597.         "type": "serial-port",
  598.         "serialport": "/dev/ttyNR",
  599.         "serialbaud": "115200",
  600.         "databits": "8",
  601.         "parity": "none",
  602.         "stopbits": "1",
  603.         "waitfor": "",
  604.         "newline": "\\n",
  605.         "bin": "false",
  606.         "out": "char",
  607.         "addchar": "",
  608.         "responsetimeout": "10000"
  609.     },
  610.     {
  611.         "id": "b630c8e7.1510e",
  612.         "type": "server",
  613.         "name": "Home Assistant",
  614.         "legacy": true,
  615.         "addon": true,
  616.         "rejectUnauthorizedCerts": true,
  617.         "ha_boolean": "y|yes|true|on|home|open",
  618.         "connectionDelay": true,
  619.         "cacheJson": true
  620.     },
  621.     {
  622.         "id": "f139d2be.9db9b8",
  623.         "type": "server",
  624.         "name": "Home Assistant",
  625.         "legacy": false,
  626.         "addon": true,
  627.         "rejectUnauthorizedCerts": true,
  628.         "ha_boolean": "y|yes|true|on|home|open",
  629.         "connectionDelay": true,
  630.         "cacheJson": true
  631.     }
  632. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement