[
{
"id": "aea1bfab.87782",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "fcff0166.31e51",
"type": "mqtt in",
"z": "aea1bfab.87782",
"name": "/home/p1/I2CRelay1",
"topic": "/home/p1/I2CRelay1",
"qos": "2",
"datatype": "auto",
"broker": "81d264d5.eb5ad8",
"x": 330,
"y": 1165,
"wires": [
[
"c3a9d0fe.e9646"
]
]
},
{
"id": "8e170cfc.321da",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x01 0x00",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay1OFF",
"x": 950,
"y": 1245,
"wires": [
[],
[],
[]
]
},
{
"id": "2fad9f93.fef2c",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x01 0xFF",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay1ON",
"x": 950,
"y": 1165,
"wires": [
[],
[],
[]
]
},
{
"id": "9c0b8031.8a4d3",
"type": "switch",
"z": "aea1bfab.87782",
"name": "Relay1_Switch",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "str"
},
{
"t": "eq",
"v": "1",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 720,
"y": 1165,
"wires": [
[
"f239b85.df67548",
"8e170cfc.321da"
],
[
"f239b85.df67548",
"2fad9f93.fef2c"
]
]
},
{
"id": "c3a9d0fe.e9646",
"type": "json",
"z": "aea1bfab.87782",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 530,
"y": 1165,
"wires": [
[
"9c0b8031.8a4d3"
]
]
},
{
"id": "f239b85.df67548",
"type": "debug",
"z": "aea1bfab.87782",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 950,
"y": 1325,
"wires": []
},
{
"id": "15f9c1f2.4e9e5e",
"type": "ui_switch",
"z": "aea1bfab.87782",
"name": "Relay1",
"label": "Relay1",
"tooltip": "",
"group": "dbccbb51.1690a8",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "/home/p1/I2CRelay1",
"style": "",
"onvalue": "1",
"onvalueType": "num",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "num",
"officon": "",
"offcolor": "",
"x": 120,
"y": 40,
"wires": [
[
"f70dbf76.d0cad"
]
]
},
{
"id": "f70dbf76.d0cad",
"type": "mqtt out",
"z": "aea1bfab.87782",
"name": "Relay1",
"topic": "/home/p1/I2CRelay1",
"qos": "",
"retain": "",
"broker": "81d264d5.eb5ad8",
"x": 400,
"y": 40,
"wires": []
},
{
"id": "6749180d.10bb68",
"type": "mqtt in",
"z": "aea1bfab.87782",
"name": "/home/p1/I2CRelay3",
"topic": "/home/p1/I2CRelay3",
"qos": "2",
"datatype": "auto",
"broker": "81d264d5.eb5ad8",
"x": 330,
"y": 1745,
"wires": [
[
"33080c1e.8c3844"
]
]
},
{
"id": "33080c1e.8c3844",
"type": "json",
"z": "aea1bfab.87782",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 530,
"y": 1750,
"wires": [
[
"adddf3ac.c8359"
]
]
},
{
"id": "bc47815d.8dcc4",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x03 0x00 ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay3OFF",
"x": 950,
"y": 1810,
"wires": [
[],
[],
[]
]
},
{
"id": "a5453296.15311",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x03 0xFF ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay3ON",
"x": 950,
"y": 1710,
"wires": [
[],
[],
[]
]
},
{
"id": "5d3b7873.3014d8",
"type": "debug",
"z": "aea1bfab.87782",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 950,
"y": 1890,
"wires": []
},
{
"id": "e371a719.0a59b8",
"type": "ui_switch",
"z": "aea1bfab.87782",
"name": "Relay3",
"label": "Relay3",
"tooltip": "",
"group": "dbccbb51.1690a8",
"order": 3,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "/home/p1/I2CRelay3",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 123,
"y": 318,
"wires": [
[
"5fd9714e.b8987"
]
]
},
{
"id": "5fd9714e.b8987",
"type": "mqtt out",
"z": "aea1bfab.87782",
"name": "Relay3",
"topic": "/home/p1/I2CRelay3",
"qos": "",
"retain": "",
"broker": "81d264d5.eb5ad8",
"x": 403,
"y": 318,
"wires": []
},
{
"id": "adddf3ac.c8359",
"type": "switch",
"z": "aea1bfab.87782",
"name": "Relay3_Switch",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "str"
},
{
"t": "eq",
"v": "1",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 730,
"y": 1750,
"wires": [
[
"5d3b7873.3014d8",
"bc47815d.8dcc4"
],
[
"5d3b7873.3014d8",
"a5453296.15311"
]
]
},
{
"id": "db27acbc.375fe",
"type": "mqtt in",
"z": "aea1bfab.87782",
"name": "/home/p1/I2CRelay2",
"topic": "/home/p1/I2CRelay2",
"qos": "2",
"datatype": "auto",
"broker": "81d264d5.eb5ad8",
"x": 330,
"y": 1485,
"wires": [
[
"824fece3.3ec6f"
]
]
},
{
"id": "824fece3.3ec6f",
"type": "json",
"z": "aea1bfab.87782",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 530,
"y": 1485,
"wires": [
[
"d0cef954.1b9558"
]
]
},
{
"id": "e3b12b75.cede48",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x02 0x00 ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay2OFF",
"x": 950,
"y": 1545,
"wires": [
[],
[],
[]
]
},
{
"id": "76f0ace.1c8c254",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x02 0xFF ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay2ON",
"x": 950,
"y": 1445,
"wires": [
[],
[],
[]
]
},
{
"id": "7e57fd35.9505c4",
"type": "debug",
"z": "aea1bfab.87782",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 950,
"y": 1625,
"wires": []
},
{
"id": "d0cef954.1b9558",
"type": "switch",
"z": "aea1bfab.87782",
"name": "Relay2_Switch",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "str"
},
{
"t": "eq",
"v": "1",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 730,
"y": 1485,
"wires": [
[
"7e57fd35.9505c4",
"e3b12b75.cede48"
],
[
"7e57fd35.9505c4",
"76f0ace.1c8c254"
]
]
},
{
"id": "8fc360e7.3e731",
"type": "ui_switch",
"z": "aea1bfab.87782",
"name": "Relay2",
"label": "Relay2",
"tooltip": "",
"group": "dbccbb51.1690a8",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "/home/p1/I2CRelay2",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 120,
"y": 189,
"wires": [
[
"6371b6cb.208a38"
]
]
},
{
"id": "6371b6cb.208a38",
"type": "mqtt out",
"z": "aea1bfab.87782",
"name": "Relay2",
"topic": "/home/p1/I2CRelay2",
"qos": "",
"retain": "",
"broker": "81d264d5.eb5ad8",
"x": 400,
"y": 189,
"wires": []
},
{
"id": "35134e39.e09ca2",
"type": "mqtt in",
"z": "aea1bfab.87782",
"name": "/home/p1/I2CRelay4",
"topic": "/home/p1/I2CRelay4",
"qos": "2",
"datatype": "auto",
"broker": "81d264d5.eb5ad8",
"x": 330,
"y": 2047,
"wires": [
[
"f936ba91.2f6118"
]
]
},
{
"id": "f936ba91.2f6118",
"type": "json",
"z": "aea1bfab.87782",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 530,
"y": 2047,
"wires": [
[
"ecfed3ea.2a3b8"
]
]
},
{
"id": "bae1b8ed.cd7318",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x04 0x00 ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay4OFF",
"x": 950,
"y": 2107,
"wires": [
[],
[],
[]
]
},
{
"id": "e0b75b46.e03a98",
"type": "exec",
"z": "aea1bfab.87782",
"command": "i2cset -y 1 0x10 0x04 0xFF ",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Relay4ON",
"x": 950,
"y": 2007,
"wires": [
[],
[],
[]
]
},
{
"id": "f9421946.306dd8",
"type": "debug",
"z": "aea1bfab.87782",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 950,
"y": 2187,
"wires": []
},
{
"id": "ecfed3ea.2a3b8",
"type": "switch",
"z": "aea1bfab.87782",
"name": "Relay4_Switch",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "str"
},
{
"t": "eq",
"v": "1",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 700,
"y": 2040,
"wires": [
[
"f9421946.306dd8",
"bae1b8ed.cd7318"
],
[
"f9421946.306dd8",
"e0b75b46.e03a98"
]
]
},
{
"id": "f839be77.20271",
"type": "ui_switch",
"z": "aea1bfab.87782",
"name": "Relay4",
"label": "Relay4",
"tooltip": "",
"group": "dbccbb51.1690a8",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "/home/p1/I2CRelay4",
"style": "",
"onvalue": "1",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "0",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 120,
"y": 442,
"wires": [
[
"670e97fb.0248b8"
]
]
},
{
"id": "670e97fb.0248b8",
"type": "mqtt out",
"z": "aea1bfab.87782",
"name": "Relay4",
"topic": "/home/p1/I2CRelay4",
"qos": "",
"retain": "",
"broker": "81d264d5.eb5ad8",
"x": 400,
"y": 442,
"wires": []
},
{
"id": "e4d1b125.0d88f",
"type": "ui_template",
"z": "aea1bfab.87782",
"group": "31e65dc1.63aa32",
"name": "Weather",
"order": 0,
"width": "4",
"height": "4",
"format": "<div ng-bind-html=\"<a href=\"https://www.wunderground.com/dashboard/pws/KILSCHAU15\"><img src=\"http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=wxstnsticker_both&weatherstationcount=KILSCHAU15\" height=\"160\" width=\"160\" border=\"0\" alt=\"Weather Underground PWS KILSCHAU15\" /></a></div>",
"storeOutMessages": true,
"fwdInMessages": true,
"templateScope": "local",
"x": 80,
"y": 620,
"wires": [
[]
]
},
{
"id": "acea7277.c0e9d",
"type": "inject",
"z": "aea1bfab.87782",
"name": "AutomateRelay1",
"topic": "AutomateRelay1",
"payload": "1",
"payloadType": "num",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 120,
"wires": [
[
"15f9c1f2.4e9e5e"
]
]
},
{
"id": "9cc4ebee.bb9138",
"type": "comment",
"z": "aea1bfab.87782",
"name": "Relays Below Here",
"info": "",
"x": 410,
"y": 1060,
"wires": []
},
{
"id": "de4fbb0c.c38598",
"type": "inject",
"z": "aea1bfab.87782",
"name": "AutomateRelay2",
"topic": "AutomateRelay2",
"payload": "1",
"payloadType": "num",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 260,
"wires": [
[
"8fc360e7.3e731"
]
]
},
{
"id": "f01e0cca.0f9de",
"type": "inject",
"z": "aea1bfab.87782",
"name": "AutomateRelay3",
"topic": "AutomateRelay3",
"payload": "1",
"payloadType": "num",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 380,
"wires": [
[
"e371a719.0a59b8"
]
]
},
{
"id": "b0de393f.e93828",
"type": "inject",
"z": "aea1bfab.87782",
"name": "AutomateRelay4",
"topic": "AutomateRelay4",
"payload": "1",
"payloadType": "num",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 520,
"wires": [
[
"f839be77.20271"
]
]
},
{
"id": "7f21bec1.ed04b",
"type": "status",
"z": "aea1bfab.87782",
"name": "",
"scope": [
"9c0b8031.8a4d3",
"adddf3ac.c8359",
"d0cef954.1b9558",
"ecfed3ea.2a3b8"
],
"x": 1160,
"y": 1480,
"wires": [
[]
]
},
{
"id": "81d264d5.eb5ad8",
"type": "mqtt-broker",
"z": "",
"name": "EclipseWS",
"broker": "ws://test.mosquitto.org:8080",
"port": "8080",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "Test connection",
"birthQos": "0",
"birthPayload": "Connect?",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
},
{
"id": "dbccbb51.1690a8",
"type": "ui_group",
"z": "",
"name": "Home Relays",
"tab": "e47097f1.4ad908",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "31e65dc1.63aa32",
"type": "ui_group",
"z": "",
"name": "Information",
"tab": "e47097f1.4ad908",
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "e47097f1.4ad908",
"type": "ui_tab",
"z": "",
"name": "N9GUN Desktop Control",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]