Advertisement
NittyGritty

Node-Red-Flur

Nov 7th, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.80 KB | None | 0 0
  1. [
  2. {
  3. "id": "ab45cd03.bafba",
  4. "type": "mqtt out",
  5. "z": "b128db8e.4f5468",
  6. "name": "",
  7. "topic": "/home/Zo18/Licht/Charlie",
  8. "qos": "0",
  9. "retain": "true",
  10. "broker": "ed83f9bb.ce19e8",
  11. "x": 750,
  12. "y": 720,
  13. "wires": []
  14. },
  15. {
  16. "id": "47c6c5f.0e5f13c",
  17. "type": "mqtt in",
  18. "z": "b128db8e.4f5468",
  19. "name": "",
  20. "topic": "/home/Zo18/Licht/Charlie",
  21. "qos": "2",
  22. "broker": "ed83f9bb.ce19e8",
  23. "x": 750,
  24. "y": 920,
  25. "wires": [
  26. [
  27. "daa682af.6abf5",
  28. "c3ac046a.d5a5e8"
  29. ]
  30. ]
  31. },
  32. {
  33. "id": "daa682af.6abf5",
  34. "type": "http request",
  35. "z": "b128db8e.4f5468",
  36. "name": "Zo18-Plug02-LED",
  37. "method": "GET",
  38. "ret": "txt",
  39. "paytoqs": false,
  40. "url": "http://192.168.123.132/tools?cmd=GPIO,14,{{{payload}}}",
  41. "tls": "",
  42. "proxy": "",
  43. "x": 1022,
  44. "y": 921,
  45. "wires": [
  46. []
  47. ]
  48. },
  49. {
  50. "id": "c3ac046a.d5a5e8",
  51. "type": "function",
  52. "z": "b128db8e.4f5468",
  53. "name": "Inverts msg.payload",
  54. "func": "if (msg.payload == \"1\") {\n msg = {payload:\"0\"};\n}\n else {\n msg = {payload:\"1\"};\n}\nreturn msg;",
  55. "outputs": 1,
  56. "noerr": 0,
  57. "x": 760,
  58. "y": 860,
  59. "wires": [
  60. [
  61. "de91bdd1.3da64"
  62. ]
  63. ]
  64. },
  65. {
  66. "id": "de91bdd1.3da64",
  67. "type": "http request",
  68. "z": "b128db8e.4f5468",
  69. "name": "Zo18-Plug02-Relais",
  70. "method": "GET",
  71. "ret": "txt",
  72. "paytoqs": false,
  73. "url": "http://192.168.123.132/tools?cmd=GPIO,12,{{{payload}}}",
  74. "tls": "",
  75. "proxy": "",
  76. "x": 1032,
  77. "y": 861,
  78. "wires": [
  79. []
  80. ]
  81. },
  82. {
  83. "id": "3171fda4.c18312",
  84. "type": "inject",
  85. "z": "b128db8e.4f5468",
  86. "name": "",
  87. "topic": "",
  88. "payload": "on",
  89. "payloadType": "str",
  90. "repeat": "",
  91. "crontab": "",
  92. "once": false,
  93. "x": 210,
  94. "y": 940,
  95. "wires": [
  96. [
  97. "cf0ac5c9.768328"
  98. ]
  99. ]
  100. },
  101. {
  102. "id": "74d2e8b3.261a58",
  103. "type": "inject",
  104. "z": "b128db8e.4f5468",
  105. "name": "Off",
  106. "topic": "",
  107. "payload": "off",
  108. "payloadType": "str",
  109. "repeat": "",
  110. "crontab": "",
  111. "once": false,
  112. "x": 210,
  113. "y": 900,
  114. "wires": [
  115. [
  116. "cf0ac5c9.768328"
  117. ]
  118. ]
  119. },
  120. {
  121. "id": "50524ac6.6957c4",
  122. "type": "inject",
  123. "z": "b128db8e.4f5468",
  124. "name": "",
  125. "topic": "",
  126. "payload": "on",
  127. "payloadType": "str",
  128. "repeat": "",
  129. "crontab": "",
  130. "once": false,
  131. "x": 207,
  132. "y": 761,
  133. "wires": [
  134. [
  135. "ca6e9d66.becd4"
  136. ]
  137. ]
  138. },
  139. {
  140. "id": "a11b4275.c7518",
  141. "type": "inject",
  142. "z": "b128db8e.4f5468",
  143. "name": "Off",
  144. "topic": "",
  145. "payload": "off",
  146. "payloadType": "str",
  147. "repeat": "",
  148. "crontab": "",
  149. "once": false,
  150. "x": 207,
  151. "y": 721,
  152. "wires": [
  153. [
  154. "ca6e9d66.becd4"
  155. ]
  156. ]
  157. },
  158. {
  159. "id": "d3001cfe.56513",
  160. "type": "comment",
  161. "z": "b128db8e.4f5468",
  162. "name": "Licht Charllie (Flur)",
  163. "info": "",
  164. "x": 130,
  165. "y": 660,
  166. "wires": []
  167. },
  168. {
  169. "id": "ca6e9d66.becd4",
  170. "type": "schedex",
  171. "z": "b128db8e.4f5468",
  172. "name": "Flur Licht (morgens)",
  173. "suspended": false,
  174. "lat": "48.8124353",
  175. "lon": "8.9792637",
  176. "ontime": "5:30",
  177. "ontopic": "",
  178. "onpayload": "1",
  179. "onoffset": 0,
  180. "onrandomoffset": 0,
  181. "offtime": "5:50",
  182. "offtopic": "",
  183. "offpayload": "0",
  184. "offoffset": 0,
  185. "offrandomoffset": 0,
  186. "mon": true,
  187. "tue": true,
  188. "wed": true,
  189. "thu": true,
  190. "fri": true,
  191. "sat": false,
  192. "sun": false,
  193. "x": 440,
  194. "y": 720,
  195. "wires": [
  196. [
  197. "ab45cd03.bafba"
  198. ]
  199. ]
  200. },
  201. {
  202. "id": "cf0ac5c9.768328",
  203. "type": "schedex",
  204. "z": "b128db8e.4f5468",
  205. "name": "Flur Licht (abends)",
  206. "suspended": false,
  207. "lat": "48.8124353",
  208. "lon": "8.9792637",
  209. "ontime": "sunset",
  210. "ontopic": "",
  211. "onpayload": "1",
  212. "onoffset": 0,
  213. "onrandomoffset": 0,
  214. "offtime": "0:30",
  215. "offtopic": "",
  216. "offpayload": "0",
  217. "offoffset": 0,
  218. "offrandomoffset": 0,
  219. "mon": true,
  220. "tue": true,
  221. "wed": true,
  222. "thu": true,
  223. "fri": true,
  224. "sat": true,
  225. "sun": true,
  226. "x": 430,
  227. "y": 900,
  228. "wires": [
  229. [
  230. "ab45cd03.bafba"
  231. ]
  232. ]
  233. },
  234. {
  235. "id": "c7b275e3.900de8",
  236. "type": "inject",
  237. "z": "b128db8e.4f5468",
  238. "name": "Resume Schedule",
  239. "topic": "",
  240. "payload": "suspended false",
  241. "payloadType": "str",
  242. "repeat": "",
  243. "crontab": "",
  244. "once": false,
  245. "onceDelay": 0.1,
  246. "x": 170,
  247. "y": 840,
  248. "wires": [
  249. [
  250. "ca6e9d66.becd4"
  251. ]
  252. ]
  253. },
  254. {
  255. "id": "c7a6cd03.ec53b",
  256. "type": "inject",
  257. "z": "b128db8e.4f5468",
  258. "name": "Suspend",
  259. "topic": "",
  260. "payload": "suspended true",
  261. "payloadType": "str",
  262. "repeat": "",
  263. "crontab": "",
  264. "once": false,
  265. "onceDelay": 0.1,
  266. "x": 200,
  267. "y": 800,
  268. "wires": [
  269. [
  270. "ca6e9d66.becd4"
  271. ]
  272. ]
  273. },
  274. {
  275. "id": "6fb8cadf.e92b34",
  276. "type": "inject",
  277. "z": "b128db8e.4f5468",
  278. "name": "Resume Schedule",
  279. "topic": "",
  280. "payload": "suspended false",
  281. "payloadType": "str",
  282. "repeat": "",
  283. "crontab": "",
  284. "once": false,
  285. "onceDelay": 0.1,
  286. "x": 170,
  287. "y": 1020,
  288. "wires": [
  289. [
  290. "cf0ac5c9.768328"
  291. ]
  292. ]
  293. },
  294. {
  295. "id": "47d9f7e0.476e28",
  296. "type": "inject",
  297. "z": "b128db8e.4f5468",
  298. "name": "Suspend",
  299. "topic": "",
  300. "payload": "suspended true",
  301. "payloadType": "str",
  302. "repeat": "",
  303. "crontab": "",
  304. "once": false,
  305. "onceDelay": 0.1,
  306. "x": 200,
  307. "y": 980,
  308. "wires": [
  309. [
  310. "cf0ac5c9.768328"
  311. ]
  312. ]
  313. },
  314. {
  315. "id": "9441404.b5bbac",
  316. "type": "mqtt in",
  317. "z": "b128db8e.4f5468",
  318. "name": "",
  319. "topic": "/home/Zo18/RF-Bridge01/relay/3",
  320. "qos": "2",
  321. "datatype": "auto",
  322. "broker": "ed83f9bb.ce19e8",
  323. "x": 190,
  324. "y": 1140,
  325. "wires": [
  326. [
  327. "b3b2bfbd.8aa0b"
  328. ]
  329. ]
  330. },
  331. {
  332. "id": "ee6df6a9.64f128",
  333. "type": "trigger",
  334. "z": "b128db8e.4f5468",
  335. "op1": "1",
  336. "op2": "0",
  337. "op1type": "str",
  338. "op2type": "str",
  339. "duration": "2",
  340. "extend": true,
  341. "units": "min",
  342. "reset": "off",
  343. "bytopic": "all",
  344. "name": "Pulse",
  345. "x": 550,
  346. "y": 1140,
  347. "wires": [
  348. [
  349. "72e94714.7de818"
  350. ]
  351. ]
  352. },
  353. {
  354. "id": "b3b2bfbd.8aa0b",
  355. "type": "switch",
  356. "z": "b128db8e.4f5468",
  357. "name": "ON",
  358. "property": "payload",
  359. "propertyType": "msg",
  360. "rules": [
  361. {
  362. "t": "eq",
  363. "v": "1",
  364. "vt": "str"
  365. }
  366. ],
  367. "checkall": "true",
  368. "repair": false,
  369. "outputs": 1,
  370. "x": 410,
  371. "y": 1140,
  372. "wires": [
  373. [
  374. "ee6df6a9.64f128"
  375. ]
  376. ]
  377. },
  378. {
  379. "id": "26cee9d0.478d46",
  380. "type": "inject",
  381. "z": "b128db8e.4f5468",
  382. "name": "Pulse Off",
  383. "topic": "",
  384. "payload": "off",
  385. "payloadType": "str",
  386. "repeat": "",
  387. "crontab": "",
  388. "once": false,
  389. "onceDelay": 0.1,
  390. "x": 260,
  391. "y": 1200,
  392. "wires": [
  393. [
  394. "ee6df6a9.64f128"
  395. ]
  396. ]
  397. },
  398. {
  399. "id": "7794bd4e.38dcd4",
  400. "type": "mqtt in",
  401. "z": "b128db8e.4f5468",
  402. "name": "",
  403. "topic": "/home/Zo18/AutoLicht/Flur",
  404. "qos": "2",
  405. "datatype": "auto",
  406. "broker": "ed83f9bb.ce19e8",
  407. "x": 750,
  408. "y": 800,
  409. "wires": [
  410. [
  411. "c3ac046a.d5a5e8",
  412. "daa682af.6abf5"
  413. ]
  414. ]
  415. },
  416. {
  417. "id": "72e94714.7de818",
  418. "type": "mqtt out",
  419. "z": "b128db8e.4f5468",
  420. "name": "",
  421. "topic": "/home/Zo18/AutoLicht/Flur",
  422. "qos": "",
  423. "retain": "",
  424. "broker": "ed83f9bb.ce19e8",
  425. "x": 800,
  426. "y": 1140,
  427. "wires": []
  428. },
  429. {
  430. "id": "c152e8d4.d1c698",
  431. "type": "fake-wemo",
  432. "z": "b128db8e.4f5468",
  433. "initialState": "false",
  434. "initialStateType": "bool",
  435. "name": "Charly",
  436. "friendlyName": "Charly",
  437. "interface": "eth0",
  438. "port": "40102",
  439. "onTopic": "",
  440. "onPayload": "on",
  441. "offTopic": "",
  442. "offPayload": "off",
  443. "x": 210,
  444. "y": 1060,
  445. "wires": [
  446. [
  447. "cf0ac5c9.768328"
  448. ]
  449. ]
  450. },
  451. {
  452. "id": "ed83f9bb.ce19e8",
  453. "type": "mqtt-broker",
  454. "z": "",
  455. "broker": "192.168.123.40",
  456. "port": "1883",
  457. "clientid": "",
  458. "usetls": false,
  459. "compatmode": true,
  460. "keepalive": "60",
  461. "cleansession": true,
  462. "birthTopic": "",
  463. "birthQos": "0",
  464. "birthPayload": "",
  465. "willTopic": "",
  466. "willQos": "0",
  467. "willPayload": ""
  468. }
  469. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement