Advertisement
Guest User

Untitled

a guest
Apr 27th, 2020
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.70 KB | None | 0 0
  1. [
  2. {
  3. "id": "5c575b3f.c5b7d4",
  4. "type": "comment",
  5. "z": "1984610f.e86c6f",
  6. "name": "Стиральная машина",
  7. "info": "",
  8. "x": 120,
  9. "y": 3520,
  10. "wires": []
  11. },
  12. {
  13. "id": "65942b15.3f1494",
  14. "type": "function",
  15. "z": "1984610f.e86c6f",
  16. "name": "Parser",
  17. "func": "msg.payload = {\n power : parseInt(msg.payload)\n}\nreturn msg;\n",
  18. "outputs": 1,
  19. "noerr": 0,
  20. "x": 95,
  21. "y": 3580,
  22. "wires": [
  23. [
  24. "2e5574c4.f0f35c"
  25. ]
  26. ],
  27. "l": false
  28. },
  29. {
  30. "id": "2e5574c4.f0f35c",
  31. "type": "change",
  32. "z": "1984610f.e86c6f",
  33. "name": "",
  34. "rules": [
  35. {
  36. "t": "move",
  37. "p": "payload.power",
  38. "pt": "msg",
  39. "to": "payload",
  40. "tot": "msg"
  41. }
  42. ],
  43. "action": "",
  44. "property": "",
  45. "from": "",
  46. "to": "",
  47. "reg": false,
  48. "x": 155,
  49. "y": 3580,
  50. "wires": [
  51. [
  52. "95a3dcfa.d5d34",
  53. "475048c4.a65d08"
  54. ]
  55. ],
  56. "l": false
  57. },
  58. {
  59. "id": "95a3dcfa.d5d34",
  60. "type": "power-monitor",
  61. "z": "1984610f.e86c6f",
  62. "name": "Стиральная машина",
  63. "threshold": "4",
  64. "startafter": "3",
  65. "stopafter": "5",
  66. "x": 300,
  67. "y": 3580,
  68. "wires": [
  69. [
  70. "912cea25.c01818"
  71. ],
  72. [
  73. "1098ad61.9916a3"
  74. ]
  75. ]
  76. },
  77. {
  78. "id": "b1aeebfc.4d5298",
  79. "type": "mqtt in",
  80. "z": "1984610f.e86c6f",
  81. "name": "",
  82. "topic": "shellies/shelly1pm-2462AB00591A/relay/0/power",
  83. "qos": "2",
  84. "datatype": "auto",
  85. "broker": "34443b7c.063704",
  86. "x": 35,
  87. "y": 3580,
  88. "wires": [
  89. [
  90. "65942b15.3f1494"
  91. ]
  92. ],
  93. "l": false
  94. },
  95. {
  96. "id": "a7784cc8.36992",
  97. "type": "change",
  98. "z": "1984610f.e86c6f",
  99. "name": "",
  100. "rules": [
  101. {
  102. "t": "set",
  103. "p": "payload.chatId",
  104. "pt": "msg",
  105. "to": "CHATID",
  106. "tot": "str"
  107. },
  108. {
  109. "t": "set",
  110. "p": "payload.type",
  111. "pt": "msg",
  112. "to": "message",
  113. "tot": "str"
  114. },
  115. {
  116. "t": "set",
  117. "p": "payload.content",
  118. "pt": "msg",
  119. "to": "'Машина закончила стирку '&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]','+0300')&'\\n'&'Продолжительность стирки составила '&msg.payload.hours&':'&msg.payload.mins&':'&msg.payload.secs&'\\n'&'На это затрачено '&msg.payload.energy&' кВт. электроэнергии'&'\\n'&'Это стоило вам '&msg.payload.energy*3.69&' руб.'",
  120. "tot": "jsonata"
  121. }
  122. ],
  123. "action": "",
  124. "property": "",
  125. "from": "",
  126. "to": "",
  127. "reg": false,
  128. "x": 575,
  129. "y": 3600,
  130. "wires": [
  131. [
  132. "95932f0e.caa27",
  133. "e655883b.c43c28"
  134. ]
  135. ],
  136. "l": false
  137. },
  138. {
  139. "id": "95932f0e.caa27",
  140. "type": "link out",
  141. "z": "1984610f.e86c6f",
  142. "name": "",
  143. "links": [
  144. "da0e06ba.3115b",
  145. "67e06dc0.832244"
  146. ],
  147. "x": 815,
  148. "y": 3560,
  149. "wires": []
  150. },
  151. {
  152. "id": "912cea25.c01818",
  153. "type": "change",
  154. "z": "1984610f.e86c6f",
  155. "name": "",
  156. "rules": [
  157. {
  158. "t": "delete",
  159. "p": "payload",
  160. "pt": "msg"
  161. },
  162. {
  163. "t": "set",
  164. "p": "payload.chatId",
  165. "pt": "msg",
  166. "to": "CHATID",
  167. "tot": "str"
  168. },
  169. {
  170. "t": "set",
  171. "p": "payload.type",
  172. "pt": "msg",
  173. "to": "message",
  174. "tot": "str"
  175. },
  176. {
  177. "t": "set",
  178. "p": "payload.content",
  179. "pt": "msg",
  180. "to": "'Машина начала стирку '&$now('[Y0000]-[M00]-[D00] [H01]:[m01]:[s01]', '+0300')",
  181. "tot": "jsonata"
  182. }
  183. ],
  184. "action": "",
  185. "property": "",
  186. "from": "",
  187. "to": "",
  188. "reg": false,
  189. "x": 455,
  190. "y": 3560,
  191. "wires": [
  192. [
  193. "95932f0e.caa27"
  194. ]
  195. ],
  196. "l": false
  197. },
  198. {
  199. "id": "5ce9e319.078a7c",
  200. "type": "change",
  201. "z": "1984610f.e86c6f",
  202. "name": "",
  203. "rules": [
  204. {
  205. "t": "set",
  206. "p": "payload",
  207. "pt": "msg",
  208. "to": "Стирка завершена. Не забудьте развесить белье",
  209. "tot": "str"
  210. }
  211. ],
  212. "action": "",
  213. "property": "",
  214. "from": "",
  215. "to": "",
  216. "reg": false,
  217. "x": 755,
  218. "y": 3600,
  219. "wires": [
  220. [
  221. "810c29e4.2f7058"
  222. ]
  223. ],
  224. "l": false
  225. },
  226. {
  227. "id": "810c29e4.2f7058",
  228. "type": "link out",
  229. "z": "1984610f.e86c6f",
  230. "name": "",
  231. "links": [
  232. "4cca03ba.ec458c"
  233. ],
  234. "x": 815,
  235. "y": 3600,
  236. "wires": []
  237. },
  238. {
  239. "id": "e655883b.c43c28",
  240. "type": "time-range-switch",
  241. "z": "1984610f.e86c6f",
  242. "name": "",
  243. "lat": "",
  244. "lon": "",
  245. "startTime": "10:30",
  246. "endTime": "23:00",
  247. "startOffset": 0,
  248. "endOffset": 0,
  249. "x": 695,
  250. "y": 3600,
  251. "wires": [
  252. [
  253. "5ce9e319.078a7c"
  254. ],
  255. []
  256. ],
  257. "l": false
  258. },
  259. {
  260. "id": "d55074fd.5136f8",
  261. "type": "function",
  262. "z": "1984610f.e86c6f",
  263. "name": "",
  264. "func": "var dt = new Date(msg.payload.time);\nvar msg1 = {\n\t'hours':\tdt.getHours()-3,\n\t'mins':\t\tdt.getMinutes(),\n\t'secs':\t\tdt.getSeconds()\n}\nmsg.payload.hours = msg1.hours\nmsg.payload.mins = msg1.mins\nmsg.payload.secs = msg1.secs\nreturn msg;",
  265. "outputs": 1,
  266. "noerr": 0,
  267. "x": 515,
  268. "y": 3600,
  269. "wires": [
  270. [
  271. "a7784cc8.36992"
  272. ]
  273. ],
  274. "l": false
  275. },
  276. {
  277. "id": "1098ad61.9916a3",
  278. "type": "change",
  279. "z": "1984610f.e86c6f",
  280. "name": "",
  281. "rules": [
  282. {
  283. "t": "set",
  284. "p": "msg.payload.time",
  285. "pt": "msg",
  286. "to": "msg.payload.time*1000",
  287. "tot": "jsonata"
  288. }
  289. ],
  290. "action": "",
  291. "property": "",
  292. "from": "",
  293. "to": "",
  294. "reg": false,
  295. "x": 455,
  296. "y": 3600,
  297. "wires": [
  298. [
  299. "d55074fd.5136f8"
  300. ]
  301. ],
  302. "l": false
  303. },
  304. {
  305. "id": "475048c4.a65d08",
  306. "type": "ui_chart",
  307. "z": "1984610f.e86c6f",
  308. "name": "",
  309. "group": "45fb716a.a73b4",
  310. "order": 15,
  311. "width": 0,
  312. "height": 0,
  313. "label": "Стиральная машина",
  314. "chartType": "line",
  315. "legend": "false",
  316. "xformat": "HH:mm:ss",
  317. "interpolate": "linear",
  318. "nodata": "",
  319. "dot": false,
  320. "ymin": "",
  321. "ymax": "",
  322. "removeOlder": "3",
  323. "removeOlderPoints": "",
  324. "removeOlderUnit": "3600",
  325. "cutout": 0,
  326. "useOneColor": false,
  327. "useUTC": false,
  328. "colors": [
  329. "#1f77b4",
  330. "#aec7e8",
  331. "#ff7f0e",
  332. "#2ca02c",
  333. "#98df8a",
  334. "#d62728",
  335. "#ff9896",
  336. "#9467bd",
  337. "#c5b0d5"
  338. ],
  339. "useOldStyle": false,
  340. "outputs": 1,
  341. "x": 300,
  342. "y": 3640,
  343. "wires": [
  344. []
  345. ]
  346. },
  347. {
  348. "id": "34443b7c.063704",
  349. "type": "mqtt-broker",
  350. "z": "",
  351. "name": "",
  352. "broker": "127.0.0.1",
  353. "port": "1883",
  354. "clientid": "",
  355. "usetls": false,
  356. "compatmode": true,
  357. "keepalive": "60",
  358. "cleansession": true,
  359. "birthTopic": "",
  360. "birthQos": "0",
  361. "birthPayload": "",
  362. "closeTopic": "",
  363. "closeQos": "0",
  364. "closePayload": "",
  365. "willTopic": "",
  366. "willQos": "0",
  367. "willPayload": ""
  368. },
  369. {
  370. "id": "45fb716a.a73b4",
  371. "type": "ui_group",
  372. "z": "",
  373. "name": "Кухня",
  374. "tab": "daf8cc25.965c6",
  375. "order": 3,
  376. "disp": true,
  377. "width": "6",
  378. "collapse": false
  379. },
  380. {
  381. "id": "daf8cc25.965c6",
  382. "type": "ui_tab",
  383. "z": "",
  384. "name": "Home",
  385. "icon": "home",
  386. "order": 1,
  387. "disabled": false,
  388. "hidden": false
  389. }
  390. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement