Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "4c013983.bf9268",
- "type": "tab",
- "label": "Image Processing",
- "disabled": false,
- "info": ""
- },
- {
- "id": "5f383990.9f7b18",
- "type": "api-current-state",
- "z": "4c013983.bf9268",
- "name": "Check if home",
- "server": "ad7854a1.e84738",
- "outputs": 2,
- "halt_if": "home",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "person.josiah",
- "state_type": "str",
- "state_location": "payload",
- "override_payload": "msg",
- "entity_location": "data",
- "override_data": "msg",
- "x": 390,
- "y": 160,
- "wires": [
- [
- "ab839627.017388"
- ],
- []
- ]
- },
- {
- "id": "bd5f3127.e4297",
- "type": "server-state-changed",
- "z": "4c013983.bf9268",
- "name": "Is there movement?",
- "server": "ad7854a1.e84738",
- "entityidfilter": "binary_sensor.office_motion",
- "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": 190,
- "y": 170,
- "wires": [
- [
- "5f383990.9f7b18"
- ],
- [
- "791d7b0b.fd2634"
- ]
- ]
- },
- {
- "id": "5725b28a.f295cc",
- "type": "api-call-service",
- "z": "4c013983.bf9268",
- "name": "Send image capture",
- "server": "ad7854a1.e84738",
- "service_domain": "telegram_bot",
- "service": "send_photo",
- "data": "{ \"file\": \"/config/www/tensorflow/loft_camera_latest.jpg\", \"target\": \"756458203\", \"caption\": \"Suspicious activity has been detected in the office\"}",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "x": 850,
- "y": 170,
- "wires": [
- []
- ]
- },
- {
- "id": "ab839627.017388",
- "type": "api-current-state",
- "z": "4c013983.bf9268",
- "name": "Check if person",
- "server": "ad7854a1.e84738",
- "outputs": 2,
- "halt_if": "0",
- "halt_if_type": "num",
- "halt_if_compare": "is",
- "override_topic": false,
- "entity_id": "image_processing.tensorflow_loft_camera",
- "state_type": "num",
- "state_location": "",
- "override_payload": "none",
- "entity_location": "",
- "override_data": "none",
- "x": 620,
- "y": 160,
- "wires": [
- [
- "5725b28a.f295cc"
- ],
- []
- ]
- },
- {
- "id": "791d7b0b.fd2634",
- "type": "api-call-service",
- "z": "4c013983.bf9268",
- "name": "Capture image",
- "server": "ad7854a1.e84738",
- "service_domain": "image_processing",
- "service": "scan",
- "data": "{\"entity_id\":\"image_processing.tensorflow_loft_camera\"}",
- "mergecontext": "",
- "output_location": "",
- "output_location_type": "none",
- "x": 410,
- "y": 250,
- "wires": [
- []
- ]
- },
- {
- "id": "ad7854a1.e84738",
- "type": "server",
- "z": "",
- "name": "Home Assistant",
- "legacy": false,
- "hassio": false,
- "rejectUnauthorizedCerts": true,
- "ha_boolean": "y|yes|true|on|home|open"
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement