Доступная система видеонаблюдения с охраной на дачу за 60 минут

2f0a35555080ab9760b7a0578fc60fd8.jpeg
[
	{
    	"id": "35700ef4.b4cc62",
    	"type": "tab",
    	"label": "Dacha",
    	"disabled": false,
    	"info": ""
	},
	{
    	"id": "21ee0549ab80c1b3",
    	"type": "group",
    	"z": "35700ef4.b4cc62",
    	"name": "Temperature external",
    	"style": {
        	"fill": "#c8e7a7",
        	"label": true,
        	"stroke": "#000000",
        	"color": "#000000"
    	},
    	"nodes": [
        	"1b33f0bb.ddc0af",
        	"8cb14a63.63e588",
        	"bf42d115.5f8dc",
        	"f826e2b9.18e4c",
        	"37299a0b.442dc6",
        	"589f8077.70b05",
        	"7744d782.93a8f8",
        	"cd44f017.139e6",
        	"d9e7f0b2.9c11a"
    	],
    	"x": 34,
    	"y": 479,
    	"w": 1172,
    	"h": 302
	},
	{
    	"id": "3a19bea8.e27032",
    	"type": "group",
    	"z": "35700ef4.b4cc62",
    	"name": "Camera external motion alarm",
    	"style": {
        	"stroke": "#000000",
        	"fill": "#c8e7a7",
        	"label": true,
        	"color": "#000000"
    	},
    	"nodes": [
        	"5d05a379.500dcc",
        	"636c36b0.9db488",
        	"391ad295.c56a6e",
        	"14425883.8a8027",
        	"c14e914c.160e1",
        	"57894684.68d3c8",
        	"f7c59ddc.2f24c",
        	"c411c632.3dd2f8",
        	"48255a26.189904",
        	"78cfa48.1eae25c",
        	"ce092f2e.fb6ff",
        	"3b1e904c.649e9",
        	"48d31990.641c08",
        	"1d8f6830.1c7338",
        	"7f12a359.8f4dfc",
        	"6299cce8.7b20a4",
        	"7f956fcc.36206",
        	"e9b9f2a1a8421187",
        	"548c306e6e2c111f"
    	],
    	"x": 34,
    	"y": 19,
    	"w": 1192,
    	"h": 422
	},
	{
    	"id": "6e2ba88d.60c498",
    	"type": "group",
    	"z": "35700ef4.b4cc62",
    	"name": "CPU Load and temperature",
    	"style": {
        	"stroke": "#000000",
        	"fill": "#c8e7a7",
        	"label": true,
        	"color": "#000000"
    	},
    	"nodes": [
        	"b8c052bb.44535",
        	"d6fd679.6caa398",
        	"dab61cbf.cfa87",
        	"fdb3a1b6.cfb71",
        	"a0e62b1a.757c48"
    	],
    	"x": 34,
    	"y": 819,
    	"w": 452,
    	"h": 282
	},
	{
    	"id": "72f5dbe4bc2de2b5",
    	"type": "group",
    	"z": "35700ef4.b4cc62",
    	"name": "Capture photo",
    	"style": {
        	"fill": "#c8e7a7",
        	"label": true,
        	"stroke": "#000000",
        	"color": "#000000"
    	},
    	"nodes": [
        	"9aca7759.d95a48",
        	"9ca8d5ff.3857d8",
        	"24ee77ab.2e8738",
        	"ea0b75b0.94f058",
        	"c452f057.ca63a"
    	],
    	"x": 44,
    	"y": 1159,
    	"w": 1182,
    	"h": 142
	},
	{
    	"id": "8c22d8c9580d2858",
    	"type": "group",
    	"z": "35700ef4.b4cc62",
    	"name": "",
    	"style": {
        	"label": true,
        	"fill": "#c8e7a7"
    	},
    	"nodes": [
        	"cc5bc2c3a2c509fa",
        	"e291c889c1d4e186",
        	"0d8935ca87af5a1b",
        	"a067feaf7d06fabf",
        	"2686f0fe374cc52d",
        	"d6992fd1eb26d528",
        	"589c720b5a2be2f2",
        	"4ecdc496c0ecd286",
        	"b9d28942538208e4",
        	"bd842c6db6853e79",
        	"26d9630fb660bc9d",
        	"0d4f374253a9f8d4",
        	"65fe44dc0bb4ca1d"
    	],
    	"x": 514,
    	"y": 819,
    	"w": 692,
    	"h": 282
	},
	{
    	"id": "9aca7759.d95a48",
    	"type": "camerapi-takephoto",
    	"z": "35700ef4.b4cc62",
    	"g": "72f5dbe4bc2de2b5",
    	"filemode": "1",
    	"filename": "photo1.JPEG",
    	"filedefpath": "0",
    	"filepath": "/home/pi/Pictures/",
    	"fileformat": "jpeg",
    	"resolution": "3",
    	"rotation": "0",
    	"fliph": "0",
    	"flipv": "0",
    	"brightness": "50",
    	"contrast": "0",
    	"sharpness": "0",
    	"quality": "80",
    	"imageeffect": "none",
    	"exposuremode": "auto",
    	"iso": "0",
    	"agcwait": "1.0",
    	"led": "0",
    	"awb": "auto",
    	"name": "",
    	"x": 860,
    	"y": 1260,
    	"wires": [
        	[
            	"24ee77ab.2e8738",
            	"ea0b75b0.94f058"
        	]
    	]
	},
	{
    	"id": "9ca8d5ff.3857d8",
    	"type": "ui_template",
    	"z": "35700ef4.b4cc62",
    	"g": "72f5dbe4bc2de2b5",
    	"group": "fddd6117.b012f",
    	"name": "",
    	"order": 1,
    	"width": "10",
    	"height": "13",
    	"format": "\n\n\n \n Take a photo
\n
\n\n
\n \n
", "storeOutMessages": true, "fwdInMessages": true, "resendOnRefresh": true, "templateScope": "local", "x": 130, "y": 1260, "wires": [ [ "9aca7759.d95a48" ] ] }, { "id": "24ee77ab.2e8738", "type": "debug", "z": "35700ef4.b4cc62", "g": "72f5dbe4bc2de2b5", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1110, "y": 1260, "wires": [] }, { "id": "5d05a379.500dcc", "type": "inject", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "Test sms", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 760, "y": 340, "wires": [ [ "e9b9f2a1a8421187" ] ] }, { "id": "636c36b0.9db488", "type": "function", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "func": "msg.payload = {}\nmsg.payload.chatId = CHANGE_CHAT_ID\nmsg.payload.type = \"message\"\nmsg.payload.content = \"Motion detected! [myDacha]\"\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 980, "y": 320, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "391ad295.c56a6e", "type": "rpi-gpio in", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "camera grpio 7", "pin": "13", "intype": "down", "debounce": "25", "read": true, "x": 140, "y": 220, "wires": [ [ "f7c59ddc.2f24c", "78cfa48.1eae25c", "48d31990.641c08", "548c306e6e2c111f" ] ] }, { "id": "14425883.8a8027", "type": "rising-edge", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "threshold": "0", "x": 770, "y": 280, "wires": [ [ "636c36b0.9db488" ] ] }, { "id": "c14e914c.160e1", "type": "ui_button", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "group": "371d08d2.682078", "order": 3, "width": "6", "height": "1", "passthru": false, "label": "Test msg", "tooltip": "", "color": "#000000", "bgcolor": "#888981", "icon": "", "payload": "1", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 760, "y": 400, "wires": [ [ "e9b9f2a1a8421187" ] ] }, { "id": "57894684.68d3c8", "type": "ui_switch", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "label": "Лампочка", "tooltip": "", "group": "371d08d2.682078", "order": 1, "width": "6", "height": "1", "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "animate": false, "x": 1100, "y": 60, "wires": [ [ "316ad35.6698d2c" ] ] }, { "id": "f7c59ddc.2f24c", "type": "ui_text", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "group": "189e2e48.d109d2", "order": 1, "width": 0, "height": 0, "name": "", "label": "Движение", "format": "{{msg.payload}}", "layout": "row-spread", "x": 310, "y": 300, "wires": [] }, { "id": "c411c632.3dd2f8", "type": "ui_text", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "group": "189e2e48.d109d2", "order": 3, "width": 0, "height": 0, "name": "", "label": "Охрана", "format": "{{msg.payload}}", "layout": "row-spread", "x": 300, "y": 60, "wires": [] }, { "id": "48255a26.189904", "type": "rpi-gpio in", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "Security Button", "pin": "15", "intype": "up", "debounce": "250", "read": true, "x": 140, "y": 120, "wires": [ [ "c411c632.3dd2f8", "78cfa48.1eae25c", "3b1e904c.649e9" ] ] }, { "id": "78cfa48.1eae25c", "type": "BooleanLogic", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "operation": "AND", "inputCount": "2", "topic": "result", "x": 500, "y": 220, "wires": [ [ "14425883.8a8027", "6299cce8.7b20a4" ] ] }, { "id": "ce092f2e.fb6ff", "type": "inject", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "Blink 1", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "0.5", "crontab": "", "once": true, "onceDelay": "0.5", "topic": "", "payload": "true", "payloadType": "bool", "x": 480, "y": 60, "wires": [ [ "3b1e904c.649e9" ] ] }, { "id": "3b1e904c.649e9", "type": "BooleanLogic", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "operation": "AND", "inputCount": "3", "topic": "result", "x": 720, "y": 120, "wires": [ [ "7f12a359.8f4dfc" ] ] }, { "id": "1b33f0bb.ddc0af", "type": "inject", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 170, "y": 640, "wires": [ [ "8cb14a63.63e588" ] ] }, { "id": "8cb14a63.63e588", "type": "sensor-ds18b20", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "topic": "", "sensorid": "28-011632edb7ee", "timer": "1", "repeat": false, "x": 390, "y": 640, "wires": [ [ "bf42d115.5f8dc", "cd44f017.139e6", "d9e7f0b2.9c11a" ] ] }, { "id": "bf42d115.5f8dc", "type": "switch", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "Above 40", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gte", "v": "40", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 600, "y": 520, "wires": [ [ "37299a0b.442dc6" ] ] }, { "id": "f826e2b9.18e4c", "type": "function", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "func": "msg.payload = {}\nmsg.payload.chatId = CHANGE_CHAT_ID\nmsg.payload.type = \"message\"\nmsg.payload.content = \"Temperature HI! [myDacha]\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1120, "y": 520, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "37299a0b.442dc6", "type": "trigger", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "op1": "1", "op2": "0", "op1type": "str", "op2type": "str", "duration": "5", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 770, "y": 520, "wires": [ [ "7744d782.93a8f8" ] ] }, { "id": "589f8077.70b05", "type": "debug", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 670, "y": 600, "wires": [] }, { "id": "7744d782.93a8f8", "type": "switch", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 950, "y": 520, "wires": [ [ "f826e2b9.18e4c" ] ] }, { "id": "cd44f017.139e6", "type": "ui_gauge", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "group": "189e2e48.d109d2", "order": 5, "width": "6", "height": "6", "gtype": "gage", "title": "Temperature ext", "label": "units", "format": "{{value}}", "min": "-40", "max": "60", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 860, "y": 680, "wires": [] }, { "id": "d9e7f0b2.9c11a", "type": "ui_chart", "z": "35700ef4.b4cc62", "g": "21ee0549ab80c1b3", "name": "", "group": "172f5cc2.238383", "order": 1, "width": "18", "height": "4", "label": "Temperature ext", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "-40", "ymax": "60", "removeOlder": "1", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#3f16d4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 860, "y": 740, "wires": [ [] ] }, { "id": "ea0b75b0.94f058", "type": "function", "z": "35700ef4.b4cc62", "g": "72f5dbe4bc2de2b5", "name": "", "func": "var payload = { \nchatId: CHANGE_CHAT_ID,\n type: \"photo\",\n content: \"/home/pi/Pictures/photo1.JPEG\" };\nreturn {payload};", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1100, "y": 1200, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "c452f057.ca63a", "type": "inject", "z": "35700ef4.b4cc62", "g": "72f5dbe4bc2de2b5", "name": "Test web cam img", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "1", "payloadType": "num", "x": 850, "y": 1200, "wires": [ [ "ea0b75b0.94f058" ] ] }, { "id": "b8c052bb.44535", "type": "cpu", "z": "35700ef4.b4cc62", "g": "6e2ba88d.60c498", "name": "", "msgCore": true, "msgOverall": false, "msgArray": false, "msgTemp": false, "x": 170, "y": 860, "wires": [ [ "d6fd679.6caa398" ] ] }, { "id": "d6fd679.6caa398", "type": "ui_chart", "z": "35700ef4.b4cc62", "g": "6e2ba88d.60c498", "name": "", "group": "172f5cc2.238383", "order": 3, "width": "18", "height": "4", "label": "CPU usage", "chartType": "line", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "0", "ymax": "100", "removeOlder": "1", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#b33c1e", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 390, "y": 880, "wires": [ [] ] }, { "id": "dab61cbf.cfa87", "type": "inject", "z": "35700ef4.b4cc62", "g": "6e2ba88d.60c498", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": true, "onceDelay": "1", "topic": "", "payload": "", "payloadType": "date", "x": 170, "y": 960, "wires": [ [ "b8c052bb.44535", "fdb3a1b6.cfb71" ] ] }, { "id": "fdb3a1b6.cfb71", "type": "cpu", "z": "35700ef4.b4cc62", "g": "6e2ba88d.60c498", "name": "CPU Temp", "msgCore": false, "msgOverall": false, "msgArray": false, "msgTemp": true, "x": 170, "y": 1060, "wires": [ [ "a0e62b1a.757c48" ] ] }, { "id": "a0e62b1a.757c48", "type": "ui_chart", "z": "35700ef4.b4cc62", "g": "6e2ba88d.60c498", "name": "", "group": "172f5cc2.238383", "order": 5, "width": "18", "height": "4", "label": "CPU Temp", "chartType": "line", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": "1", "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#30b31e", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 370, "y": 1020, "wires": [ [] ] }, { "id": "f5b3043a.2a3ff8", "type": "telegram sender", "z": "35700ef4.b4cc62", "name": "", "bot": "d9de0dcc.3d2a6", "haserroroutput": false, "outputs": 1, "x": 1430, "y": 320, "wires": [ [] ] }, { "id": "316ad35.6698d2c", "type": "rpi-gpio out", "z": "35700ef4.b4cc62", "name": "LED", "pin": "11", "set": true, "level": "0", "freq": "", "out": "out", "x": 1330, "y": 140, "wires": [] }, { "id": "48d31990.641c08", "type": "Invert", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "Invert", "x": 490, "y": 160, "wires": [ [ "3b1e904c.649e9" ] ] }, { "id": "1d8f6830.1c7338", "type": "trigger", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "op1": "", "op2": "false", "op1type": "pay", "op2type": "str", "duration": "250", "extend": false, "overrideDelay": false, "units": "ms", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 1120, "y": 120, "wires": [ [ "316ad35.6698d2c" ] ] }, { "id": "7f12a359.8f4dfc", "type": "switch", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 890, "y": 120, "wires": [ [ "1d8f6830.1c7338" ] ] }, { "id": "6299cce8.7b20a4", "type": "switch", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 770, "y": 200, "wires": [ [ "7f956fcc.36206" ] ] }, { "id": "7f956fcc.36206", "type": "trigger", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "op1": "", "op2": "true", "op1type": "pay", "op2type": "str", "duration": "100", "extend": false, "overrideDelay": false, "units": "ms", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 1020, "y": 200, "wires": [ [ "316ad35.6698d2c" ] ] }, { "id": "cc5bc2c3a2c509fa", "type": "ina-sensor", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "handle": "93c1182fe25c4f4a", "x": 670, "y": 940, "wires": [ [ "e291c889c1d4e186", "0d4f374253a9f8d4" ], [ "0d8935ca87af5a1b", "26d9630fb660bc9d" ] ] }, { "id": "65fe44dc0bb4ca1d", "type": "inject", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payloadType": "date", "x": 650, "y": 880, "wires": [ [ "cc5bc2c3a2c509fa" ] ] }, { "id": "e291c889c1d4e186", "type": "switch", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "Less 3.5v", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lt", "v": "3.5", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 900, "y": 900, "wires": [ [ "d6992fd1eb26d528" ] ] }, { "id": "0d8935ca87af5a1b", "type": "switch", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "Less 30%", "property": "payload", "propertyType": "msg", "rules": [ { "t": "lt", "v": "30", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 900, "y": 1060, "wires": [ [ "589c720b5a2be2f2" ] ] }, { "id": "a067feaf7d06fabf", "type": "function", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "func": "msg.payload = {}\nmsg.payload.chatId = CHANGE_CHAT_ID\nmsg.payload.type = \"message\"\nmsg.payload.content = \"Voltage low 3.5v! [myDacha]\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1120, "y": 920, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "2686f0fe374cc52d", "type": "function", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "func": "msg.payload = {}\nmsg.payload.chatId = CHANGE_CHAT_ID\nmsg.payload.type = \"message\"\nmsg.payload.content = \"Battery low 30%! [myDacha]\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1120, "y": 1000, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "d6992fd1eb26d528", "type": "trigger", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "op1": "1", "op2": "0", "op1type": "str", "op2type": "str", "duration": "5", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 910, "y": 960, "wires": [ [ "4ecdc496c0ecd286" ] ] }, { "id": "589c720b5a2be2f2", "type": "trigger", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "op1": "1", "op2": "0", "op1type": "str", "op2type": "str", "duration": "5", "extend": true, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 910, "y": 1000, "wires": [ [ "b9d28942538208e4" ] ] }, { "id": "4ecdc496c0ecd286", "type": "switch", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 1090, "y": 860, "wires": [ [ "a067feaf7d06fabf" ] ] }, { "id": "b9d28942538208e4", "type": "switch", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 1110, "y": 1060, "wires": [ [ "2686f0fe374cc52d" ] ] }, { "id": "bd842c6db6853e79", "type": "debug", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 870, "y": 860, "wires": [] }, { "id": "26d9630fb660bc9d", "type": "ui_gauge", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "group": "189e2e48.d109d2", "order": 3, "width": "3", "height": "2", "gtype": "gage", "title": "Battery", "label": "units", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#e6e600", "#008000" ], "seg1": "30", "seg2": "70", "x": 720, "y": 1060, "wires": [] }, { "id": "0d4f374253a9f8d4", "type": "ui_gauge", "z": "35700ef4.b4cc62", "g": "8c22d8c9580d2858", "name": "", "group": "189e2e48.d109d2", "order": 4, "width": "3", "height": "2", "gtype": "gage", "title": "Voltage", "label": "units", "format": "{{value}}", "min": 0, "max": "5", "colors": [ "#ff0000", "#e6e600", "#008000" ], "seg1": "", "seg2": "", "x": 620, "y": 1000, "wires": [] }, { "id": "e9b9f2a1a8421187", "type": "function", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "func": "msg.payload = {}\nmsg.payload.chatId = CHANGE_CHAT_ID\nmsg.payload.type = \"message\"\nmsg.payload.content = \"Test sms! [myDacha]\"\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 990, "y": 400, "wires": [ [ "f5b3043a.2a3ff8" ] ] }, { "id": "548c306e6e2c111f", "type": "debug", "z": "35700ef4.b4cc62", "g": "3a19bea8.e27032", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 340, "y": 400, "wires": [] }, { "id": "fddd6117.b012f", "type": "ui_group", "name": "Camera", "tab": "39cad93e.df1b16", "order": 3, "disp": true, "width": "10", "collapse": false }, { "id": "371d08d2.682078", "type": "ui_group", "name": "Проверки", "tab": "39cad93e.df1b16", "order": 4, "disp": true, "width": "6", "collapse": false }, { "id": "189e2e48.d109d2", "type": "ui_group", "name": "Состояние", "tab": "39cad93e.df1b16", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "172f5cc2.238383", "type": "ui_group", "name": "Показатели", "tab": "39cad93e.df1b16", "order": 2, "disp": true, "width": "18", "collapse": false }, { "id": "d9de0dcc.3d2a6", "type": "telegram bot", "botname": "house_bot", "usernames": "", "chatids": "", "baseapiurl": "", "updatemode": "polling", "pollinterval": "300", "usesocks": false, "sockshost": "", "socksport": "6667", "socksusername": "anonymous", "sockspassword": "", "bothost": "", "botpath": "", "localbotport": "8443", "publicbotport": "8443", "privatekey": "", "certificate": "", "useselfsignedcertificate": false, "sslterminated": false, "verboselogging": false }, { "id": "93c1182fe25c4f4a", "type": "ina-sensor-manager", "address": "0x36", "delay": "1000", "ohms": "0.01", "customResistor": false }, { "id": "39cad93e.df1b16", "type": "ui_tab", "name": "Dacha", "icon": "dashboard", "order": 2, "disabled": false, "hidden": false } ]

© Habrahabr.ru