Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "53e3269d.5a15d8",
- "type": "tab",
- "label": "Image Processing",
- "disabled": false,
- "info": ""
- },
- {
- "id": "6699272e.68cc68",
- "type": "tab",
- "label": "Clean and Tidy",
- "disabled": false,
- "info": ""
- },
- {
- "id": "42bee720.8c3248",
- "type": "server",
- "z": "",
- "name": "Home Assistant HA",
- "legacy": false,
- "hassio": true,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true
- },
- {
- "id": "f324070d.abe498",
- "type": "server",
- "z": "",
- "name": "HA Timeshift",
- "legacy": false,
- "hassio": false,
- "rejectUnauthorizedCerts": false,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true
- },
- {
- "id": "ac1ef16e.4cc71",
- "type": "tls-config",
- "z": "",
- "name": "",
- "cert": "",
- "key": "",
- "ca": "",
- "certname": "",
- "keyname": "",
- "caname": "",
- "servername": "",
- "verifyservercert": false
- },
- {
- "id": "1cacae7d.11f6f2",
- "type": "server-state-changed",
- "z": "53e3269d.5a15d8",
- "name": "Livingroom movement?",
- "server": "42bee720.8c3248",
- "version": 1,
- "entityidfilter": "binary_sensor.livingroomcam_motion_sensor",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "off",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "x": 140,
- "y": 120,
- "wires": [
- [],
- [
- "3f50a0da.e8f54"
- ]
- ]
- },
- {
- "id": "ea1163a0.72c06",
- "type": "api-current-state",
- "z": "53e3269d.5a15d8",
- "name": "Check if person",
- "server": "f324070d.abe498",
- "version": 1,
- "outputs": 2,
- "halt_if": "0",
- "halt_if_type": "num",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "image_processing.tensorflow_stue",
- "state_type": "num",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 480,
- "y": 180,
- "wires": [
- [],
- [
- "c5b66e58.e01f5"
- ]
- ]
- },
- {
- "id": "54049b31.b848e4",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Capture image",
- "server": "f324070d.abe498",
- "version": 1,
- "service_domain": "image_processing",
- "service": "scan",
- "entityId": "image_processing.tensorflow_stue",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 280,
- "y": 200,
- "wires": [
- [
- "ea1163a0.72c06"
- ]
- ]
- },
- {
- "id": "3f50a0da.e8f54",
- "type": "api-current-state",
- "z": "53e3269d.5a15d8",
- "name": "Alarm disarmed?",
- "server": "42bee720.8c3248",
- "version": 1,
- "outputs": 2,
- "halt_if": "disarmed",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "alarm_control_panel.sector_alarm_01603483",
- "state_type": "str",
- "state_location": "payload",
- "override_payload": "msg",
- "entity_location": "data",
- "override_data": "msg",
- "blockInputOverrides": false,
- "x": 390,
- "y": 120,
- "wires": [
- [],
- [
- "54049b31.b848e4"
- ]
- ]
- },
- {
- "id": "6237de66.24c83",
- "type": "inject",
- "z": "53e3269d.5a15d8",
- "name": "test",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 90,
- "y": 200,
- "wires": [
- [
- "54049b31.b848e4"
- ]
- ]
- },
- {
- "id": "db2c612f.a27cb",
- "type": "e-mail",
- "z": "53e3269d.5a15d8",
- "server": "smtp.gmail.com",
- "port": "465",
- "secure": true,
- "tls": true,
- "name": "stian@barmen.nu",
- "dname": "mail",
- "x": 1030,
- "y": 40,
- "wires": [],
- "info": "Subject: Person i stuen\n\n<!DOCTYPE html>\n<html>\n<body>\n\n<img src=\"https://ha.barmen.nu:8123/local/tensorflow/livingroom_latest.jpg\" alt=\"Livingroom\">\n\n\n</body>\n</html>"
- },
- {
- "id": "c5b66e58.e01f5",
- "type": "http request",
- "z": "53e3269d.5a15d8",
- "name": "livingroom-image",
- "method": "GET",
- "ret": "bin",
- "paytoqs": false,
- "url": "https://10.0.0.20:8123/local/tensorflow/stue_latest.jpg",
- "tls": "ac1ef16e.4cc71",
- "proxy": "",
- "authType": "",
- "x": 670,
- "y": 140,
- "wires": [
- [
- "5da4f1df.2922c",
- "db2c612f.a27cb"
- ]
- ]
- },
- {
- "id": "d8be559b.488d38",
- "type": "server-state-changed",
- "z": "53e3269d.5a15d8",
- "name": "Gardenshed movement?",
- "server": "42bee720.8c3248",
- "version": 1,
- "entityidfilter": "binary_sensor.shedcam_motion_sensor",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "off",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "x": 130,
- "y": 300,
- "wires": [
- [],
- [
- "3ae45772.7a4a58"
- ]
- ]
- },
- {
- "id": "ffb6a4b5.015578",
- "type": "api-current-state",
- "z": "53e3269d.5a15d8",
- "name": "Check if person",
- "server": "f324070d.abe498",
- "version": 1,
- "outputs": 2,
- "halt_if": "0",
- "halt_if_type": "num",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "image_processing.tensorflow_hagebod_forside",
- "state_type": "num",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "blockInputOverrides": false,
- "x": 480,
- "y": 360,
- "wires": [
- [],
- [
- "627b727f.efb5fc"
- ]
- ]
- },
- {
- "id": "3ae45772.7a4a58",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Capture image",
- "server": "f324070d.abe498",
- "version": 1,
- "service_domain": "image_processing",
- "service": "scan",
- "entityId": "image_processing.tensorflow_hagebod_forside",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 280,
- "y": 380,
- "wires": [
- [
- "ffb6a4b5.015578"
- ]
- ]
- },
- {
- "id": "7b28fd1b.c95d14",
- "type": "inject",
- "z": "53e3269d.5a15d8",
- "name": "test",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 90,
- "y": 380,
- "wires": [
- [
- "3ae45772.7a4a58"
- ]
- ]
- },
- {
- "id": "627b727f.efb5fc",
- "type": "http request",
- "z": "53e3269d.5a15d8",
- "name": "gardenshed-image",
- "method": "GET",
- "ret": "bin",
- "paytoqs": false,
- "url": "https://10.0.0.20:8123/local/tensorflow/hagebod_forside_latest.jpg",
- "tls": "ac1ef16e.4cc71",
- "proxy": "",
- "authType": "",
- "x": 670,
- "y": 300,
- "wires": [
- [
- "db2c612f.a27cb",
- "8f58014e.783a5"
- ]
- ]
- },
- {
- "id": "8f58014e.783a5",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Trigger Motioneye",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_on",
- "entityId": "switch.shedcam_motion_trigger",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 910,
- "y": 300,
- "wires": [
- [
- "f5c819c0.9a05f8"
- ]
- ]
- },
- {
- "id": "1c8d06.c9a4b2fa",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Trigger Motioneye",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.shedcam_motion_trigger",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 910,
- "y": 360,
- "wires": [
- []
- ]
- },
- {
- "id": "259fdea.d99b222",
- "type": "inject",
- "z": "6699272e.68cc68",
- "name": "clean",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "00 03 * * *",
- "once": false,
- "onceDelay": 0.1,
- "x": 110,
- "y": 60,
- "wires": [
- [
- "aea95089.859d8"
- ]
- ]
- },
- {
- "id": "aea95089.859d8",
- "type": "api-call-service",
- "z": "6699272e.68cc68",
- "name": "Delete",
- "server": "f324070d.abe498",
- "version": 1,
- "service_domain": "shell_command",
- "service": "delete_old_tensorflow_images",
- "entityId": "shell_command.delete_old_tensorflow_images",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 250,
- "y": 60,
- "wires": [
- []
- ]
- },
- {
- "id": "a6ec4414.9291f8",
- "type": "server-state-changed",
- "z": "6699272e.68cc68",
- "name": "Shedcam notifying? ",
- "server": "42bee720.8c3248",
- "version": 1,
- "entityidfilter": "switch.shedcam_motion_notify",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "x": 150,
- "y": 120,
- "wires": [
- [
- "e360a1d6.6801e"
- ],
- []
- ]
- },
- {
- "id": "e360a1d6.6801e",
- "type": "api-call-service",
- "z": "6699272e.68cc68",
- "name": "Pause Notify",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.shedcam_motion_notify",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 370,
- "y": 120,
- "wires": [
- []
- ]
- },
- {
- "id": "6c03d253.b226fc",
- "type": "server-state-changed",
- "z": "6699272e.68cc68",
- "name": "Livingroom notifying? ",
- "server": "42bee720.8c3248",
- "version": 1,
- "entityidfilter": "switch.livingroomcam_motion_notify",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "on",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 2,
- "output_only_on_state_change": true,
- "x": 160,
- "y": 160,
- "wires": [
- [
- "539121ba.909a"
- ],
- []
- ]
- },
- {
- "id": "539121ba.909a",
- "type": "api-call-service",
- "z": "6699272e.68cc68",
- "name": "Pause Notify",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.livingroomcam_motion_notify",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 370,
- "y": 160,
- "wires": [
- []
- ]
- },
- {
- "id": "f5c819c0.9a05f8",
- "type": "stoptimer",
- "z": "53e3269d.5a15d8",
- "duration": "15",
- "units": "Second",
- "payloadtype": "num",
- "payloadval": "0",
- "name": "",
- "x": 710,
- "y": 360,
- "wires": [
- [
- "1c8d06.c9a4b2fa"
- ],
- []
- ]
- },
- {
- "id": "5da4f1df.2922c",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Trigger Motioneye",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_on",
- "entityId": "switch.livingroomcam_motion_trigger",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 910,
- "y": 140,
- "wires": [
- [
- "28d48c33.b9ea94"
- ]
- ]
- },
- {
- "id": "28d48c33.b9ea94",
- "type": "stoptimer",
- "z": "53e3269d.5a15d8",
- "duration": "15",
- "units": "Second",
- "payloadtype": "num",
- "payloadval": "0",
- "name": "",
- "x": 710,
- "y": 200,
- "wires": [
- [
- "f1c13d09.71336"
- ],
- []
- ]
- },
- {
- "id": "f1c13d09.71336",
- "type": "api-call-service",
- "z": "53e3269d.5a15d8",
- "name": "Trigger Motioneye",
- "server": "42bee720.8c3248",
- "version": 1,
- "service_domain": "switch",
- "service": "turn_off",
- "entityId": "switch.livingroomcam_motion_trigger",
- "data": "",
- "dataType": "json",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "mustacheAltTags": false,
- "x": 910,
- "y": 200,
- "wires": [
- []
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement