Advertisement
Bruc3B4nn3r

Shelly3EM API Flow

Aug 1st, 2023
75
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.68 KB | Software | 0 0
  1. [
  2. {
  3. "id": "4237feedfefdc9fc",
  4. "type": "tab",
  5. "label": "Flow 1",
  6. "disabled": false,
  7. "info": "",
  8. "env": []
  9. },
  10. {
  11. "id": "3c8a2a43247c67fd",
  12. "type": "shelly-gen1",
  13. "z": "4237feedfefdc9fc",
  14. "hostname": "10.0.77.49",
  15. "description": "Shelly3EM",
  16. "mode": "polling",
  17. "server": "",
  18. "outputmode": "event",
  19. "uploadretryinterval": 5000,
  20. "pollinginterval": 5000,
  21. "pollstatus": true,
  22. "getstatusoncommand": true,
  23. "devicetype": "Measure",
  24. "outputs": 2,
  25. "x": 250,
  26. "y": 340,
  27. "wires": [
  28. [
  29. "98a71cd64bf392c8",
  30. "086a723d4cee5bfb",
  31. "e0a22ef6800cd2c8"
  32. ],
  33. []
  34. ]
  35. },
  36. {
  37. "id": "7fb0504462bd1985",
  38. "type": "influxdb out",
  39. "z": "4237feedfefdc9fc",
  40. "influxdb": "6d811aa3637f67c1",
  41. "name": "Phase 1",
  42. "measurement": "Phase1",
  43. "precision": "",
  44. "retentionPolicy": "",
  45. "database": "database",
  46. "precisionV18FluxV20": "ms",
  47. "retentionPolicyV18Flux": "",
  48. "org": "Zuhause",
  49. "bucket": "Shelly3EM",
  50. "x": 1120,
  51. "y": 280,
  52. "wires": []
  53. },
  54. {
  55. "id": "0cc307ca5c94c5d3",
  56. "type": "json",
  57. "z": "4237feedfefdc9fc",
  58. "name": "",
  59. "property": "payload",
  60. "action": "obj",
  61. "pretty": false,
  62. "x": 670,
  63. "y": 280,
  64. "wires": [
  65. [
  66. "ddc4415dca4ce726"
  67. ]
  68. ]
  69. },
  70. {
  71. "id": "98a71cd64bf392c8",
  72. "type": "change",
  73. "z": "4237feedfefdc9fc",
  74. "name": "Phase1",
  75. "rules": [
  76. {
  77. "t": "set",
  78. "p": "payload",
  79. "pt": "msg",
  80. "to": "payload.emeters[0].power",
  81. "tot": "msg"
  82. }
  83. ],
  84. "action": "",
  85. "property": "",
  86. "from": "",
  87. "to": "",
  88. "reg": false,
  89. "x": 460,
  90. "y": 280,
  91. "wires": [
  92. [
  93. "0cc307ca5c94c5d3"
  94. ]
  95. ]
  96. },
  97. {
  98. "id": "ddc4415dca4ce726",
  99. "type": "change",
  100. "z": "4237feedfefdc9fc",
  101. "name": "Phase 1",
  102. "rules": [
  103. {
  104. "t": "set",
  105. "p": "payload",
  106. "pt": "msg",
  107. "to": "payload.emeters[0].power",
  108. "tot": "msg"
  109. }
  110. ],
  111. "action": "",
  112. "property": "",
  113. "from": "",
  114. "to": "",
  115. "reg": false,
  116. "x": 840,
  117. "y": 280,
  118. "wires": [
  119. [
  120. "7fb0504462bd1985",
  121. "e8443b9ab3bdd1a4",
  122. "3442232a6e2bcebb"
  123. ]
  124. ]
  125. },
  126. {
  127. "id": "e8443b9ab3bdd1a4",
  128. "type": "debug",
  129. "z": "4237feedfefdc9fc",
  130. "name": "debug 2",
  131. "active": true,
  132. "tosidebar": true,
  133. "console": false,
  134. "tostatus": false,
  135. "complete": "false",
  136. "statusVal": "",
  137. "statusType": "auto",
  138. "x": 1120,
  139. "y": 500,
  140. "wires": []
  141. },
  142. {
  143. "id": "086a723d4cee5bfb",
  144. "type": "change",
  145. "z": "4237feedfefdc9fc",
  146. "name": "Phase 2",
  147. "rules": [
  148. {
  149. "t": "set",
  150. "p": "payload",
  151. "pt": "msg",
  152. "to": "payload.emeters[1].power",
  153. "tot": "msg"
  154. }
  155. ],
  156. "action": "",
  157. "property": "",
  158. "from": "",
  159. "to": "",
  160. "reg": false,
  161. "x": 460,
  162. "y": 340,
  163. "wires": [
  164. [
  165. "b6003f48a2e0516d"
  166. ]
  167. ]
  168. },
  169. {
  170. "id": "b6003f48a2e0516d",
  171. "type": "json",
  172. "z": "4237feedfefdc9fc",
  173. "name": "",
  174. "property": "payload",
  175. "action": "obj",
  176. "pretty": false,
  177. "x": 670,
  178. "y": 340,
  179. "wires": [
  180. [
  181. "fc5a36df0a849602"
  182. ]
  183. ]
  184. },
  185. {
  186. "id": "fc5a36df0a849602",
  187. "type": "change",
  188. "z": "4237feedfefdc9fc",
  189. "name": "Phase 2",
  190. "rules": [
  191. {
  192. "t": "set",
  193. "p": "payload",
  194. "pt": "msg",
  195. "to": "payload.emeters[1].power",
  196. "tot": "msg"
  197. }
  198. ],
  199. "action": "",
  200. "property": "",
  201. "from": "",
  202. "to": "",
  203. "reg": false,
  204. "x": 840,
  205. "y": 340,
  206. "wires": [
  207. [
  208. "e8443b9ab3bdd1a4",
  209. "698b6f014d6eed8b",
  210. "3442232a6e2bcebb"
  211. ]
  212. ]
  213. },
  214. {
  215. "id": "e0a22ef6800cd2c8",
  216. "type": "change",
  217. "z": "4237feedfefdc9fc",
  218. "name": "Phase 3",
  219. "rules": [
  220. {
  221. "t": "set",
  222. "p": "payload",
  223. "pt": "msg",
  224. "to": "payload.emeters[2].power",
  225. "tot": "msg"
  226. }
  227. ],
  228. "action": "",
  229. "property": "",
  230. "from": "",
  231. "to": "",
  232. "reg": false,
  233. "x": 460,
  234. "y": 400,
  235. "wires": [
  236. [
  237. "121e88337ec8a38d"
  238. ]
  239. ]
  240. },
  241. {
  242. "id": "121e88337ec8a38d",
  243. "type": "json",
  244. "z": "4237feedfefdc9fc",
  245. "name": "",
  246. "property": "payload",
  247. "action": "obj",
  248. "pretty": false,
  249. "x": 670,
  250. "y": 400,
  251. "wires": [
  252. [
  253. "227a5f546f912adb"
  254. ]
  255. ]
  256. },
  257. {
  258. "id": "227a5f546f912adb",
  259. "type": "change",
  260. "z": "4237feedfefdc9fc",
  261. "name": "Phase 3",
  262. "rules": [
  263. {
  264. "t": "set",
  265. "p": "payload",
  266. "pt": "msg",
  267. "to": "payload.emeters[2].power",
  268. "tot": "msg"
  269. }
  270. ],
  271. "action": "",
  272. "property": "",
  273. "from": "",
  274. "to": "",
  275. "reg": false,
  276. "x": 840,
  277. "y": 400,
  278. "wires": [
  279. [
  280. "e8443b9ab3bdd1a4",
  281. "a434f069407974e5",
  282. "3442232a6e2bcebb"
  283. ]
  284. ]
  285. },
  286. {
  287. "id": "698b6f014d6eed8b",
  288. "type": "influxdb out",
  289. "z": "4237feedfefdc9fc",
  290. "influxdb": "6d811aa3637f67c1",
  291. "name": "Phase 2",
  292. "measurement": "Phase2",
  293. "precision": "",
  294. "retentionPolicy": "",
  295. "database": "database",
  296. "precisionV18FluxV20": "ms",
  297. "retentionPolicyV18Flux": "",
  298. "org": "Zuhause",
  299. "bucket": "Shelly3EM",
  300. "x": 1120,
  301. "y": 340,
  302. "wires": []
  303. },
  304. {
  305. "id": "a434f069407974e5",
  306. "type": "influxdb out",
  307. "z": "4237feedfefdc9fc",
  308. "influxdb": "6d811aa3637f67c1",
  309. "name": "Phase 3",
  310. "measurement": "Phase3",
  311. "precision": "",
  312. "retentionPolicy": "",
  313. "database": "database",
  314. "precisionV18FluxV20": "ms",
  315. "retentionPolicyV18Flux": "",
  316. "org": "Zuhause",
  317. "bucket": "Shelly3EM",
  318. "x": 1120,
  319. "y": 400,
  320. "wires": []
  321. },
  322. {
  323. "id": "3442232a6e2bcebb",
  324. "type": "join",
  325. "z": "4237feedfefdc9fc",
  326. "name": "",
  327. "mode": "custom",
  328. "build": "object",
  329. "property": "payload",
  330. "propertyType": "msg",
  331. "key": "payload",
  332. "joiner": "\\n",
  333. "joinerType": "str",
  334. "accumulate": true,
  335. "timeout": "",
  336. "count": "3",
  337. "reduceRight": false,
  338. "reduceExp": "",
  339. "reduceInit": "",
  340. "reduceInitType": "",
  341. "reduceFixup": "",
  342. "x": 1130,
  343. "y": 160,
  344. "wires": [
  345. [
  346. "090ccf4493a30858"
  347. ]
  348. ]
  349. },
  350. {
  351. "id": "3f69f71aac6efb65",
  352. "type": "debug",
  353. "z": "4237feedfefdc9fc",
  354. "name": "debug 3",
  355. "active": true,
  356. "tosidebar": true,
  357. "console": false,
  358. "tostatus": false,
  359. "complete": "false",
  360. "statusVal": "",
  361. "statusType": "auto",
  362. "x": 1500,
  363. "y": 60,
  364. "wires": []
  365. },
  366. {
  367. "id": "090ccf4493a30858",
  368. "type": "change",
  369. "z": "4237feedfefdc9fc",
  370. "name": "",
  371. "rules": [
  372. {
  373. "t": "set",
  374. "p": "payload",
  375. "pt": "msg",
  376. "to": "payload.emeters[0].power + payload.emeters[1].power + payload.emeters[2].power",
  377. "tot": "jsonata"
  378. }
  379. ],
  380. "action": "",
  381. "property": "",
  382. "from": "",
  383. "to": "",
  384. "reg": false,
  385. "x": 1350,
  386. "y": 160,
  387. "wires": [
  388. [
  389. "3f69f71aac6efb65"
  390. ]
  391. ]
  392. },
  393. {
  394. "id": "6d811aa3637f67c1",
  395. "type": "influxdb",
  396. "hostname": "127.0.0.1",
  397. "port": "8086",
  398. "protocol": "http",
  399. "database": "database",
  400. "name": "Shelly3EM DB",
  401. "usetls": false,
  402. "tls": "",
  403. "influxdbVersion": "2.0",
  404. "url": "http://10.0.77.130:8086",
  405. "rejectUnauthorized": false
  406. }
  407. ]
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement