Advertisement
NittyGritty

Blitzwolf Zigbee Steckdose

Jun 15th, 2021
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.00 KB | None | 0 0
  1. [
  2. {
  3. "id": "dce13d.371c3ec",
  4. "type": "tab",
  5. "label": "Blitzwolf Plug 01",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "25b2b830.559948",
  11. "type": "ui_gauge",
  12. "z": "dce13d.371c3ec",
  13. "name": "",
  14. "group": "ba196e43.b35398",
  15. "order": 1,
  16. "width": 0,
  17. "height": 0,
  18. "gtype": "donut",
  19. "title": "Load",
  20. "label": "W",
  21. "format": "{{value}}",
  22. "min": 0,
  23. "max": "1000",
  24. "colors": [
  25. "#00b500",
  26. "#e6e600",
  27. "#ca3838"
  28. ],
  29. "seg1": "",
  30. "seg2": "",
  31. "x": 770,
  32. "y": 360,
  33. "wires": []
  34. },
  35. {
  36. "id": "c7e38de1.fcb0a",
  37. "type": "ui_chart",
  38. "z": "dce13d.371c3ec",
  39. "name": "Verbrauch / Zeit",
  40. "group": "ba196e43.b35398",
  41. "order": 2,
  42. "width": 0,
  43. "height": 0,
  44. "label": "Verbrauch / Zeit",
  45. "chartType": "line",
  46. "legend": "false",
  47. "xformat": "dd HH:mm",
  48. "interpolate": "linear",
  49. "nodata": "",
  50. "dot": false,
  51. "ymin": "0",
  52. "ymax": "1000",
  53. "removeOlder": "12",
  54. "removeOlderPoints": "",
  55. "removeOlderUnit": "3600",
  56. "cutout": 0,
  57. "useOneColor": false,
  58. "useUTC": false,
  59. "colors": [
  60. "#1f77b4",
  61. "#aec7e8",
  62. "#ff7f0e",
  63. "#2ca02c",
  64. "#98df8a",
  65. "#d62728",
  66. "#ff9896",
  67. "#9467bd",
  68. "#c5b0d5"
  69. ],
  70. "outputs": 1,
  71. "useDifferentColor": false,
  72. "x": 800,
  73. "y": 400,
  74. "wires": [
  75. []
  76. ]
  77. },
  78. {
  79. "id": "4f556552.92598c",
  80. "type": "ui_gauge",
  81. "z": "dce13d.371c3ec",
  82. "name": "",
  83. "group": "421e19.192041e8",
  84. "order": 1,
  85. "width": 0,
  86. "height": 0,
  87. "gtype": "wave",
  88. "title": "",
  89. "label": "kWh",
  90. "format": "{{value}}",
  91. "min": "0",
  92. "max": "1000",
  93. "colors": [
  94. "#b50000",
  95. "#e6e600",
  96. "#00b500"
  97. ],
  98. "seg1": "",
  99. "seg2": "",
  100. "x": 770,
  101. "y": 320,
  102. "wires": []
  103. },
  104. {
  105. "id": "66bcfa74.bd3944",
  106. "type": "ui_gauge",
  107. "z": "dce13d.371c3ec",
  108. "name": "Netzspannung",
  109. "group": "4e74439e.ee7e74",
  110. "order": 4,
  111. "width": 0,
  112. "height": 0,
  113. "gtype": "gage",
  114. "title": "Netzspannung",
  115. "label": "V AC",
  116. "format": "{{value}}",
  117. "min": "190",
  118. "max": "240",
  119. "colors": [
  120. "#803e00",
  121. "#01f912",
  122. "#ca3838"
  123. ],
  124. "seg1": "",
  125. "seg2": "",
  126. "x": 800,
  127. "y": 200,
  128. "wires": []
  129. },
  130. {
  131. "id": "ed202b2d.edde88",
  132. "type": "ui_gauge",
  133. "z": "dce13d.371c3ec",
  134. "name": "Link Quality",
  135. "group": "74586b20.85c2f4",
  136. "order": 1,
  137. "width": 0,
  138. "height": 0,
  139. "gtype": "gage",
  140. "title": "Link Quality",
  141. "label": "%",
  142. "format": "{{value}}",
  143. "min": 0,
  144. "max": "100",
  145. "colors": [
  146. "#ff0000",
  147. "#e6e600",
  148. "#00ff01"
  149. ],
  150. "seg1": "",
  151. "seg2": "",
  152. "x": 790,
  153. "y": 540,
  154. "wires": []
  155. },
  156. {
  157. "id": "1d44e223.d94a1e",
  158. "type": "ui_chart",
  159. "z": "dce13d.371c3ec",
  160. "name": "Netzspannung / Zeit",
  161. "group": "4e74439e.ee7e74",
  162. "order": 5,
  163. "width": 0,
  164. "height": 0,
  165. "label": "Netzspannung / Zeit",
  166. "chartType": "line",
  167. "legend": "false",
  168. "xformat": "dd HH:mm",
  169. "interpolate": "linear",
  170. "nodata": "",
  171. "dot": false,
  172. "ymin": "180",
  173. "ymax": "240",
  174. "removeOlder": "12",
  175. "removeOlderPoints": "",
  176. "removeOlderUnit": "3600",
  177. "cutout": 0,
  178. "useOneColor": false,
  179. "useUTC": false,
  180. "colors": [
  181. "#1f77b4",
  182. "#aec7e8",
  183. "#ff7f0e",
  184. "#2ca02c",
  185. "#98df8a",
  186. "#f90101",
  187. "#ff9896",
  188. "#9467bd",
  189. "#c5b0d5"
  190. ],
  191. "outputs": 1,
  192. "useDifferentColor": false,
  193. "x": 820,
  194. "y": 240,
  195. "wires": [
  196. []
  197. ]
  198. },
  199. {
  200. "id": "576b6d94.eae1b4",
  201. "type": "function",
  202. "z": "dce13d.371c3ec",
  203. "name": "",
  204. "func": "// {\"current\":0,\"energy\":0.13,\"linkquality\":76,\"power\":0,\"state\":\"OFF\",\"voltage\":227}\nvar KnotenName = \"Blitzwolf-Plug01\";\n// var Position = JSON.parse(msg.payload.position);\nvar Voltage1 = msg.payload.voltage; \nvar Current1 = msg.payload.current; \nvar Energy1 = msg.payload.energy; \nvar Qual = msg.payload.linkquality;\nvar Power = msg.payload.power;\nvar State = msg.payload.state;\n\nnode.status({fill:\"blue\",shape:\"ring\",text:KnotenName + \" \" +\n \"Current: \" + Current1 + \"A, \" +\n \" Energy: \" + Energy1 + \"W, \" +\n \" Voltage: \" + Voltage1 + \"V\" +\n \" Power: \" + Power + \"W\" +\n \" Qual: \" + Qual + \"%\" +\n \" State: \" + State \n });\n\n\nvar newMsg = {payload:Voltage1 };\nvar newMsg1 = {payload:Current1};\nvar newMsg2 = {payload:Energy1};\nvar newMsg3 = {payload:Power};\nvar newMsg4 = {payload:State};\nvar newMsg5 = {payload:Qual};\n\n// var newMsg = {payload: (msg.payload.charAt(0).toUpperCase() + msg.payload.slice(1)) };\n\nvar newMsg6a = [{\n Room: KnotenName,\n Current: Power,\n Voltage: Voltage1,\n Energy: Energy1\n}]\n\n//msg.selectedItem = msg.payload[msg.count].data3\n\nvar newMsg6 = {payload:newMsg6a};\n\nreturn [newMsg, newMsg1, newMsg2, newMsg3, newMsg4 , newMsg5, newMsg6 ];",
  205. "outputs": 7,
  206. "noerr": 0,
  207. "initialize": "",
  208. "finalize": "",
  209. "x": 480,
  210. "y": 560,
  211. "wires": [
  212. [
  213. "66bcfa74.bd3944",
  214. "1d44e223.d94a1e"
  215. ],
  216. [
  217. "85b4edfd.22121"
  218. ],
  219. [
  220. "4f556552.92598c"
  221. ],
  222. [
  223. "25b2b830.559948",
  224. "c7e38de1.fcb0a"
  225. ],
  226. [
  227. "da6e3848.cacb38",
  228. "5e545053.ea4bd"
  229. ],
  230. [
  231. "ed202b2d.edde88"
  232. ],
  233. [
  234. "6e206e60.d002e"
  235. ]
  236. ]
  237. },
  238. {
  239. "id": "d343a9c3.9d2b38",
  240. "type": "inject",
  241. "z": "dce13d.371c3ec",
  242. "name": "Blitzwolf-01 ON",
  243. "props": [
  244. {
  245. "p": "payload"
  246. },
  247. {
  248. "p": "topic",
  249. "vt": "str"
  250. }
  251. ],
  252. "repeat": "",
  253. "crontab": "",
  254. "once": false,
  255. "onceDelay": 0.1,
  256. "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  257. "payload": "{\"state\": \"ON\"}",
  258. "payloadType": "str",
  259. "x": 140,
  260. "y": 120,
  261. "wires": [
  262. [
  263. "8dba8856.467a18"
  264. ]
  265. ]
  266. },
  267. {
  268. "id": "74136876.7dee48",
  269. "type": "inject",
  270. "z": "dce13d.371c3ec",
  271. "name": "Blitzwolf-01 OFF",
  272. "props": [
  273. {
  274. "p": "payload"
  275. },
  276. {
  277. "p": "topic",
  278. "vt": "str"
  279. }
  280. ],
  281. "repeat": "",
  282. "crontab": "",
  283. "once": false,
  284. "onceDelay": 0.1,
  285. "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  286. "payload": "{\"state\": \"OFF\"}",
  287. "payloadType": "str",
  288. "x": 140,
  289. "y": 160,
  290. "wires": [
  291. [
  292. "8dba8856.467a18"
  293. ]
  294. ]
  295. },
  296. {
  297. "id": "8dba8856.467a18",
  298. "type": "mqtt out",
  299. "z": "dce13d.371c3ec",
  300. "name": "/home/zigbee/Blitzwolf-Plug-01",
  301. "topic": "",
  302. "qos": "0",
  303. "retain": "true",
  304. "broker": "595dfa51.2c1224",
  305. "x": 1110,
  306. "y": 80,
  307. "wires": []
  308. },
  309. {
  310. "id": "a21ba2b7.c2612",
  311. "type": "inject",
  312. "z": "dce13d.371c3ec",
  313. "name": "Blitzwolf-01 Status",
  314. "props": [
  315. {
  316. "p": "payload"
  317. },
  318. {
  319. "p": "topic",
  320. "vt": "str"
  321. }
  322. ],
  323. "repeat": "",
  324. "crontab": "",
  325. "once": false,
  326. "onceDelay": 0.1,
  327. "topic": "/home/zigbee/Blitzwolf-Plug-01/get",
  328. "payload": "{\"state\": \"\"}",
  329. "payloadType": "str",
  330. "x": 150,
  331. "y": 80,
  332. "wires": [
  333. [
  334. "8dba8856.467a18"
  335. ]
  336. ]
  337. },
  338. {
  339. "id": "5e545053.ea4bd",
  340. "type": "ui_switch",
  341. "z": "dce13d.371c3ec",
  342. "name": "",
  343. "label": "Ein / Ausschalter",
  344. "tooltip": "",
  345. "group": "4e74439e.ee7e74",
  346. "order": 1,
  347. "width": 6,
  348. "height": 1,
  349. "passthru": false,
  350. "decouple": "true",
  351. "topic": "/home/zigbee/Blitzwolf-Plug-01/set",
  352. "topicType": "str",
  353. "style": "",
  354. "onvalue": "ON",
  355. "onvalueType": "str",
  356. "onicon": "",
  357. "oncolor": "",
  358. "offvalue": "OFF",
  359. "offvalueType": "str",
  360. "officon": "",
  361. "offcolor": "",
  362. "animate": false,
  363. "x": 810,
  364. "y": 480,
  365. "wires": [
  366. [
  367. "8dba8856.467a18"
  368. ]
  369. ]
  370. },
  371. {
  372. "id": "da6e3848.cacb38",
  373. "type": "ui_led",
  374. "z": "dce13d.371c3ec",
  375. "order": 2,
  376. "group": "4e74439e.ee7e74",
  377. "width": 6,
  378. "height": 1,
  379. "label": "Ein / Aus LED",
  380. "labelPlacement": "left",
  381. "labelAlignment": "left",
  382. "colorForValue": [
  383. {
  384. "color": "#ff0000",
  385. "value": "OFF",
  386. "valueType": "str"
  387. },
  388. {
  389. "color": "#008000",
  390. "value": "ON",
  391. "valueType": "str"
  392. }
  393. ],
  394. "allowColorForValueInMessage": false,
  395. "shape": "circle",
  396. "showGlow": true,
  397. "name": "",
  398. "x": 770,
  399. "y": 440,
  400. "wires": []
  401. },
  402. {
  403. "id": "85b4edfd.22121",
  404. "type": "ui_text",
  405. "z": "dce13d.371c3ec",
  406. "group": "4e74439e.ee7e74",
  407. "order": 3,
  408. "width": 6,
  409. "height": 1,
  410. "name": "Strom",
  411. "label": "A",
  412. "format": "{{msg.payload}}",
  413. "layout": "col-center",
  414. "x": 770,
  415. "y": 280,
  416. "wires": []
  417. },
  418. {
  419. "id": "38365011.eef45",
  420. "type": "comment",
  421. "z": "dce13d.371c3ec",
  422. "name": "Blitzwolf-Plug01",
  423. "info": "",
  424. "x": 100,
  425. "y": 20,
  426. "wires": []
  427. },
  428. {
  429. "id": "6d19d68.ade5528",
  430. "type": "mqtt in",
  431. "z": "dce13d.371c3ec",
  432. "name": "",
  433. "topic": "/home/zigbee/Blitzwolf-Plug-01",
  434. "qos": "2",
  435. "datatype": "auto",
  436. "broker": "595dfa51.2c1224",
  437. "x": 170,
  438. "y": 500,
  439. "wires": [
  440. [
  441. "2355b076.561e4"
  442. ]
  443. ]
  444. },
  445. {
  446. "id": "6e206e60.d002e",
  447. "type": "link out",
  448. "z": "dce13d.371c3ec",
  449. "name": "",
  450. "links": [
  451. "22f2e00e.74f9a"
  452. ],
  453. "x": 735,
  454. "y": 600,
  455. "wires": []
  456. },
  457. {
  458. "id": "2355b076.561e4",
  459. "type": "json",
  460. "z": "dce13d.371c3ec",
  461. "name": "",
  462. "property": "payload",
  463. "action": "",
  464. "pretty": false,
  465. "x": 310,
  466. "y": 560,
  467. "wires": [
  468. [
  469. "576b6d94.eae1b4"
  470. ]
  471. ]
  472. },
  473. {
  474. "id": "ba196e43.b35398",
  475. "type": "ui_group",
  476. "name": "momentaner Verbrauch (W)",
  477. "tab": "61ec3881.53526",
  478. "order": 2,
  479. "disp": true,
  480. "width": 6,
  481. "collapse": false
  482. },
  483. {
  484. "id": "421e19.192041e8",
  485. "type": "ui_group",
  486. "name": "Kumulierter Verbrauch",
  487. "tab": "61ec3881.53526",
  488. "order": 3,
  489. "disp": true,
  490. "width": 6,
  491. "collapse": false
  492. },
  493. {
  494. "id": "4e74439e.ee7e74",
  495. "type": "ui_group",
  496. "name": "Spannung / Strom",
  497. "tab": "61ec3881.53526",
  498. "order": 1,
  499. "disp": true,
  500. "width": "6",
  501. "collapse": false
  502. },
  503. {
  504. "id": "74586b20.85c2f4",
  505. "type": "ui_group",
  506. "name": "Link",
  507. "tab": "61ec3881.53526",
  508. "order": 4,
  509. "disp": true,
  510. "width": 6,
  511. "collapse": false
  512. },
  513. {
  514. "id": "595dfa51.2c1224",
  515. "type": "mqtt-broker",
  516. "name": "",
  517. "broker": "192.168.123.38",
  518. "port": "1883",
  519. "clientid": "",
  520. "usetls": false,
  521. "compatmode": true,
  522. "keepalive": "60",
  523. "cleansession": true,
  524. "birthTopic": "",
  525. "birthQos": "0",
  526. "birthPayload": "",
  527. "closeTopic": "",
  528. "closePayload": "",
  529. "willTopic": "",
  530. "willQos": "0",
  531. "willPayload": ""
  532. },
  533. {
  534. "id": "61ec3881.53526",
  535. "type": "ui_tab",
  536. "name": "Blitzwolf Plug",
  537. "icon": "dashboard",
  538. "order": 3,
  539. "disabled": false,
  540. "hidden": false
  541. }
  542. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement