Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "1f6d9556.8c093b",
- "type": "tab",
- "label": "Flow 2",
- "disabled": false,
- "info": ""
- },
- {
- "id": "535c65f2.dffb7c",
- "type": "file in",
- "z": "1f6d9556.8c093b",
- "name": "",
- "filename": "/data/test.jpg",
- "format": "",
- "chunk": false,
- "sendError": false,
- "x": 990,
- "y": 160,
- "wires": [
- [
- "86280213.03e8a"
- ]
- ]
- },
- {
- "id": "9b1c173c.869db8",
- "type": "mqtt in",
- "z": "1f6d9556.8c093b",
- "name": "/mom_tracker",
- "topic": "/mom_tracker",
- "qos": "2",
- "datatype": "auto",
- "broker": "",
- "x": 90,
- "y": 240,
- "wires": [
- [
- "8173dbc4.184c38"
- ]
- ]
- },
- {
- "id": "a0cb96db.6dcc08",
- "type": "file in",
- "z": "1f6d9556.8c093b",
- "name": "",
- "filename": "/data/test.jpg",
- "format": "",
- "chunk": false,
- "sendError": false,
- "x": 730,
- "y": 300,
- "wires": [
- [
- "c0769f48.8df9b"
- ]
- ]
- },
- {
- "id": "7c8e1c9.81237e4",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload.results.plate",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NumerplateMOM",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1050,
- "y": 340,
- "wires": [
- [
- "6777ea48.893a84"
- ]
- ]
- },
- {
- "id": "6777ea48.893a84",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "car_homealone",
- "pt": "flow",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1230,
- "y": 360,
- "wires": [
- []
- ]
- },
- {
- "id": "8173dbc4.184c38",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "out",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "home",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 230,
- "y": 260,
- "wires": [
- [
- "1c429bd0.13b1f4"
- ],
- [
- "b1b6dcc4.51d86"
- ]
- ]
- },
- {
- "id": "52c4a96a.2f12e8",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "car_homealone",
- "pt": "flow",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 610,
- "y": 380,
- "wires": [
- []
- ]
- },
- {
- "id": "b1b6dcc4.51d86",
- "type": "delay",
- "z": "1f6d9556.8c093b",
- "name": "",
- "pauseType": "delay",
- "timeout": "305",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 390,
- "y": 360,
- "wires": [
- [
- "52c4a96a.2f12e8"
- ]
- ]
- },
- {
- "id": "19a3bdf6.89cfd2",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "score > 75%",
- "property": "payload.results.score",
- "propertyType": "msg",
- "rules": [
- {
- "t": "gt",
- "v": "0.75",
- "vt": "num"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1330,
- "y": 200,
- "wires": [
- [
- "dc93a814.9c82b8"
- ]
- ]
- },
- {
- "id": "758333bb.b689cc",
- "type": "api-get-history",
- "z": "1f6d9556.8c093b",
- "name": "",
- "server": "c213595e.218008",
- "startdate": "",
- "enddate": "",
- "entityid": "person.name",
- "entityidtype": "is",
- "useRelativeTime": true,
- "relativeTime": "5 minutes",
- "flatten": true,
- "output_type": "split",
- "output_location_type": "msg",
- "output_location": "payload",
- "x": 2320,
- "y": 200,
- "wires": [
- [
- "a5a1f193.5cf1b"
- ]
- ]
- },
- {
- "id": "a5a1f193.5cf1b",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload.state",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "not_home",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 2480,
- "y": 200,
- "wires": [
- [
- "6638087e.7182d8",
- "766dcc12.5f5234"
- ]
- ]
- },
- {
- "id": "6801df70.dee8e",
- "type": "api-get-history",
- "z": "1f6d9556.8c093b",
- "name": "",
- "server": "c213595e.218008",
- "startdate": "",
- "enddate": "",
- "entityid": "person.name",
- "entityidtype": "is",
- "useRelativeTime": true,
- "relativeTime": "5 minutes",
- "flatten": true,
- "output_type": "split",
- "output_location_type": "msg",
- "output_location": "payload",
- "x": 2320,
- "y": 240,
- "wires": [
- [
- "5a654530.2fb4bc"
- ]
- ]
- },
- {
- "id": "5a654530.2fb4bc",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload.state",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "not_home",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 2480,
- "y": 240,
- "wires": [
- [
- "42e5a959.25e948"
- ]
- ]
- },
- {
- "id": "dc93a814.9c82b8",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "Car Database",
- "property": "payload.results.plate",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "[Numerplate 1]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 2]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 3]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 4]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 5]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 6]",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "[Numerplate 7]",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 8,
- "x": 1520,
- "y": 240,
- "wires": [
- [
- "1a36502c.32652"
- ],
- [
- "fb77f302.7b81a"
- ],
- [
- "69aedf0e.0edae"
- ],
- [
- "f4e7e963.4eeac8"
- ],
- [
- "cca21e11.7c614"
- ],
- [
- "1b6d971e.a385c9"
- ],
- [],
- [
- "f0c51029.cb30f"
- ]
- ]
- },
- {
- "id": "aa9421f5.f0c4e",
- "type": "simple-queue",
- "z": "1f6d9556.8c093b",
- "name": "queue",
- "firstMessageBypass": true,
- "bypassInterval": "3000",
- "x": 3270,
- "y": 320,
- "wires": [
- [
- "5fe056d5.6350c8"
- ]
- ]
- },
- {
- "id": "c47d6365.3125f",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "dad",
- "throttleType": "time",
- "timeLimit": "420",
- "timeLimitType": "seconds",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1870,
- "y": 100,
- "wires": [
- [
- "758333bb.b689cc"
- ]
- ]
- },
- {
- "id": "be31d1a1.f3171",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "mom",
- "throttleType": "time",
- "timeLimit": "420",
- "timeLimitType": "seconds",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1870,
- "y": 140,
- "wires": [
- [
- "6801df70.dee8e"
- ]
- ]
- },
- {
- "id": "fb77f302.7b81a",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "car_homealone",
- "propertyType": "flow",
- "rules": [
- {
- "t": "false"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1750,
- "y": 140,
- "wires": [
- [
- "be31d1a1.f3171"
- ]
- ]
- },
- {
- "id": "f4e7e963.4eeac8",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "A",
- "throttleType": "time",
- "timeLimit": "120",
- "timeLimitType": "hours",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1750,
- "y": 320,
- "wires": [
- [
- "53b9dcef.752594"
- ]
- ]
- },
- {
- "id": "1a36502c.32652",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "car_homealone_dad",
- "propertyType": "flow",
- "rules": [
- {
- "t": "false"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1750,
- "y": 100,
- "wires": [
- [
- "c47d6365.3125f"
- ]
- ]
- },
- {
- "id": "42e5a959.25e948",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "Mom",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2610,
- "y": 240,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "6638087e.7182d8",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "Dad",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "5",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2610,
- "y": 200,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "53b9dcef.752594",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2310,
- "y": 320,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "5fe056d5.6350c8",
- "type": "sonos-universal",
- "z": "1f6d9556.8c093b",
- "confignode": "",
- "name": "",
- "x": 3420,
- "y": 320,
- "wires": [
- []
- ]
- },
- {
- "id": "d0cab1b9.55b0c",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Residents - presence awareness. Throttle Node to only allow one message with a specific timeframe",
- "info": "",
- "x": 2040,
- "y": 20,
- "wires": []
- },
- {
- "id": "f7e860f1.8d981",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Friends who stay over for a limited time < 12 hours",
- "info": "",
- "x": 1890,
- "y": 180,
- "wires": []
- },
- {
- "id": "e6e0fc1d.82e46",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Over-nigthers (grandparents)",
- "info": "",
- "x": 1820,
- "y": 280,
- "wires": []
- },
- {
- "id": "22e601b8.52308e",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Unkown car",
- "info": "",
- "x": 1770,
- "y": 520,
- "wires": []
- },
- {
- "id": "cca21e11.7c614",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "B",
- "throttleType": "time",
- "timeLimit": "120",
- "timeLimitType": "hours",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1750,
- "y": 360,
- "wires": [
- [
- "cee64c41.75639"
- ]
- ]
- },
- {
- "id": "cee64c41.75639",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2310,
- "y": 360,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "69aedf0e.0edae",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "A and B",
- "throttleType": "time",
- "timeLimit": "12",
- "timeLimitType": "hours",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1760,
- "y": 220,
- "wires": [
- [
- "6be5eab5.f7f474"
- ]
- ]
- },
- {
- "id": "6be5eab5.f7f474",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "A and B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2320,
- "y": 280,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "cb05e5fa.29c3e8",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Kids' friends (drop-off)",
- "info": "",
- "x": 1800,
- "y": 420,
- "wires": []
- },
- {
- "id": "1b6d971e.a385c9",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "A and B",
- "throttleType": "time",
- "timeLimit": "45",
- "timeLimitType": "minutes",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1760,
- "y": 460,
- "wires": [
- [
- "b44d00c8.95e73"
- ]
- ]
- },
- {
- "id": "f0c51029.cb30f",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "Unknown Car",
- "throttleType": "time",
- "timeLimit": "4",
- "timeLimitType": "hours",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 1780,
- "y": 560,
- "wires": [
- [
- "505599ff.9a5d88"
- ]
- ]
- },
- {
- "id": "5865c2a5.d28e1c",
- "type": "exec",
- "z": "1f6d9556.8c093b",
- "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
- "addpay": false,
- "append": "",
- "useSpawn": "false",
- "timer": "",
- "oldrc": false,
- "name": "Get File",
- "x": 840,
- "y": 140,
- "wires": [
- [
- "535c65f2.dffb7c"
- ],
- [],
- []
- ]
- },
- {
- "id": "991094ea.babc88",
- "type": "api-call-service",
- "z": "1f6d9556.8c093b",
- "name": "Take Snapshot",
- "server": "c213595e.218008",
- "version": 1,
- "debugenabled": false,
- "service_domain": "camera",
- "service": "snapshot",
- "entityId": "camera.driveway",
- "data": "{\"filename\":\"/config/www/test.jpg\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 680,
- "y": 120,
- "wires": [
- [
- "5865c2a5.d28e1c"
- ]
- ]
- },
- {
- "id": "62c5889f.b0d2a8",
- "type": "exec",
- "z": "1f6d9556.8c093b",
- "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
- "addpay": false,
- "append": "",
- "useSpawn": "false",
- "timer": "",
- "oldrc": false,
- "name": "Get File",
- "x": 580,
- "y": 280,
- "wires": [
- [
- "a0cb96db.6dcc08"
- ],
- [],
- []
- ]
- },
- {
- "id": "1c429bd0.13b1f4",
- "type": "api-call-service",
- "z": "1f6d9556.8c093b",
- "name": "",
- "server": "c213595e.218008",
- "version": 1,
- "debugenabled": false,
- "service_domain": "camera",
- "service": "snapshot",
- "entityId": "camera.driveway",
- "data": "{\"filename\":\"/config/www/test.jpg\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 400,
- "y": 240,
- "wires": [
- [
- "62c5889f.b0d2a8"
- ]
- ]
- },
- {
- "id": "766dcc12.5f5234",
- "type": "api-call-service",
- "z": "1f6d9556.8c093b",
- "name": "mobile notification with camera feed",
- "server": "c213595e.218008",
- "version": 1,
- "debugenabled": false,
- "service_domain": "notify",
- "service": "mobile_app_iphone",
- "entityId": "",
- "data": "{\"data\":{\"sticky\":true},\"message\":\"Far er hjemme\",\"title\":\"Jubii - Far er hjemme\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 2860,
- "y": 120,
- "wires": [
- []
- ]
- },
- {
- "id": "cdf6938c.bae65",
- "type": "hue-motion",
- "z": "1f6d9556.8c093b",
- "name": "Hue outdoor motion sensor 1",
- "bridge": "",
- "sensorid": "",
- "skipevents": false,
- "x": 140,
- "y": 60,
- "wires": [
- [
- "9014b440.ea82c8"
- ]
- ]
- },
- {
- "id": "9014b440.ea82c8",
- "type": "throttle",
- "z": "1f6d9556.8c093b",
- "name": "Only 1 pic per 30 sec",
- "throttleType": "time",
- "timeLimit": "30",
- "timeLimitType": "seconds",
- "countLimit": 0,
- "blockSize": 0,
- "locked": false,
- "x": 380,
- "y": 80,
- "wires": [
- [
- "73733c5d.aef744"
- ]
- ]
- },
- {
- "id": "73733c5d.aef744",
- "type": "delay",
- "z": "1f6d9556.8c093b",
- "name": "Delay to let car arrive in picture",
- "pauseType": "delay",
- "timeout": "2.2",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 630,
- "y": 80,
- "wires": [
- [
- "991094ea.babc88"
- ]
- ]
- },
- {
- "id": "86280213.03e8a",
- "type": "plate-recognizer",
- "z": "1f6d9556.8c093b",
- "name": "",
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "url": "https://api.platerecognizer.com/v1/plate-reader/",
- "ignoreDuring": true,
- "makeAndModel": false,
- "statusText": "scores",
- "cameraId": "",
- "separateMsg": true,
- "regionFilter": false,
- "regionList": "[]",
- "regionListType": "json",
- "x": 1160,
- "y": 180,
- "wires": [
- [
- "19a3bdf6.89cfd2"
- ],
- []
- ]
- },
- {
- "id": "66fcf2e0.5b4d1c",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Residents status is checked to see if the person has been out in the last 5 minutes (otherwise don't announce)",
- "info": "",
- "x": 2630,
- "y": 160,
- "wires": []
- },
- {
- "id": "11a77b92.e4f514",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "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)",
- "info": "",
- "x": 2160,
- "y": 60,
- "wires": []
- },
- {
- "id": "fc4541b7.c4d9b",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Notification on phone",
- "info": "",
- "x": 2820,
- "y": 80,
- "wires": []
- },
- {
- "id": "c1da16f3.07a948",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Queue in case several cars are detected at once",
- "info": "",
- "x": 3400,
- "y": 280,
- "wires": []
- },
- {
- "id": "b44d00c8.95e73",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "A and B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2320,
- "y": 460,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "505599ff.9a5d88",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "Unknown Car",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "play.notification",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "http://192.168.86.XXX:1880/[FILE].mp3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "volume",
- "pt": "msg",
- "to": "55",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2340,
- "y": 520,
- "wires": [
- [
- "aa9421f5.f0c4e"
- ]
- ]
- },
- {
- "id": "c1b5aedd.8f96f",
- "type": "mqtt in",
- "z": "1f6d9556.8c093b",
- "name": "/dad_tracker",
- "topic": "/dad_tracker",
- "qos": "2",
- "datatype": "auto",
- "broker": "",
- "x": 90,
- "y": 460,
- "wires": [
- [
- "ce4001c1.8c5d3"
- ]
- ]
- },
- {
- "id": "98df3077.85a4e",
- "type": "file in",
- "z": "1f6d9556.8c093b",
- "name": "",
- "filename": "/data/test.jpg",
- "format": "",
- "chunk": false,
- "sendError": false,
- "x": 730,
- "y": 520,
- "wires": [
- [
- "8720b592.0eb398"
- ]
- ]
- },
- {
- "id": "b341f0c5.baeb",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload.results.plate",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NumerplateDAD",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 1,
- "x": 1050,
- "y": 560,
- "wires": [
- [
- "9daca8cf.eb89b8"
- ]
- ]
- },
- {
- "id": "9daca8cf.eb89b8",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "car_homealone_dad",
- "pt": "flow",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1240,
- "y": 580,
- "wires": [
- []
- ]
- },
- {
- "id": "ce4001c1.8c5d3",
- "type": "switch",
- "z": "1f6d9556.8c093b",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "ude",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "hjemme",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 230,
- "y": 480,
- "wires": [
- [
- "f4f97e63.49358"
- ],
- [
- "a899cb16.730ea8"
- ]
- ]
- },
- {
- "id": "9e6de79b.6460b8",
- "type": "change",
- "z": "1f6d9556.8c093b",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "car_homealone_dad",
- "pt": "flow",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 620,
- "y": 620,
- "wires": [
- []
- ]
- },
- {
- "id": "a899cb16.730ea8",
- "type": "delay",
- "z": "1f6d9556.8c093b",
- "name": "",
- "pauseType": "delay",
- "timeout": "305",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 390,
- "y": 600,
- "wires": [
- [
- "9e6de79b.6460b8"
- ]
- ]
- },
- {
- "id": "6dffc05c.b5069",
- "type": "exec",
- "z": "1f6d9556.8c093b",
- "command": "wget -O /data/test.jpg http://192.168.86.XXX:8123/local/test.jpg",
- "addpay": false,
- "append": "",
- "useSpawn": "false",
- "timer": "",
- "oldrc": false,
- "name": "Get File",
- "x": 580,
- "y": 500,
- "wires": [
- [
- "98df3077.85a4e"
- ],
- [],
- []
- ]
- },
- {
- "id": "f4f97e63.49358",
- "type": "api-call-service",
- "z": "1f6d9556.8c093b",
- "name": "",
- "server": "c213595e.218008",
- "version": 1,
- "debugenabled": false,
- "service_domain": "camera",
- "service": "snapshot",
- "entityId": "camera.driveway",
- "data": "{\"filename\":\"/config/www/test.jpg\"}",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 400,
- "y": 460,
- "wires": [
- [
- "6dffc05c.b5069"
- ]
- ]
- },
- {
- "id": "c0769f48.8df9b",
- "type": "plate-recognizer",
- "z": "1f6d9556.8c093b",
- "name": "",
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "url": "https://api.platerecognizer.com/v1/plate-reader/",
- "ignoreDuring": true,
- "makeAndModel": false,
- "statusText": "scores",
- "cameraId": "",
- "separateMsg": true,
- "regionFilter": false,
- "regionList": "[]",
- "regionListType": "json",
- "x": 900,
- "y": 320,
- "wires": [
- [
- "7c8e1c9.81237e4"
- ],
- []
- ]
- },
- {
- "id": "8720b592.0eb398",
- "type": "plate-recognizer",
- "z": "1f6d9556.8c093b",
- "name": "",
- "inputField": "payload",
- "inputFieldType": "msg",
- "outputField": "payload",
- "outputFieldType": "msg",
- "url": "https://api.platerecognizer.com/v1/plate-reader/",
- "ignoreDuring": true,
- "makeAndModel": false,
- "statusText": "scores",
- "cameraId": "",
- "separateMsg": true,
- "regionFilter": false,
- "regionList": "[]",
- "regionListType": "json",
- "x": 900,
- "y": 540,
- "wires": [
- [
- "b341f0c5.baeb"
- ],
- []
- ]
- },
- {
- "id": "97b4d5a0.a50aa8",
- "type": "comment",
- "z": "1f6d9556.8c093b",
- "name": "Motion Detection - I have changed to Hue motion sensor due to too many error from HA detection",
- "info": "",
- "x": 350,
- "y": 20,
- "wires": []
- },
- {
- "id": "c213595e.218008",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "addon": false,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": true
- }
- ]
Add Comment
Please, Sign In to add comment