Guest User

Untitled

a guest
May 14th, 2020
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.89 KB | None | 0 0
  1. [
  2. {
  3. "id": "1f6d9556.8c093b",
  4. "type": "tab",
  5. "label": "Flow 2",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "535c65f2.dffb7c",
  11. "type": "file in",
  12. "z": "1f6d9556.8c093b",
  13. "name": "",
  14. "filename": "/data/test.jpg",
  15. "format": "",
  16. "chunk": false,
  17. "sendError": false,
  18. "x": 990,
  19. "y": 160,
  20. "wires": [
  21. [
  22. "86280213.03e8a"
  23. ]
  24. ]
  25. },
  26. {
  27. "id": "9b1c173c.869db8",
  28. "type": "mqtt in",
  29. "z": "1f6d9556.8c093b",
  30. "name": "/mom_tracker",
  31. "topic": "/mom_tracker",
  32. "qos": "2",
  33. "datatype": "auto",
  34. "broker": "",
  35. "x": 90,
  36. "y": 240,
  37. "wires": [
  38. [
  39. "8173dbc4.184c38"
  40. ]
  41. ]
  42. },
  43. {
  44. "id": "a0cb96db.6dcc08",
  45. "type": "file in",
  46. "z": "1f6d9556.8c093b",
  47. "name": "",
  48. "filename": "/data/test.jpg",
  49. "format": "",
  50. "chunk": false,
  51. "sendError": false,
  52. "x": 730,
  53. "y": 300,
  54. "wires": [
  55. [
  56. "c0769f48.8df9b"
  57. ]
  58. ]
  59. },
  60. {
  61. "id": "7c8e1c9.81237e4",
  62. "type": "switch",
  63. "z": "1f6d9556.8c093b",
  64. "name": "",
  65. "property": "payload.results.plate",
  66. "propertyType": "msg",
  67. "rules": [
  68. {
  69. "t": "eq",
  70. "v": "NumerplateMOM",
  71. "vt": "str"
  72. }
  73. ],
  74. "checkall": "true",
  75. "repair": false,
  76. "outputs": 1,
  77. "x": 1050,
  78. "y": 340,
  79. "wires": [
  80. [
  81. "6777ea48.893a84"
  82. ]
  83. ]
  84. },
  85. {
  86. "id": "6777ea48.893a84",
  87. "type": "change",
  88. "z": "1f6d9556.8c093b",
  89. "name": "",
  90. "rules": [
  91. {
  92. "t": "set",
  93. "p": "car_homealone",
  94. "pt": "flow",
  95. "to": "true",
  96. "tot": "bool"
  97. }
  98. ],
  99. "action": "",
  100. "property": "",
  101. "from": "",
  102. "to": "",
  103. "reg": false,
  104. "x": 1230,
  105. "y": 360,
  106. "wires": [
  107. []
  108. ]
  109. },
  110. {
  111. "id": "8173dbc4.184c38",
  112. "type": "switch",
  113. "z": "1f6d9556.8c093b",
  114. "name": "",
  115. "property": "payload",
  116. "propertyType": "msg",
  117. "rules": [
  118. {
  119. "t": "eq",
  120. "v": "out",
  121. "vt": "str"
  122. },
  123. {
  124. "t": "eq",
  125. "v": "home",
  126. "vt": "str"
  127. }
  128. ],
  129. "checkall": "true",
  130. "repair": false,
  131. "outputs": 2,
  132. "x": 230,
  133. "y": 260,
  134. "wires": [
  135. [
  136. "1c429bd0.13b1f4"
  137. ],
  138. [
  139. "b1b6dcc4.51d86"
  140. ]
  141. ]
  142. },
  143. {
  144. "id": "52c4a96a.2f12e8",
  145. "type": "change",
  146. "z": "1f6d9556.8c093b",
  147. "name": "",
  148. "rules": [
  149. {
  150. "t": "set",
  151. "p": "car_homealone",
  152. "pt": "flow",
  153. "to": "false",
  154. "tot": "bool"
  155. }
  156. ],
  157. "action": "",
  158. "property": "",
  159. "from": "",
  160. "to": "",
  161. "reg": false,
  162. "x": 610,
  163. "y": 380,
  164. "wires": [
  165. []
  166. ]
  167. },
  168. {
  169. "id": "b1b6dcc4.51d86",
  170. "type": "delay",
  171. "z": "1f6d9556.8c093b",
  172. "name": "",
  173. "pauseType": "delay",
  174. "timeout": "305",
  175. "timeoutUnits": "seconds",
  176. "rate": "1",
  177. "nbRateUnits": "1",
  178. "rateUnits": "second",
  179. "randomFirst": "1",
  180. "randomLast": "5",
  181. "randomUnits": "seconds",
  182. "drop": false,
  183. "x": 390,
  184. "y": 360,
  185. "wires": [
  186. [
  187. "52c4a96a.2f12e8"
  188. ]
  189. ]
  190. },
  191. {
  192. "id": "19a3bdf6.89cfd2",
  193. "type": "switch",
  194. "z": "1f6d9556.8c093b",
  195. "name": "score > 75%",
  196. "property": "payload.results.score",
  197. "propertyType": "msg",
  198. "rules": [
  199. {
  200. "t": "gt",
  201. "v": "0.75",
  202. "vt": "num"
  203. }
  204. ],
  205. "checkall": "true",
  206. "repair": false,
  207. "outputs": 1,
  208. "x": 1330,
  209. "y": 200,
  210. "wires": [
  211. [
  212. "dc93a814.9c82b8"
  213. ]
  214. ]
  215. },
  216. {
  217. "id": "758333bb.b689cc",
  218. "type": "api-get-history",
  219. "z": "1f6d9556.8c093b",
  220. "name": "",
  221. "server": "c213595e.218008",
  222. "startdate": "",
  223. "enddate": "",
  224. "entityid": "person.name",
  225. "entityidtype": "is",
  226. "useRelativeTime": true,
  227. "relativeTime": "5 minutes",
  228. "flatten": true,
  229. "output_type": "split",
  230. "output_location_type": "msg",
  231. "output_location": "payload",
  232. "x": 2320,
  233. "y": 200,
  234. "wires": [
  235. [
  236. "a5a1f193.5cf1b"
  237. ]
  238. ]
  239. },
  240. {
  241. "id": "a5a1f193.5cf1b",
  242. "type": "switch",
  243. "z": "1f6d9556.8c093b",
  244. "name": "",
  245. "property": "payload.state",
  246. "propertyType": "msg",
  247. "rules": [
  248. {
  249. "t": "eq",
  250. "v": "not_home",
  251. "vt": "str"
  252. }
  253. ],
  254. "checkall": "true",
  255. "repair": false,
  256. "outputs": 1,
  257. "x": 2480,
  258. "y": 200,
  259. "wires": [
  260. [
  261. "6638087e.7182d8",
  262. "766dcc12.5f5234"
  263. ]
  264. ]
  265. },
  266. {
  267. "id": "6801df70.dee8e",
  268. "type": "api-get-history",
  269. "z": "1f6d9556.8c093b",
  270. "name": "",
  271. "server": "c213595e.218008",
  272. "startdate": "",
  273. "enddate": "",
  274. "entityid": "person.name",
  275. "entityidtype": "is",
  276. "useRelativeTime": true,
  277. "relativeTime": "5 minutes",
  278. "flatten": true,
  279. "output_type": "split",
  280. "output_location_type": "msg",
  281. "output_location": "payload",
  282. "x": 2320,
  283. "y": 240,
  284. "wires": [
  285. [
  286. "5a654530.2fb4bc"
  287. ]
  288. ]
  289. },
  290. {
  291. "id": "5a654530.2fb4bc",
  292. "type": "switch",
  293. "z": "1f6d9556.8c093b",
  294. "name": "",
  295. "property": "payload.state",
  296. "propertyType": "msg",
  297. "rules": [
  298. {
  299. "t": "eq",
  300. "v": "not_home",
  301. "vt": "str"
  302. }
  303. ],
  304. "checkall": "true",
  305. "repair": false,
  306. "outputs": 1,
  307. "x": 2480,
  308. "y": 240,
  309. "wires": [
  310. [
  311. "42e5a959.25e948"
  312. ]
  313. ]
  314. },
  315. {
  316. "id": "dc93a814.9c82b8",
  317. "type": "switch",
  318. "z": "1f6d9556.8c093b",
  319. "name": "Car Database",
  320. "property": "payload.results.plate",
  321. "propertyType": "msg",
  322. "rules": [
  323. {
  324. "t": "eq",
  325. "v": "[Numerplate 1]",
  326. "vt": "str"
  327. },
  328. {
  329. "t": "eq",
  330. "v": "[Numerplate 2]",
  331. "vt": "str"
  332. },
  333. {
  334. "t": "eq",
  335. "v": "[Numerplate 3]",
  336. "vt": "str"
  337. },
  338. {
  339. "t": "eq",
  340. "v": "[Numerplate 4]",
  341. "vt": "str"
  342. },
  343. {
  344. "t": "eq",
  345. "v": "[Numerplate 5]",
  346. "vt": "str"
  347. },
  348. {
  349. "t": "eq",
  350. "v": "[Numerplate 6]",
  351. "vt": "str"
  352. },
  353. {
  354. "t": "eq",
  355. "v": "[Numerplate 7]",
  356. "vt": "str"
  357. },
  358. {
  359. "t": "else"
  360. }
  361. ],
  362. "checkall": "true",
  363. "repair": false,
  364. "outputs": 8,
  365. "x": 1520,
  366. "y": 240,
  367. "wires": [
  368. [
  369. "1a36502c.32652"
  370. ],
  371. [
  372. "fb77f302.7b81a"
  373. ],
  374. [
  375. "69aedf0e.0edae"
  376. ],
  377. [
  378. "f4e7e963.4eeac8"
  379. ],
  380. [
  381. "cca21e11.7c614"
  382. ],
  383. [
  384. "1b6d971e.a385c9"
  385. ],
  386. [],
  387. [
  388. "f0c51029.cb30f"
  389. ]
  390. ]
  391. },
  392. {
  393. "id": "aa9421f5.f0c4e",
  394. "type": "simple-queue",
  395. "z": "1f6d9556.8c093b",
  396. "name": "queue",
  397. "firstMessageBypass": true,
  398. "bypassInterval": "3000",
  399. "x": 3270,
  400. "y": 320,
  401. "wires": [
  402. [
  403. "5fe056d5.6350c8"
  404. ]
  405. ]
  406. },
  407. {
  408. "id": "c47d6365.3125f",
  409. "type": "throttle",
  410. "z": "1f6d9556.8c093b",
  411. "name": "dad",
  412. "throttleType": "time",
  413. "timeLimit": "420",
  414. "timeLimitType": "seconds",
  415. "countLimit": 0,
  416. "blockSize": 0,
  417. "locked": false,
  418. "x": 1870,
  419. "y": 100,
  420. "wires": [
  421. [
  422. "758333bb.b689cc"
  423. ]
  424. ]
  425. },
  426. {
  427. "id": "be31d1a1.f3171",
  428. "type": "throttle",
  429. "z": "1f6d9556.8c093b",
  430. "name": "mom",
  431. "throttleType": "time",
  432. "timeLimit": "420",
  433. "timeLimitType": "seconds",
  434. "countLimit": 0,
  435. "blockSize": 0,
  436. "locked": false,
  437. "x": 1870,
  438. "y": 140,
  439. "wires": [
  440. [
  441. "6801df70.dee8e"
  442. ]
  443. ]
  444. },
  445. {
  446. "id": "fb77f302.7b81a",
  447. "type": "switch",
  448. "z": "1f6d9556.8c093b",
  449. "name": "",
  450. "property": "car_homealone",
  451. "propertyType": "flow",
  452. "rules": [
  453. {
  454. "t": "false"
  455. }
  456. ],
  457. "checkall": "true",
  458. "repair": false,
  459. "outputs": 1,
  460. "x": 1750,
  461. "y": 140,
  462. "wires": [
  463. [
  464. "be31d1a1.f3171"
  465. ]
  466. ]
  467. },
  468. {
  469. "id": "f4e7e963.4eeac8",
  470. "type": "throttle",
  471. "z": "1f6d9556.8c093b",
  472. "name": "A",
  473. "throttleType": "time",
  474. "timeLimit": "120",
  475. "timeLimitType": "hours",
  476. "countLimit": 0,
  477. "blockSize": 0,
  478. "locked": false,
  479. "x": 1750,
  480. "y": 320,
  481. "wires": [
  482. [
  483. "53b9dcef.752594"
  484. ]
  485. ]
  486. },
  487. {
  488. "id": "1a36502c.32652",
  489. "type": "switch",
  490. "z": "1f6d9556.8c093b",
  491. "name": "",
  492. "property": "car_homealone_dad",
  493. "propertyType": "flow",
  494. "rules": [
  495. {
  496. "t": "false"
  497. }
  498. ],
  499. "checkall": "true",
  500. "repair": false,
  501. "outputs": 1,
  502. "x": 1750,
  503. "y": 100,
  504. "wires": [
  505. [
  506. "c47d6365.3125f"
  507. ]
  508. ]
  509. },
  510. {
  511. "id": "42e5a959.25e948",
  512. "type": "change",
  513. "z": "1f6d9556.8c093b",
  514. "name": "Mom",
  515. "rules": [
  516. {
  517. "t": "set",
  518. "p": "payload",
  519. "pt": "msg",
  520. "to": "play.notification",
  521. "tot": "str"
  522. },
  523. {
  524. "t": "set",
  525. "p": "topic",
  526. "pt": "msg",
  527. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  528. "tot": "str"
  529. },
  530. {
  531. "t": "set",
  532. "p": "volume",
  533. "pt": "msg",
  534. "to": "55",
  535. "tot": "num"
  536. }
  537. ],
  538. "action": "",
  539. "property": "",
  540. "from": "",
  541. "to": "",
  542. "reg": false,
  543. "x": 2610,
  544. "y": 240,
  545. "wires": [
  546. [
  547. "aa9421f5.f0c4e"
  548. ]
  549. ]
  550. },
  551. {
  552. "id": "6638087e.7182d8",
  553. "type": "change",
  554. "z": "1f6d9556.8c093b",
  555. "name": "Dad",
  556. "rules": [
  557. {
  558. "t": "set",
  559. "p": "payload",
  560. "pt": "msg",
  561. "to": "play.notification",
  562. "tot": "str"
  563. },
  564. {
  565. "t": "set",
  566. "p": "topic",
  567. "pt": "msg",
  568. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  569. "tot": "str"
  570. },
  571. {
  572. "t": "set",
  573. "p": "volume",
  574. "pt": "msg",
  575. "to": "5",
  576. "tot": "num"
  577. }
  578. ],
  579. "action": "",
  580. "property": "",
  581. "from": "",
  582. "to": "",
  583. "reg": false,
  584. "x": 2610,
  585. "y": 200,
  586. "wires": [
  587. [
  588. "aa9421f5.f0c4e"
  589. ]
  590. ]
  591. },
  592. {
  593. "id": "53b9dcef.752594",
  594. "type": "change",
  595. "z": "1f6d9556.8c093b",
  596. "name": "A",
  597. "rules": [
  598. {
  599. "t": "set",
  600. "p": "payload",
  601. "pt": "msg",
  602. "to": "play.notification",
  603. "tot": "str"
  604. },
  605. {
  606. "t": "set",
  607. "p": "topic",
  608. "pt": "msg",
  609. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  610. "tot": "str"
  611. },
  612. {
  613. "t": "set",
  614. "p": "volume",
  615. "pt": "msg",
  616. "to": "55",
  617. "tot": "num"
  618. }
  619. ],
  620. "action": "",
  621. "property": "",
  622. "from": "",
  623. "to": "",
  624. "reg": false,
  625. "x": 2310,
  626. "y": 320,
  627. "wires": [
  628. [
  629. "aa9421f5.f0c4e"
  630. ]
  631. ]
  632. },
  633. {
  634. "id": "5fe056d5.6350c8",
  635. "type": "sonos-universal",
  636. "z": "1f6d9556.8c093b",
  637. "confignode": "",
  638. "name": "",
  639. "x": 3420,
  640. "y": 320,
  641. "wires": [
  642. []
  643. ]
  644. },
  645. {
  646. "id": "d0cab1b9.55b0c",
  647. "type": "comment",
  648. "z": "1f6d9556.8c093b",
  649. "name": "Residents - presence awareness. Throttle Node to only allow one message with a specific timeframe",
  650. "info": "",
  651. "x": 2040,
  652. "y": 20,
  653. "wires": []
  654. },
  655. {
  656. "id": "f7e860f1.8d981",
  657. "type": "comment",
  658. "z": "1f6d9556.8c093b",
  659. "name": "Friends who stay over for a limited time < 12 hours",
  660. "info": "",
  661. "x": 1890,
  662. "y": 180,
  663. "wires": []
  664. },
  665. {
  666. "id": "e6e0fc1d.82e46",
  667. "type": "comment",
  668. "z": "1f6d9556.8c093b",
  669. "name": "Over-nigthers (grandparents)",
  670. "info": "",
  671. "x": 1820,
  672. "y": 280,
  673. "wires": []
  674. },
  675. {
  676. "id": "22e601b8.52308e",
  677. "type": "comment",
  678. "z": "1f6d9556.8c093b",
  679. "name": "Unkown car",
  680. "info": "",
  681. "x": 1770,
  682. "y": 520,
  683. "wires": []
  684. },
  685. {
  686. "id": "cca21e11.7c614",
  687. "type": "throttle",
  688. "z": "1f6d9556.8c093b",
  689. "name": "B",
  690. "throttleType": "time",
  691. "timeLimit": "120",
  692. "timeLimitType": "hours",
  693. "countLimit": 0,
  694. "blockSize": 0,
  695. "locked": false,
  696. "x": 1750,
  697. "y": 360,
  698. "wires": [
  699. [
  700. "cee64c41.75639"
  701. ]
  702. ]
  703. },
  704. {
  705. "id": "cee64c41.75639",
  706. "type": "change",
  707. "z": "1f6d9556.8c093b",
  708. "name": "B",
  709. "rules": [
  710. {
  711. "t": "set",
  712. "p": "payload",
  713. "pt": "msg",
  714. "to": "play.notification",
  715. "tot": "str"
  716. },
  717. {
  718. "t": "set",
  719. "p": "topic",
  720. "pt": "msg",
  721. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  722. "tot": "str"
  723. },
  724. {
  725. "t": "set",
  726. "p": "volume",
  727. "pt": "msg",
  728. "to": "55",
  729. "tot": "num"
  730. }
  731. ],
  732. "action": "",
  733. "property": "",
  734. "from": "",
  735. "to": "",
  736. "reg": false,
  737. "x": 2310,
  738. "y": 360,
  739. "wires": [
  740. [
  741. "aa9421f5.f0c4e"
  742. ]
  743. ]
  744. },
  745. {
  746. "id": "69aedf0e.0edae",
  747. "type": "throttle",
  748. "z": "1f6d9556.8c093b",
  749. "name": "A and B",
  750. "throttleType": "time",
  751. "timeLimit": "12",
  752. "timeLimitType": "hours",
  753. "countLimit": 0,
  754. "blockSize": 0,
  755. "locked": false,
  756. "x": 1760,
  757. "y": 220,
  758. "wires": [
  759. [
  760. "6be5eab5.f7f474"
  761. ]
  762. ]
  763. },
  764. {
  765. "id": "6be5eab5.f7f474",
  766. "type": "change",
  767. "z": "1f6d9556.8c093b",
  768. "name": "A and B",
  769. "rules": [
  770. {
  771. "t": "set",
  772. "p": "payload",
  773. "pt": "msg",
  774. "to": "play.notification",
  775. "tot": "str"
  776. },
  777. {
  778. "t": "set",
  779. "p": "topic",
  780. "pt": "msg",
  781. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  782. "tot": "str"
  783. },
  784. {
  785. "t": "set",
  786. "p": "volume",
  787. "pt": "msg",
  788. "to": "55",
  789. "tot": "num"
  790. }
  791. ],
  792. "action": "",
  793. "property": "",
  794. "from": "",
  795. "to": "",
  796. "reg": false,
  797. "x": 2320,
  798. "y": 280,
  799. "wires": [
  800. [
  801. "aa9421f5.f0c4e"
  802. ]
  803. ]
  804. },
  805. {
  806. "id": "cb05e5fa.29c3e8",
  807. "type": "comment",
  808. "z": "1f6d9556.8c093b",
  809. "name": "Kids' friends (drop-off)",
  810. "info": "",
  811. "x": 1800,
  812. "y": 420,
  813. "wires": []
  814. },
  815. {
  816. "id": "1b6d971e.a385c9",
  817. "type": "throttle",
  818. "z": "1f6d9556.8c093b",
  819. "name": "A and B",
  820. "throttleType": "time",
  821. "timeLimit": "45",
  822. "timeLimitType": "minutes",
  823. "countLimit": 0,
  824. "blockSize": 0,
  825. "locked": false,
  826. "x": 1760,
  827. "y": 460,
  828. "wires": [
  829. [
  830. "b44d00c8.95e73"
  831. ]
  832. ]
  833. },
  834. {
  835. "id": "f0c51029.cb30f",
  836. "type": "throttle",
  837. "z": "1f6d9556.8c093b",
  838. "name": "Unknown Car",
  839. "throttleType": "time",
  840. "timeLimit": "4",
  841. "timeLimitType": "hours",
  842. "countLimit": 0,
  843. "blockSize": 0,
  844. "locked": false,
  845. "x": 1780,
  846. "y": 560,
  847. "wires": [
  848. [
  849. "505599ff.9a5d88"
  850. ]
  851. ]
  852. },
  853. {
  854. "id": "5865c2a5.d28e1c",
  855. "type": "exec",
  856. "z": "1f6d9556.8c093b",
  857. "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
  858. "addpay": false,
  859. "append": "",
  860. "useSpawn": "false",
  861. "timer": "",
  862. "oldrc": false,
  863. "name": "Get File",
  864. "x": 840,
  865. "y": 140,
  866. "wires": [
  867. [
  868. "535c65f2.dffb7c"
  869. ],
  870. [],
  871. []
  872. ]
  873. },
  874. {
  875. "id": "991094ea.babc88",
  876. "type": "api-call-service",
  877. "z": "1f6d9556.8c093b",
  878. "name": "Take Snapshot",
  879. "server": "c213595e.218008",
  880. "version": 1,
  881. "debugenabled": false,
  882. "service_domain": "camera",
  883. "service": "snapshot",
  884. "entityId": "camera.driveway",
  885. "data": "{\"filename\":\"/config/www/test.jpg\"}",
  886. "dataType": "json",
  887. "mergecontext": "",
  888. "output_location": "",
  889. "output_location_type": "none",
  890. "mustacheAltTags": false,
  891. "x": 680,
  892. "y": 120,
  893. "wires": [
  894. [
  895. "5865c2a5.d28e1c"
  896. ]
  897. ]
  898. },
  899. {
  900. "id": "62c5889f.b0d2a8",
  901. "type": "exec",
  902. "z": "1f6d9556.8c093b",
  903. "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
  904. "addpay": false,
  905. "append": "",
  906. "useSpawn": "false",
  907. "timer": "",
  908. "oldrc": false,
  909. "name": "Get File",
  910. "x": 580,
  911. "y": 280,
  912. "wires": [
  913. [
  914. "a0cb96db.6dcc08"
  915. ],
  916. [],
  917. []
  918. ]
  919. },
  920. {
  921. "id": "1c429bd0.13b1f4",
  922. "type": "api-call-service",
  923. "z": "1f6d9556.8c093b",
  924. "name": "",
  925. "server": "c213595e.218008",
  926. "version": 1,
  927. "debugenabled": false,
  928. "service_domain": "camera",
  929. "service": "snapshot",
  930. "entityId": "camera.driveway",
  931. "data": "{\"filename\":\"/config/www/test.jpg\"}",
  932. "dataType": "json",
  933. "mergecontext": "",
  934. "output_location": "",
  935. "output_location_type": "none",
  936. "mustacheAltTags": false,
  937. "x": 400,
  938. "y": 240,
  939. "wires": [
  940. [
  941. "62c5889f.b0d2a8"
  942. ]
  943. ]
  944. },
  945. {
  946. "id": "766dcc12.5f5234",
  947. "type": "api-call-service",
  948. "z": "1f6d9556.8c093b",
  949. "name": "mobile notification with camera feed",
  950. "server": "c213595e.218008",
  951. "version": 1,
  952. "debugenabled": false,
  953. "service_domain": "notify",
  954. "service": "mobile_app_iphone",
  955. "entityId": "",
  956. "data": "{\"data\":{\"sticky\":true},\"message\":\"Far er hjemme\",\"title\":\"Jubii - Far er hjemme\"}",
  957. "dataType": "json",
  958. "mergecontext": "",
  959. "output_location": "",
  960. "output_location_type": "none",
  961. "mustacheAltTags": false,
  962. "x": 2860,
  963. "y": 120,
  964. "wires": [
  965. []
  966. ]
  967. },
  968. {
  969. "id": "cdf6938c.bae65",
  970. "type": "hue-motion",
  971. "z": "1f6d9556.8c093b",
  972. "name": "Hue outdoor motion sensor 1",
  973. "bridge": "",
  974. "sensorid": "",
  975. "skipevents": false,
  976. "x": 140,
  977. "y": 60,
  978. "wires": [
  979. [
  980. "9014b440.ea82c8"
  981. ]
  982. ]
  983. },
  984. {
  985. "id": "9014b440.ea82c8",
  986. "type": "throttle",
  987. "z": "1f6d9556.8c093b",
  988. "name": "Only 1 pic per 30 sec",
  989. "throttleType": "time",
  990. "timeLimit": "30",
  991. "timeLimitType": "seconds",
  992. "countLimit": 0,
  993. "blockSize": 0,
  994. "locked": false,
  995. "x": 380,
  996. "y": 80,
  997. "wires": [
  998. [
  999. "73733c5d.aef744"
  1000. ]
  1001. ]
  1002. },
  1003. {
  1004. "id": "73733c5d.aef744",
  1005. "type": "delay",
  1006. "z": "1f6d9556.8c093b",
  1007. "name": "Delay to let car arrive in picture",
  1008. "pauseType": "delay",
  1009. "timeout": "2.2",
  1010. "timeoutUnits": "seconds",
  1011. "rate": "1",
  1012. "nbRateUnits": "1",
  1013. "rateUnits": "second",
  1014. "randomFirst": "1",
  1015. "randomLast": "5",
  1016. "randomUnits": "seconds",
  1017. "drop": false,
  1018. "x": 630,
  1019. "y": 80,
  1020. "wires": [
  1021. [
  1022. "991094ea.babc88"
  1023. ]
  1024. ]
  1025. },
  1026. {
  1027. "id": "86280213.03e8a",
  1028. "type": "plate-recognizer",
  1029. "z": "1f6d9556.8c093b",
  1030. "name": "",
  1031. "inputField": "payload",
  1032. "inputFieldType": "msg",
  1033. "outputField": "payload",
  1034. "outputFieldType": "msg",
  1035. "url": "https://api.platerecognizer.com/v1/plate-reader/",
  1036. "ignoreDuring": true,
  1037. "makeAndModel": false,
  1038. "statusText": "scores",
  1039. "cameraId": "",
  1040. "separateMsg": true,
  1041. "regionFilter": false,
  1042. "regionList": "[]",
  1043. "regionListType": "json",
  1044. "x": 1160,
  1045. "y": 180,
  1046. "wires": [
  1047. [
  1048. "19a3bdf6.89cfd2"
  1049. ],
  1050. []
  1051. ]
  1052. },
  1053. {
  1054. "id": "66fcf2e0.5b4d1c",
  1055. "type": "comment",
  1056. "z": "1f6d9556.8c093b",
  1057. "name": "Residents status is checked to see if the person has been out in the last 5 minutes (otherwise don't announce)",
  1058. "info": "",
  1059. "x": 2630,
  1060. "y": 160,
  1061. "wires": []
  1062. },
  1063. {
  1064. "id": "11a77b92.e4f514",
  1065. "type": "comment",
  1066. "z": "1f6d9556.8c093b",
  1067. "name": "Switch to check if the person has left without his/her car (to avoid annoncing when car is home, resident is out and movement is detected)",
  1068. "info": "",
  1069. "x": 2160,
  1070. "y": 60,
  1071. "wires": []
  1072. },
  1073. {
  1074. "id": "fc4541b7.c4d9b",
  1075. "type": "comment",
  1076. "z": "1f6d9556.8c093b",
  1077. "name": "Notification on phone",
  1078. "info": "",
  1079. "x": 2820,
  1080. "y": 80,
  1081. "wires": []
  1082. },
  1083. {
  1084. "id": "c1da16f3.07a948",
  1085. "type": "comment",
  1086. "z": "1f6d9556.8c093b",
  1087. "name": "Queue in case several cars are detected at once",
  1088. "info": "",
  1089. "x": 3400,
  1090. "y": 280,
  1091. "wires": []
  1092. },
  1093. {
  1094. "id": "b44d00c8.95e73",
  1095. "type": "change",
  1096. "z": "1f6d9556.8c093b",
  1097. "name": "A and B",
  1098. "rules": [
  1099. {
  1100. "t": "set",
  1101. "p": "payload",
  1102. "pt": "msg",
  1103. "to": "play.notification",
  1104. "tot": "str"
  1105. },
  1106. {
  1107. "t": "set",
  1108. "p": "topic",
  1109. "pt": "msg",
  1110. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  1111. "tot": "str"
  1112. },
  1113. {
  1114. "t": "set",
  1115. "p": "volume",
  1116. "pt": "msg",
  1117. "to": "55",
  1118. "tot": "num"
  1119. }
  1120. ],
  1121. "action": "",
  1122. "property": "",
  1123. "from": "",
  1124. "to": "",
  1125. "reg": false,
  1126. "x": 2320,
  1127. "y": 460,
  1128. "wires": [
  1129. [
  1130. "aa9421f5.f0c4e"
  1131. ]
  1132. ]
  1133. },
  1134. {
  1135. "id": "505599ff.9a5d88",
  1136. "type": "change",
  1137. "z": "1f6d9556.8c093b",
  1138. "name": "Unknown Car",
  1139. "rules": [
  1140. {
  1141. "t": "set",
  1142. "p": "payload",
  1143. "pt": "msg",
  1144. "to": "play.notification",
  1145. "tot": "str"
  1146. },
  1147. {
  1148. "t": "set",
  1149. "p": "topic",
  1150. "pt": "msg",
  1151. "to": "http://192.168.86.XXX:1880/[FILE].mp3",
  1152. "tot": "str"
  1153. },
  1154. {
  1155. "t": "set",
  1156. "p": "volume",
  1157. "pt": "msg",
  1158. "to": "55",
  1159. "tot": "num"
  1160. }
  1161. ],
  1162. "action": "",
  1163. "property": "",
  1164. "from": "",
  1165. "to": "",
  1166. "reg": false,
  1167. "x": 2340,
  1168. "y": 520,
  1169. "wires": [
  1170. [
  1171. "aa9421f5.f0c4e"
  1172. ]
  1173. ]
  1174. },
  1175. {
  1176. "id": "c1b5aedd.8f96f",
  1177. "type": "mqtt in",
  1178. "z": "1f6d9556.8c093b",
  1179. "name": "/dad_tracker",
  1180. "topic": "/dad_tracker",
  1181. "qos": "2",
  1182. "datatype": "auto",
  1183. "broker": "",
  1184. "x": 90,
  1185. "y": 460,
  1186. "wires": [
  1187. [
  1188. "ce4001c1.8c5d3"
  1189. ]
  1190. ]
  1191. },
  1192. {
  1193. "id": "98df3077.85a4e",
  1194. "type": "file in",
  1195. "z": "1f6d9556.8c093b",
  1196. "name": "",
  1197. "filename": "/data/test.jpg",
  1198. "format": "",
  1199. "chunk": false,
  1200. "sendError": false,
  1201. "x": 730,
  1202. "y": 520,
  1203. "wires": [
  1204. [
  1205. "8720b592.0eb398"
  1206. ]
  1207. ]
  1208. },
  1209. {
  1210. "id": "b341f0c5.baeb",
  1211. "type": "switch",
  1212. "z": "1f6d9556.8c093b",
  1213. "name": "",
  1214. "property": "payload.results.plate",
  1215. "propertyType": "msg",
  1216. "rules": [
  1217. {
  1218. "t": "eq",
  1219. "v": "NumerplateDAD",
  1220. "vt": "str"
  1221. }
  1222. ],
  1223. "checkall": "true",
  1224. "repair": false,
  1225. "outputs": 1,
  1226. "x": 1050,
  1227. "y": 560,
  1228. "wires": [
  1229. [
  1230. "9daca8cf.eb89b8"
  1231. ]
  1232. ]
  1233. },
  1234. {
  1235. "id": "9daca8cf.eb89b8",
  1236. "type": "change",
  1237. "z": "1f6d9556.8c093b",
  1238. "name": "",
  1239. "rules": [
  1240. {
  1241. "t": "set",
  1242. "p": "car_homealone_dad",
  1243. "pt": "flow",
  1244. "to": "true",
  1245. "tot": "bool"
  1246. }
  1247. ],
  1248. "action": "",
  1249. "property": "",
  1250. "from": "",
  1251. "to": "",
  1252. "reg": false,
  1253. "x": 1240,
  1254. "y": 580,
  1255. "wires": [
  1256. []
  1257. ]
  1258. },
  1259. {
  1260. "id": "ce4001c1.8c5d3",
  1261. "type": "switch",
  1262. "z": "1f6d9556.8c093b",
  1263. "name": "",
  1264. "property": "payload",
  1265. "propertyType": "msg",
  1266. "rules": [
  1267. {
  1268. "t": "eq",
  1269. "v": "ude",
  1270. "vt": "str"
  1271. },
  1272. {
  1273. "t": "eq",
  1274. "v": "hjemme",
  1275. "vt": "str"
  1276. }
  1277. ],
  1278. "checkall": "true",
  1279. "repair": false,
  1280. "outputs": 2,
  1281. "x": 230,
  1282. "y": 480,
  1283. "wires": [
  1284. [
  1285. "f4f97e63.49358"
  1286. ],
  1287. [
  1288. "a899cb16.730ea8"
  1289. ]
  1290. ]
  1291. },
  1292. {
  1293. "id": "9e6de79b.6460b8",
  1294. "type": "change",
  1295. "z": "1f6d9556.8c093b",
  1296. "name": "",
  1297. "rules": [
  1298. {
  1299. "t": "set",
  1300. "p": "car_homealone_dad",
  1301. "pt": "flow",
  1302. "to": "false",
  1303. "tot": "bool"
  1304. }
  1305. ],
  1306. "action": "",
  1307. "property": "",
  1308. "from": "",
  1309. "to": "",
  1310. "reg": false,
  1311. "x": 620,
  1312. "y": 620,
  1313. "wires": [
  1314. []
  1315. ]
  1316. },
  1317. {
  1318. "id": "a899cb16.730ea8",
  1319. "type": "delay",
  1320. "z": "1f6d9556.8c093b",
  1321. "name": "",
  1322. "pauseType": "delay",
  1323. "timeout": "305",
  1324. "timeoutUnits": "seconds",
  1325. "rate": "1",
  1326. "nbRateUnits": "1",
  1327. "rateUnits": "second",
  1328. "randomFirst": "1",
  1329. "randomLast": "5",
  1330. "randomUnits": "seconds",
  1331. "drop": false,
  1332. "x": 390,
  1333. "y": 600,
  1334. "wires": [
  1335. [
  1336. "9e6de79b.6460b8"
  1337. ]
  1338. ]
  1339. },
  1340. {
  1341. "id": "6dffc05c.b5069",
  1342. "type": "exec",
  1343. "z": "1f6d9556.8c093b",
  1344. "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
  1345. "addpay": false,
  1346. "append": "",
  1347. "useSpawn": "false",
  1348. "timer": "",
  1349. "oldrc": false,
  1350. "name": "Get File",
  1351. "x": 580,
  1352. "y": 500,
  1353. "wires": [
  1354. [
  1355. "98df3077.85a4e"
  1356. ],
  1357. [],
  1358. []
  1359. ]
  1360. },
  1361. {
  1362. "id": "f4f97e63.49358",
  1363. "type": "api-call-service",
  1364. "z": "1f6d9556.8c093b",
  1365. "name": "",
  1366. "server": "c213595e.218008",
  1367. "version": 1,
  1368. "debugenabled": false,
  1369. "service_domain": "camera",
  1370. "service": "snapshot",
  1371. "entityId": "camera.driveway",
  1372. "data": "{\"filename\":\"/config/www/test.jpg\"}",
  1373. "dataType": "json",
  1374. "mergecontext": "",
  1375. "output_location": "",
  1376. "output_location_type": "none",
  1377. "mustacheAltTags": false,
  1378. "x": 400,
  1379. "y": 460,
  1380. "wires": [
  1381. [
  1382. "6dffc05c.b5069"
  1383. ]
  1384. ]
  1385. },
  1386. {
  1387. "id": "c0769f48.8df9b",
  1388. "type": "plate-recognizer",
  1389. "z": "1f6d9556.8c093b",
  1390. "name": "",
  1391. "inputField": "payload",
  1392. "inputFieldType": "msg",
  1393. "outputField": "payload",
  1394. "outputFieldType": "msg",
  1395. "url": "https://api.platerecognizer.com/v1/plate-reader/",
  1396. "ignoreDuring": true,
  1397. "makeAndModel": false,
  1398. "statusText": "scores",
  1399. "cameraId": "",
  1400. "separateMsg": true,
  1401. "regionFilter": false,
  1402. "regionList": "[]",
  1403. "regionListType": "json",
  1404. "x": 900,
  1405. "y": 320,
  1406. "wires": [
  1407. [
  1408. "7c8e1c9.81237e4"
  1409. ],
  1410. []
  1411. ]
  1412. },
  1413. {
  1414. "id": "8720b592.0eb398",
  1415. "type": "plate-recognizer",
  1416. "z": "1f6d9556.8c093b",
  1417. "name": "",
  1418. "inputField": "payload",
  1419. "inputFieldType": "msg",
  1420. "outputField": "payload",
  1421. "outputFieldType": "msg",
  1422. "url": "https://api.platerecognizer.com/v1/plate-reader/",
  1423. "ignoreDuring": true,
  1424. "makeAndModel": false,
  1425. "statusText": "scores",
  1426. "cameraId": "",
  1427. "separateMsg": true,
  1428. "regionFilter": false,
  1429. "regionList": "[]",
  1430. "regionListType": "json",
  1431. "x": 900,
  1432. "y": 540,
  1433. "wires": [
  1434. [
  1435. "b341f0c5.baeb"
  1436. ],
  1437. []
  1438. ]
  1439. },
  1440. {
  1441. "id": "97b4d5a0.a50aa8",
  1442. "type": "comment",
  1443. "z": "1f6d9556.8c093b",
  1444. "name": "Motion Detection - I have changed to Hue motion sensor due to too many error from HA detection",
  1445. "info": "",
  1446. "x": 350,
  1447. "y": 20,
  1448. "wires": []
  1449. },
  1450. {
  1451. "id": "c213595e.218008",
  1452. "type": "server",
  1453. "z": "",
  1454. "name": "Home Assistant",
  1455. "legacy": false,
  1456. "addon": false,
  1457. "rejectUnauthorizedCerts": true,
  1458. "ha_boolean": "y|yes|true|on|home|open",
  1459. "connectionDelay": true,
  1460. "cacheJson": true
  1461. }
  1462. ]
Add Comment
Please, Sign In to add comment