Advertisement
bkcberry

Untitled

Apr 21st, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.06 KB | None | 0 0
  1. [
  2. {
  3. "id": "44249081d1573876",
  4. "type": "http in",
  5. "z": "796c3347538bd9cd",
  6. "name": "",
  7. "url": "/torque",
  8. "method": "get",
  9. "upload": false,
  10. "swaggerDoc": "",
  11. "x": 110,
  12. "y": 80,
  13. "wires": [
  14. [
  15. "d0e5fce711af1db7",
  16. "f958d85a00059212"
  17. ]
  18. ]
  19. },
  20. {
  21. "id": "1c138d55af55ac11",
  22. "type": "debug",
  23. "z": "796c3347538bd9cd",
  24. "name": "Battery Temp",
  25. "active": true,
  26. "tosidebar": true,
  27. "console": false,
  28. "tostatus": false,
  29. "complete": "(payload9/5)+32",
  30. "targetType": "jsonata",
  31. "statusVal": "",
  32. "statusType": "auto",
  33. "x": 1010,
  34. "y": 40,
  35. "wires": []
  36. },
  37. {
  38. "id": "2cae5ca52a6fae2c",
  39. "type": "debug",
  40. "z": "796c3347538bd9cd",
  41. "name": "Battery SOC",
  42. "active": true,
  43. "tosidebar": true,
  44. "console": false,
  45. "tostatus": false,
  46. "complete": "payload",
  47. "targetType": "msg",
  48. "statusVal": "",
  49. "statusType": "auto",
  50. "x": 1010,
  51. "y": 140,
  52. "wires": []
  53. },
  54. {
  55. "id": "f958d85a00059212",
  56. "type": "switch",
  57. "z": "796c3347538bd9cd",
  58. "name": "",
  59. "property": "payload.k22434f",
  60. "propertyType": "msg",
  61. "rules": [
  62. {
  63. "t": "nnull"
  64. }
  65. ],
  66. "checkall": "true",
  67. "repair": false,
  68. "outputs": 1,
  69. "x": 310,
  70. "y": 60,
  71. "wires": [
  72. [
  73. "75fa9384c9d506fd"
  74. ]
  75. ]
  76. },
  77. {
  78. "id": "02eb1d41028d7910",
  79. "type": "debug",
  80. "z": "796c3347538bd9cd",
  81. "name": "Instant Power",
  82. "active": true,
  83. "tosidebar": true,
  84. "console": false,
  85. "tostatus": false,
  86. "complete": "payload",
  87. "targetType": "msg",
  88. "statusVal": "",
  89. "statusType": "auto",
  90. "x": 1020,
  91. "y": 240,
  92. "wires": []
  93. },
  94. {
  95. "id": "71664d3e29af29c6",
  96. "type": "string",
  97. "z": "796c3347538bd9cd",
  98. "name": "",
  99. "methods": [
  100. {
  101. "name": "toInteger",
  102. "params": []
  103. }
  104. ],
  105. "prop": "payload.k22434f",
  106. "propout": "payload",
  107. "object": "msg",
  108. "objectout": "msg",
  109. "x": 850,
  110. "y": 40,
  111. "wires": [
  112. [
  113. "87ac078f12c1c0b7"
  114. ]
  115. ]
  116. },
  117. {
  118. "id": "75fa9384c9d506fd",
  119. "type": "delay",
  120. "z": "796c3347538bd9cd",
  121. "name": "",
  122. "pauseType": "rate",
  123. "timeout": "5",
  124. "timeoutUnits": "seconds",
  125. "rate": "1",
  126. "nbRateUnits": "2",
  127. "rateUnits": "second",
  128. "randomFirst": "1",
  129. "randomLast": "5",
  130. "randomUnits": "seconds",
  131. "drop": true,
  132. "allowrate": false,
  133. "outputs": 1,
  134. "x": 540,
  135. "y": 100,
  136. "wires": [
  137. [
  138. "71664d3e29af29c6",
  139. "d6378e9555d31ff4",
  140. "b79d2215a36b5f9c",
  141. "f9a2c2bca89af6b1",
  142. "af9c48502847fe6b",
  143. "ee34af2bd5960499",
  144. "13b194a8c0827237",
  145. "a10142efd57e01f8"
  146. ]
  147. ]
  148. },
  149. {
  150. "id": "d6378e9555d31ff4",
  151. "type": "string",
  152. "z": "796c3347538bd9cd",
  153. "name": "",
  154. "methods": [
  155. {
  156. "name": "toFloat",
  157. "params": [
  158. {
  159. "type": "num",
  160. "value": "2"
  161. }
  162. ]
  163. }
  164. ],
  165. "prop": "payload.k228334",
  166. "propout": "payload",
  167. "object": "msg",
  168. "objectout": "msg",
  169. "x": 850,
  170. "y": 140,
  171. "wires": [
  172. [
  173. "fe5c633c293ab4ab"
  174. ]
  175. ]
  176. },
  177. {
  178. "id": "b79d2215a36b5f9c",
  179. "type": "string",
  180. "z": "796c3347538bd9cd",
  181. "name": "",
  182. "methods": [
  183. {
  184. "name": "toFloat",
  185. "params": [
  186. {
  187. "type": "num",
  188. "value": "2"
  189. }
  190. ]
  191. }
  192. ],
  193. "prop": "payload.ke16f08",
  194. "propout": "payload",
  195. "object": "msg",
  196. "objectout": "msg",
  197. "x": 850,
  198. "y": 240,
  199. "wires": [
  200. [
  201. "69ea8bc3b60d885f"
  202. ]
  203. ]
  204. },
  205. {
  206. "id": "37d84f4743ec6cb3",
  207. "type": "http response",
  208. "z": "796c3347538bd9cd",
  209. "name": "",
  210. "statusCode": "200",
  211. "headers": {
  212. "content-type": "text/plain"
  213. },
  214. "x": 340,
  215. "y": 200,
  216. "wires": []
  217. },
  218. {
  219. "id": "d0e5fce711af1db7",
  220. "type": "change",
  221. "z": "796c3347538bd9cd",
  222. "name": "",
  223. "rules": [
  224. {
  225. "t": "set",
  226. "p": "payload",
  227. "pt": "msg",
  228. "to": "OK!",
  229. "tot": "str"
  230. }
  231. ],
  232. "action": "",
  233. "property": "",
  234. "from": "",
  235. "to": "",
  236. "reg": false,
  237. "x": 160,
  238. "y": 200,
  239. "wires": [
  240. [
  241. "37d84f4743ec6cb3"
  242. ]
  243. ]
  244. },
  245. {
  246. "id": "21dd3deb2e1d27a2",
  247. "type": "debug",
  248. "z": "796c3347538bd9cd",
  249. "name": "Ambient Air",
  250. "active": true,
  251. "tosidebar": true,
  252. "console": false,
  253. "tostatus": false,
  254. "complete": "payload",
  255. "targetType": "jsonata",
  256. "statusVal": "",
  257. "statusType": "auto",
  258. "x": 1010,
  259. "y": 340,
  260. "wires": []
  261. },
  262. {
  263. "id": "f9a2c2bca89af6b1",
  264. "type": "string",
  265. "z": "796c3347538bd9cd",
  266. "name": "",
  267. "methods": [
  268. {
  269. "name": "toInteger",
  270. "params": []
  271. }
  272. ],
  273. "prop": "payload.k220046",
  274. "propout": "payload",
  275. "object": "msg",
  276. "objectout": "msg",
  277. "x": 850,
  278. "y": 340,
  279. "wires": [
  280. [
  281. "79fbe4eeb2fc2bdd"
  282. ]
  283. ]
  284. },
  285. {
  286. "id": "266b1cd59dc29ec7",
  287. "type": "debug",
  288. "z": "796c3347538bd9cd",
  289. "name": "DC Port Current",
  290. "active": true,
  291. "tosidebar": true,
  292. "console": false,
  293. "tostatus": false,
  294. "complete": "payload",
  295. "targetType": "msg",
  296. "statusVal": "",
  297. "statusType": "auto",
  298. "x": 1020,
  299. "y": 440,
  300. "wires": []
  301. },
  302. {
  303. "id": "af9c48502847fe6b",
  304. "type": "string",
  305. "z": "796c3347538bd9cd",
  306. "name": "",
  307. "methods": [
  308. {
  309. "name": "toFloat",
  310. "params": [
  311. {
  312. "type": "num",
  313. "value": "2"
  314. }
  315. ]
  316. }
  317. ],
  318. "prop": "payload.k224424",
  319. "propout": "payload",
  320. "object": "msg",
  321. "objectout": "msg",
  322. "x": 850,
  323. "y": 440,
  324. "wires": [
  325. [
  326. "419ae0ef8c2c6eed"
  327. ]
  328. ]
  329. },
  330. {
  331. "id": "15f676fc208d3582",
  332. "type": "debug",
  333. "z": "796c3347538bd9cd",
  334. "name": "AC Port Amps",
  335. "active": true,
  336. "tosidebar": true,
  337. "console": false,
  338. "tostatus": false,
  339. "complete": "payload",
  340. "targetType": "msg",
  341. "statusVal": "",
  342. "statusType": "auto",
  343. "x": 1020,
  344. "y": 540,
  345. "wires": []
  346. },
  347. {
  348. "id": "ee34af2bd5960499",
  349. "type": "string",
  350. "z": "796c3347538bd9cd",
  351. "name": "",
  352. "methods": [
  353. {
  354. "name": "toFloat",
  355. "params": [
  356. {
  357. "type": "num",
  358. "value": "2"
  359. }
  360. ]
  361. }
  362. ],
  363. "prop": "payload.k224369",
  364. "propout": "payload",
  365. "object": "msg",
  366. "objectout": "msg",
  367. "x": 850,
  368. "y": 540,
  369. "wires": [
  370. [
  371. "bda021bb60980e68"
  372. ]
  373. ]
  374. },
  375. {
  376. "id": "fe5c633c293ab4ab",
  377. "type": "api-call-service",
  378. "z": "796c3347538bd9cd",
  379. "name": "",
  380. "server": "86ce393a.0f64a8",
  381. "version": 5,
  382. "debugenabled": false,
  383. "domain": "input_number",
  384. "service": "set_value",
  385. "areaId": [],
  386. "deviceId": [],
  387. "entityId": [
  388. "input_number.bolt_battery_soc"
  389. ],
  390. "data": "{ "value":{{payload}}}",
  391. "dataType": "json",
  392. "mergeContext": "",
  393. "mustacheAltTags": false,
  394. "outputProperties": [],
  395. "queue": "none",
  396. "x": 1050,
  397. "y": 180,
  398. "wires": [
  399. []
  400. ]
  401. },
  402. {
  403. "id": "69ea8bc3b60d885f",
  404. "type": "api-call-service",
  405. "z": "796c3347538bd9cd",
  406. "name": "",
  407. "server": "86ce393a.0f64a8",
  408. "version": 5,
  409. "debugenabled": false,
  410. "domain": "input_number",
  411. "service": "set_value",
  412. "areaId": [],
  413. "deviceId": [],
  414. "entityId": [
  415. "input_number.bolt_inst_power"
  416. ],
  417. "data": "{ "value":{{payload}}}",
  418. "dataType": "json",
  419. "mergeContext": "",
  420. "mustacheAltTags": false,
  421. "outputProperties": [],
  422. "queue": "none",
  423. "x": 1050,
  424. "y": 280,
  425. "wires": [
  426. []
  427. ]
  428. },
  429. {
  430. "id": "b4a1717667955432",
  431. "type": "api-call-service",
  432. "z": "796c3347538bd9cd",
  433. "name": "",
  434. "server": "86ce393a.0f64a8",
  435. "version": 5,
  436. "debugenabled": false,
  437. "domain": "input_number",
  438. "service": "set_value",
  439. "areaId": [],
  440. "deviceId": [],
  441. "entityId": [
  442. "input_number.bolt_ambient_temp"
  443. ],
  444. "data": "{ "value":{{payload}}}",
  445. "dataType": "json",
  446. "mergeContext": "",
  447. "mustacheAltTags": false,
  448. "outputProperties": [],
  449. "queue": "none",
  450. "x": 1290,
  451. "y": 380,
  452. "wires": [
  453. []
  454. ]
  455. },
  456. {
  457. "id": "419ae0ef8c2c6eed",
  458. "type": "api-call-service",
  459. "z": "796c3347538bd9cd",
  460. "name": "",
  461. "server": "86ce393a.0f64a8",
  462. "version": 5,
  463. "debugenabled": false,
  464. "domain": "input_number",
  465. "service": "set_value",
  466. "areaId": [],
  467. "deviceId": [],
  468. "entityId": [
  469. "input_number.bolt_dc_charge_current"
  470. ],
  471. "data": "{ "value":{{payload}}}",
  472. "dataType": "json",
  473. "mergeContext": "",
  474. "mustacheAltTags": false,
  475. "outputProperties": [],
  476. "queue": "none",
  477. "x": 1050,
  478. "y": 480,
  479. "wires": [
  480. []
  481. ]
  482. },
  483. {
  484. "id": "bda021bb60980e68",
  485. "type": "api-call-service",
  486. "z": "796c3347538bd9cd",
  487. "name": "",
  488. "server": "86ce393a.0f64a8",
  489. "version": 5,
  490. "debugenabled": false,
  491. "domain": "input_number",
  492. "service": "set_value",
  493. "areaId": [],
  494. "deviceId": [],
  495. "entityId": [
  496. "input_number.bolt_ac_charge_current"
  497. ],
  498. "data": "{ "value":{{payload}}}",
  499. "dataType": "json",
  500. "mergeContext": "",
  501. "mustacheAltTags": false,
  502. "outputProperties": [],
  503. "queue": "none",
  504. "x": 1050,
  505. "y": 580,
  506. "wires": [
  507. []
  508. ]
  509. },
  510. {
  511. "id": "53cc48d598268659",
  512. "type": "api-call-service",
  513. "z": "796c3347538bd9cd",
  514. "name": "",
  515. "server": "86ce393a.0f64a8",
  516. "version": 5,
  517. "debugenabled": false,
  518. "domain": "input_number",
  519. "service": "set_value",
  520. "areaId": [],
  521. "deviceId": [],
  522. "entityId": [
  523. "input_number.bolt_battery_temp"
  524. ],
  525. "data": "{ "value":{{payload}}}",
  526. "dataType": "json",
  527. "mergeContext": "",
  528. "mustacheAltTags": false,
  529. "outputProperties": [],
  530. "queue": "none",
  531. "x": 1210,
  532. "y": 80,
  533. "wires": [
  534. []
  535. ]
  536. },
  537. {
  538. "id": "79fbe4eeb2fc2bdd",
  539. "type": "switch",
  540. "z": "796c3347538bd9cd",
  541. "name": "",
  542. "property": "payload",
  543. "propertyType": "msg",
  544. "rules": [
  545. {
  546. "t": "gt",
  547. "v": "-39",
  548. "vt": "str"
  549. }
  550. ],
  551. "checkall": "true",
  552. "repair": false,
  553. "outputs": 1,
  554. "x": 990,
  555. "y": 380,
  556. "wires": [
  557. [
  558. "61250e16ae7c0a44"
  559. ]
  560. ]
  561. },
  562. {
  563. "id": "87ac078f12c1c0b7",
  564. "type": "change",
  565. "z": "796c3347538bd9cd",
  566. "name": "C to F",
  567. "rules": [
  568. {
  569. "t": "set",
  570. "p": "payload",
  571. "pt": "msg",
  572. "to": "(payload9/5)+32",
  573. "tot": "jsonata"
  574. }
  575. ],
  576. "action": "",
  577. "property": "",
  578. "from": "",
  579. "to": "",
  580. "reg": false,
  581. "x": 990,
  582. "y": 80,
  583. "wires": [
  584. [
  585. "53cc48d598268659"
  586. ]
  587. ]
  588. },
  589. {
  590. "id": "61250e16ae7c0a44",
  591. "type": "change",
  592. "z": "796c3347538bd9cd",
  593. "name": "C to F",
  594. "rules": [
  595. {
  596. "t": "set",
  597. "p": "payload",
  598. "pt": "msg",
  599. "to": "(payload*9/5)+32",
  600. "tot": "jsonata"
  601. }
  602. ],
  603. "action": "",
  604. "property": "",
  605. "from": "",
  606. "to": "",
  607. "reg": false,
  608. "x": 1110,
  609. "y": 380,
  610. "wires": [
  611. [
  612. "b4a1717667955432"
  613. ]
  614. ]
  615. },
  616. {
  617. "id": "13b194a8c0827237",
  618. "type": "string",
  619. "z": "796c3347538bd9cd",
  620. "name": "",
  621. "methods": [
  622. {
  623. "name": "toFloat",
  624. "params": [
  625. {
  626. "type": "num",
  627. "value": "2"
  628. }
  629. ]
  630. }
  631. ],
  632. "prop": "payload.k222885",
  633. "propout": "payload",
  634. "object": "msg",
  635. "objectout": "msg",
  636. "x": 850,
  637. "y": 640,
  638. "wires": [
  639. [
  640. "9e3f71bf2d73daae"
  641. ]
  642. ]
  643. },
  644. {
  645. "id": "9e3f71bf2d73daae",
  646. "type": "api-call-service",
  647. "z": "796c3347538bd9cd",
  648. "name": "",
  649. "server": "86ce393a.0f64a8",
  650. "version": 5,
  651. "debugenabled": false,
  652. "domain": "input_number",
  653. "service": "set_value",
  654. "areaId": [],
  655. "deviceId": [],
  656. "entityId": [
  657. "input_number.bolt_pack_voltage"
  658. ],
  659. "data": "{ "value":{{payload}}}",
  660. "dataType": "json",
  661. "mergeContext": "",
  662. "mustacheAltTags": false,
  663. "outputProperties": [],
  664. "queue": "none",
  665. "x": 1050,
  666. "y": 640,
  667. "wires": [
  668. []
  669. ]
  670. },
  671. {
  672. "id": "a10142efd57e01f8",
  673. "type": "string",
  674. "z": "796c3347538bd9cd",
  675. "name": "",
  676. "methods": [
  677. {
  678. "name": "toInteger",
  679. "params": []
  680. }
  681. ],
  682. "prop": "payload.k224368",
  683. "propout": "payload",
  684. "object": "msg",
  685. "objectout": "msg",
  686. "x": 850,
  687. "y": 720,
  688. "wires": [
  689. [
  690. "03ddd07986e7203d"
  691. ]
  692. ]
  693. },
  694. {
  695. "id": "03ddd07986e7203d",
  696. "type": "api-call-service",
  697. "z": "796c3347538bd9cd",
  698. "name": "",
  699. "server": "86ce393a.0f64a8",
  700. "version": 5,
  701. "debugenabled": false,
  702. "domain": "input_number",
  703. "service": "set_value",
  704. "areaId": [],
  705. "deviceId": [],
  706. "entityId": [
  707. "input_number.bolt_charger_voltage"
  708. ],
  709. "data": "{ "value":{{payload}}}",
  710. "dataType": "json",
  711. "mergeContext": "",
  712. "mustacheAltTags": false,
  713. "outputProperties": [],
  714. "queue": "none",
  715. "x": 1050,
  716. "y": 720,
  717. "wires": [
  718. []
  719. ]
  720. },
  721. {
  722. "id": "86ce393a.0f64a8",
  723. "type": "server",
  724. "name": "Home Assistant",
  725. "addon": false,
  726. "rejectUnauthorizedCerts": true,
  727. "ha_boolean": "",
  728. "connectionDelay": false,
  729. "cacheJson": false,
  730. "heartbeat": false,
  731. "heartbeatInterval": ""
  732. }
  733. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement