Here's the fan switch portion:
[
{
"id": "6540e7f23b4ae0b2",
"type": "wemo out",
"z": "1e6d0cc92960bc78",
"name": "Pool Room Fan 1",
"device": "bfd6a225d63965d7",
"label": "Pool Room Fan 1",
"x": 1630,
"y": 920,
"wires": []
},
{
"id": "500876ca113e5507",
"type": "ui_switch",
"z": "1e6d0cc92960bc78",
"name": "",
"label": "Fan 1",
"tooltip": "",
"group": "3ed3bb30fdd765cd",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "",
"oncolor": "",
"offvalue": "false",
"offvalueType": "bool",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 910,
"y": 920,
"wires": [
[
"2fcdb2ec9e50ca08"
]
]
},
{
"id": "b72ef9e2307657a1",
"type": "wemo lookup",
"z": "1e6d0cc92960bc78",
"name": "Pool Room Fan 1",
"device": "bfd6a225d63965d7",
"label": "Pool Room Fan 1",
"x": 230,
"y": 920,
"wires": [
[
"9edfd69563d57081",
"140ba1978e4bead7"
]
]
},
{
"id": "8b38cbfce1c3f285",
"type": "inject",
"z": "1e6d0cc92960bc78",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 840,
"wires": [
[
"b72ef9e2307657a1",
"ead27030f0a3aee3",
"b83c08d391b95fcc",
"49d031a420fffb35"
]
]
},
{
"id": "ce328da973733581",
"type": "function",
"z": "1e6d0cc92960bc78",
"name": "indoor humidity not high",
"func": "var inHumid = flow.get(\"GV_Indoor_Humidity\");\n\nif (\"GV_Indoor_Humidity\" <= 60){\n msg.payload = false;\n}\n\nreturn msg;",
"outputs": 1,
"timeout": "",
"noerr": 1,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1150,
"y": 840,
"wires": [
[
"4af10bb7b8727642",
"a5648d47b89335fe"
]
]
},
{
"id": "4af10bb7b8727642",
"type": "debug",
"z": "1e6d0cc92960bc78",
"name": "debug 10",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1400,
"y": 860,
"wires": []
},
{
"id": "9edfd69563d57081",
"type": "json",
"z": "1e6d0cc92960bc78",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 410,
"y": 920,
"wires": [
[
"1c79b920373b1c54"
]
]
},
{
"id": "1c79b920373b1c54",
"type": "switch",
"z": "1e6d0cc92960bc78",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "{\"state\":1}",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 550,
"y": 920,
"wires": [
[
"c864f724bd0cdf27"
],
[
"997581e0458e2a92"
]
]
},
{
"id": "c864f724bd0cdf27",
"type": "change",
"z": "1e6d0cc92960bc78",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 720,
"y": 900,
"wires": [
[
"500876ca113e5507"
]
]
},
{
"id": "997581e0458e2a92",
"type": "change",
"z": "1e6d0cc92960bc78",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "off",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 720,
"y": 940,
"wires": [
[
"500876ca113e5507"
]
]
},
{
"id": "2fcdb2ec9e50ca08",
"type": "switch",
"z": "1e6d0cc92960bc78",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1050,
"y": 920,
"wires": [
[
"d6722ca3346dbe12"
],
[
"a5648d47b89335fe"
]
]
},
{
"id": "a5648d47b89335fe",
"type": "change",
"z": "1e6d0cc92960bc78",
"name": "Close",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
},
{
"t": "set",
"p": "state",
"pt": "msg",
"to": "0",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1230,
"y": 940,
"wires": [
[
"ee188d6c9a437a97",
"fda93e578cd0560c"
]
]
},
{
"id": "d6722ca3346dbe12",
"type": "change",
"z": "1e6d0cc92960bc78",
"name": "Open",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "state",
"pt": "msg",
"to": "1",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1230,
"y": 900,
"wires": [
[
"ce328da973733581",
"83077f0312b8bd5b"
]
]
},
{
"id": "ee188d6c9a437a97",
"type": "json",
"z": "1e6d0cc92960bc78",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 1430,
"y": 920,
"wires": [
[
"6540e7f23b4ae0b2",
"f1be88e6eaf3f46b"
]
]
},
{
"id": "140ba1978e4bead7",
"type": "debug",
"z": "1e6d0cc92960bc78",
"name": "debug 27",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 480,
"y": 820,
"wires": []
},
{
"id": "83077f0312b8bd5b",
"type": "debug",
"z": "1e6d0cc92960bc78",
"name": "debug 30",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1400,
"y": 820,
"wires": []
},
{
"id": "fda93e578cd0560c",
"type": "debug",
"z": "1e6d0cc92960bc78",
"name": "debug 31",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1640,
"y": 800,
"wires": []
},
{
"id": "f1be88e6eaf3f46b",
"type": "debug",
"z": "1e6d0cc92960bc78",
"name": "debug 32",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "topic",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1600,
"y": 860,
"wires": []
},
{
"id": "bfd6a225d63965d7",
"type": "wemo-dev",
"device": "221711K130078F",
"name": "Pool Room Fan 1"
},
{
"id": "3ed3bb30fdd765cd",
"type": "ui_group",
"name": "Switches",
"tab": "08c882008efdc3a0",
"order": 4,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "08c882008efdc3a0",
"type": "ui_tab",
"name": "Pool Room Humidity Control",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]