Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "44249081d1573876",
- "type": "http in",
- "z": "796c3347538bd9cd",
- "name": "",
- "url": "/torque",
- "method": "get",
- "upload": false,
- "swaggerDoc": "",
- "x": 110,
- "y": 80,
- "wires": [
- [
- "d0e5fce711af1db7",
- "f958d85a00059212"
- ]
- ]
- },
- {
- "id": "1c138d55af55ac11",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "Battery Temp",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "(payload9/5)+32",
- "targetType": "jsonata",
- "statusVal": "",
- "statusType": "auto",
- "x": 1010,
- "y": 40,
- "wires": []
- },
- {
- "id": "2cae5ca52a6fae2c",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "Battery SOC",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1010,
- "y": 140,
- "wires": []
- },
- {
- "id": "f958d85a00059212",
- "type": "switch",
- "z": "796c3347538bd9cd",
- "name": "",
- "property": "payload.k22434f",
- "propertyType": "msg",
- "rules": [
- {
- "t": "nnull"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 310,
- "y": 60,
- "wires": [
- [
- "75fa9384c9d506fd"
- ]
- ]
- },
- {
- "id": "02eb1d41028d7910",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "Instant Power",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1020,
- "y": 240,
- "wires": []
- },
- {
- "id": "71664d3e29af29c6",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toInteger",
- "params": []
- }
- ],
- "prop": "payload.k22434f",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 40,
- "wires": [
- [
- "87ac078f12c1c0b7"
- ]
- ]
- },
- {
- "id": "75fa9384c9d506fd",
- "type": "delay",
- "z": "796c3347538bd9cd",
- "name": "",
- "pauseType": "rate",
- "timeout": "5",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "2",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": true,
- "allowrate": false,
- "outputs": 1,
- "x": 540,
- "y": 100,
- "wires": [
- [
- "71664d3e29af29c6",
- "d6378e9555d31ff4",
- "b79d2215a36b5f9c",
- "f9a2c2bca89af6b1",
- "af9c48502847fe6b",
- "ee34af2bd5960499",
- "13b194a8c0827237",
- "a10142efd57e01f8"
- ]
- ]
- },
- {
- "id": "d6378e9555d31ff4",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toFloat",
- "params": [
- {
- "type": "num",
- "value": "2"
- }
- ]
- }
- ],
- "prop": "payload.k228334",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 140,
- "wires": [
- [
- "fe5c633c293ab4ab"
- ]
- ]
- },
- {
- "id": "b79d2215a36b5f9c",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toFloat",
- "params": [
- {
- "type": "num",
- "value": "2"
- }
- ]
- }
- ],
- "prop": "payload.ke16f08",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 240,
- "wires": [
- [
- "69ea8bc3b60d885f"
- ]
- ]
- },
- {
- "id": "37d84f4743ec6cb3",
- "type": "http response",
- "z": "796c3347538bd9cd",
- "name": "",
- "statusCode": "200",
- "headers": {
- "content-type": "text/plain"
- },
- "x": 340,
- "y": 200,
- "wires": []
- },
- {
- "id": "d0e5fce711af1db7",
- "type": "change",
- "z": "796c3347538bd9cd",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "OK!",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 160,
- "y": 200,
- "wires": [
- [
- "37d84f4743ec6cb3"
- ]
- ]
- },
- {
- "id": "21dd3deb2e1d27a2",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "Ambient Air",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "jsonata",
- "statusVal": "",
- "statusType": "auto",
- "x": 1010,
- "y": 340,
- "wires": []
- },
- {
- "id": "f9a2c2bca89af6b1",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toInteger",
- "params": []
- }
- ],
- "prop": "payload.k220046",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 340,
- "wires": [
- [
- "79fbe4eeb2fc2bdd"
- ]
- ]
- },
- {
- "id": "266b1cd59dc29ec7",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "DC Port Current",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1020,
- "y": 440,
- "wires": []
- },
- {
- "id": "af9c48502847fe6b",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toFloat",
- "params": [
- {
- "type": "num",
- "value": "2"
- }
- ]
- }
- ],
- "prop": "payload.k224424",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 440,
- "wires": [
- [
- "419ae0ef8c2c6eed"
- ]
- ]
- },
- {
- "id": "15f676fc208d3582",
- "type": "debug",
- "z": "796c3347538bd9cd",
- "name": "AC Port Amps",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1020,
- "y": 540,
- "wires": []
- },
- {
- "id": "ee34af2bd5960499",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toFloat",
- "params": [
- {
- "type": "num",
- "value": "2"
- }
- ]
- }
- ],
- "prop": "payload.k224369",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 540,
- "wires": [
- [
- "bda021bb60980e68"
- ]
- ]
- },
- {
- "id": "fe5c633c293ab4ab",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_battery_soc"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 180,
- "wires": [
- []
- ]
- },
- {
- "id": "69ea8bc3b60d885f",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_inst_power"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 280,
- "wires": [
- []
- ]
- },
- {
- "id": "b4a1717667955432",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_ambient_temp"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1290,
- "y": 380,
- "wires": [
- []
- ]
- },
- {
- "id": "419ae0ef8c2c6eed",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_dc_charge_current"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 480,
- "wires": [
- []
- ]
- },
- {
- "id": "bda021bb60980e68",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_ac_charge_current"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 580,
- "wires": [
- []
- ]
- },
- {
- "id": "53cc48d598268659",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_battery_temp"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1210,
- "y": 80,
- "wires": [
- []
- ]
- },
- {
- "id": "79fbe4eeb2fc2bdd",
- "type": "switch",
- "z": "796c3347538bd9cd",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "gt",
- "v": "-39",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 990,
- "y": 380,
- "wires": [
- [
- "61250e16ae7c0a44"
- ]
- ]
- },
- {
- "id": "87ac078f12c1c0b7",
- "type": "change",
- "z": "796c3347538bd9cd",
- "name": "C to F",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "(payload9/5)+32",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 990,
- "y": 80,
- "wires": [
- [
- "53cc48d598268659"
- ]
- ]
- },
- {
- "id": "61250e16ae7c0a44",
- "type": "change",
- "z": "796c3347538bd9cd",
- "name": "C to F",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "(payload*9/5)+32",
- "tot": "jsonata"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1110,
- "y": 380,
- "wires": [
- [
- "b4a1717667955432"
- ]
- ]
- },
- {
- "id": "13b194a8c0827237",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toFloat",
- "params": [
- {
- "type": "num",
- "value": "2"
- }
- ]
- }
- ],
- "prop": "payload.k222885",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 640,
- "wires": [
- [
- "9e3f71bf2d73daae"
- ]
- ]
- },
- {
- "id": "9e3f71bf2d73daae",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_pack_voltage"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 640,
- "wires": [
- []
- ]
- },
- {
- "id": "a10142efd57e01f8",
- "type": "string",
- "z": "796c3347538bd9cd",
- "name": "",
- "methods": [
- {
- "name": "toInteger",
- "params": []
- }
- ],
- "prop": "payload.k224368",
- "propout": "payload",
- "object": "msg",
- "objectout": "msg",
- "x": 850,
- "y": 720,
- "wires": [
- [
- "03ddd07986e7203d"
- ]
- ]
- },
- {
- "id": "03ddd07986e7203d",
- "type": "api-call-service",
- "z": "796c3347538bd9cd",
- "name": "",
- "server": "86ce393a.0f64a8",
- "version": 5,
- "debugenabled": false,
- "domain": "input_number",
- "service": "set_value",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "input_number.bolt_charger_voltage"
- ],
- "data": "{ "value":{{payload}}}",
- "dataType": "json",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1050,
- "y": 720,
- "wires": [
- []
- ]
- },
- {
- "id": "86ce393a.0f64a8",
- "type": "server",
- "name": "Home Assistant",
- "addon": false,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "",
- "connectionDelay": false,
- "cacheJson": false,
- "heartbeat": false,
- "heartbeatInterval": ""
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement