[ { "id": "371f61af.7c3d3e", "type": "tab", "label": "Upstairs HVAC", "disabled": false, "info": "" }, { "id": "f3541eaa.31aec8", "type": "http request", "z": "371f61af.7c3d3e", "name": "Get Upstaris Tstat Info", "method": "GET", "ret": "obj", "paytoqs": false, "url": "http://10.0.0.221/query/info", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 660, "y": 160, "wires": [ [ "604ffa37.4036d4", "221e0a61.e3fa16", "3fe97788.ae97a8", "4e68d3ed.5b43bc", "e6e45947.200dd8", "a3658574.ed5f78", "a2743525.dadb1", "a36ea13d.8ae5a", "85ddda77.c35eb8", "a7c8efdc.e594a", "9bb3ae90.96bd28", "29d817cf.8c6c2", "f5ebf5d8.efd7c8", "2ac9da47.039356", "26d26bbb.3b467c", "1eb859b3.7f7246" ] ] }, { "id": "604ffa37.4036d4", "type": "change", "z": "371f61af.7c3d3e", "name": "tempUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.spacetemp", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1090, "y": 100, "wires": [ [ "ae217f61.a314e", "22cc5f7c.2fcbb8" ] ] }, { "id": "221e0a61.e3fa16", "type": "change", "z": "371f61af.7c3d3e", "name": "fanstateUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.fanstate", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 340, "wires": [ [ "282bbc53.efc11c", "26a98dc8.785d4a" ] ] }, { "id": "282bbc53.efc11c", "type": "change", "z": "371f61af.7c3d3e", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "OFF", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "ON", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1400, "y": 340, "wires": [ [ "612c89dd.9c752" ] ] }, { "id": "612c89dd.9c752", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 4, "width": 0, "height": 0, "name": "Fan State", "label": "Fan State", "format": "{{msg.payload}}", "layout": "col-center", "x": 1720, "y": 340, "wires": [] }, { "id": "77c8a6ae.b7c6f8", "type": "inject", "z": "371f61af.7c3d3e", "name": "Off", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1100, "wires": [ [ "4b697e05.a02638" ] ] }, { "id": "2b8291fe.4899e6", "type": "inject", "z": "371f61af.7c3d3e", "name": "Heat", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 448, "y": 1144, "wires": [ [ "4b697e05.a02638" ] ] }, { "id": "c65a6ba5.aebd08", "type": "inject", "z": "371f61af.7c3d3e", "name": "Cool", "topic": "", "payload": "2", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 448, "y": 1184, "wires": [ [ "4b697e05.a02638" ] ] }, { "id": "9f2fd5d9.2f03e8", "type": "inject", "z": "371f61af.7c3d3e", "name": "Auto", "topic": "", "payload": "3", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1220, "wires": [ [ "4b697e05.a02638" ] ] }, { "id": "89bad2a7.a76e38", "type": "change", "z": "371f61af.7c3d3e", "name": "TmodeUpstairs", "rules": [ { "t": "set", "p": "TmodeUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 1100, "wires": [ [ "5c2f89f8.a0d47" ] ] }, { "id": "1117d4bb.693b93", "type": "link in", "z": "371f61af.7c3d3e", "name": "MQTT Upstairs Slave In ", "links": [ "cd91a9ba.8d7a6" ], "x": 275, "y": 860, "wires": [ [ "a3ae7f4e.4b6f98", "7c01b8a8.590d68", "f7bc47c7.06c3b", "f05cf98e.a09938", "da418481.0bf7b", "69f9098d.ebc128", "c60bc37d.42764" ] ] }, { "id": "ae217f61.a314e", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 1, "width": 0, "height": 0, "name": "Room Temperature", "label": "Room Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1750, "y": 100, "wires": [] }, { "id": "c60bc37d.42764", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetMode", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetMode", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 390, "y": 1060, "wires": [ [ "4b697e05.a02638" ] ] }, { "id": "a3ae7f4e.4b6f98", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetFan", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetFan", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 400, "y": 1280, "wires": [ [ "1ec7808c.21faff" ] ] }, { "id": "5da329b5.cddcd", "type": "inject", "z": "371f61af.7c3d3e", "name": "Auto", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1320, "wires": [ [ "1ec7808c.21faff" ] ] }, { "id": "aef53ed8.479498", "type": "inject", "z": "371f61af.7c3d3e", "name": "On", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1360, "wires": [ [ "1ec7808c.21faff" ] ] }, { "id": "6a4fd032.0a93b", "type": "change", "z": "371f61af.7c3d3e", "name": "FmodeUpstairs", "rules": [ { "t": "set", "p": "FmodeUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 1320, "wires": [ [ "5c2f89f8.a0d47" ] ] }, { "id": "8f7f8d30.3dfcc", "type": "link out", "z": "371f61af.7c3d3e", "name": "MQTT Upstairs Slave out ", "links": [ "e43a1a6d.e45cb8" ], "x": 2295, "y": 640, "wires": [] }, { "id": "14a07bbb.8fdd84", "type": "comment", "z": "371f61af.7c3d3e", "name": "MQTT Upstairs Slave In ", "info": "", "x": 230, "y": 820, "wires": [] }, { "id": "4b697e05.a02638", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 1100, "wires": [ [ "89bad2a7.a76e38" ] ] }, { "id": "22cc5f7c.2fcbb8", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Temp", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Temp", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 80, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "df052a8c.cb5058", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Mode", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Mode", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 200, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "258d890.6053b78", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Fmode", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Fmode", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 280, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "3abfaeee.2e0872", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Tstate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Tstate", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 240, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "26a98dc8.785d4a", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Fstate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Fstate", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 320, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "1ec7808c.21faff", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 1320, "wires": [ [ "6a4fd032.0a93b" ] ] }, { "id": "e1fed8bb.404078", "type": "inject", "z": "371f61af.7c3d3e", "name": "68", "topic": "", "payload": "68", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1640, "wires": [ [ "35d78dc7.16653a" ] ] }, { "id": "40dc3a7a.e09f84", "type": "inject", "z": "371f61af.7c3d3e", "name": "72", "topic": "", "payload": "72", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1680, "wires": [ [ "35d78dc7.16653a" ] ] }, { "id": "819e61ff.5ab728", "type": "inject", "z": "371f61af.7c3d3e", "name": "75", "topic": "", "payload": "75", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1720, "wires": [ [ "35d78dc7.16653a" ] ] }, { "id": "fd550271.90ba38", "type": "inject", "z": "371f61af.7c3d3e", "name": "80", "topic": "", "payload": "80", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1760, "wires": [ [ "35d78dc7.16653a" ] ] }, { "id": "7c01b8a8.590d68", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetTCool", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetTCool", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 390, "y": 1600, "wires": [ [ "35d78dc7.16653a" ] ] }, { "id": "35d78dc7.16653a", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 1660, "wires": [ [ "4eabf428.df2c74" ] ] }, { "id": "4eabf428.df2c74", "type": "change", "z": "371f61af.7c3d3e", "name": "TCoolUpstairs", "rules": [ { "t": "set", "p": "TCoolUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 1660, "wires": [ [ "5c2f89f8.a0d47" ] ] }, { "id": "ffaa2a23.2cc368", "type": "inject", "z": "371f61af.7c3d3e", "name": "68", "topic": "", "payload": "68", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1460, "wires": [ [ "6ea03a8a.e5809c" ] ] }, { "id": "a693b5e2.d276", "type": "inject", "z": "371f61af.7c3d3e", "name": "72", "topic": "", "payload": "72", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1500, "wires": [ [ "6ea03a8a.e5809c" ] ] }, { "id": "9a9bcc4e.194c48", "type": "inject", "z": "371f61af.7c3d3e", "name": "75", "topic": "", "payload": "75", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1540, "wires": [ [ "6ea03a8a.e5809c" ] ] }, { "id": "f7bc47c7.06c3b", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetTHeat", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetTHeat", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 390, "y": 1420, "wires": [ [ "6ea03a8a.e5809c" ] ] }, { "id": "6ea03a8a.e5809c", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 1480, "wires": [ [ "4860c70a.084a28" ] ] }, { "id": "2dcb1672.187fa2", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/TCool", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/TCool", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 120, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "d4fe3fe6.e806b", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/THeat", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/THeat", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 160, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "fffc0619.bfcd38", "type": "comment", "z": "371f61af.7c3d3e", "name": "MQTT state topics", "info": "", "x": 2010, "y": 40, "wires": [] }, { "id": "60813290.872c44", "type": "comment", "z": "371f61af.7c3d3e", "name": "MQTT command topics", "info": "", "x": 400, "y": 1020, "wires": [] }, { "id": "6b20f86a.d48eb", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 15, "width": 0, "height": 0, "name": "Swing", "label": "Swing", "format": "{{msg.payload}}", "layout": "col-center", "x": 1710, "y": 500, "wires": [] }, { "id": "1fd74f9c.500df8", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Schedule", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Schedule", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2030, "y": 440, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "6eaa7bda.53071c", "type": "debug", "z": "371f61af.7c3d3e", "name": "Post Upstaris Tstat control", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 2010, "y": 1300, "wires": [] }, { "id": "551109b6.d4a9d8", "type": "link in", "z": "371f61af.7c3d3e", "name": "Cron HVAC Up Slave In", "links": [ "db183900.0d2b7" ], "x": 275, "y": 160, "wires": [ [ "c2fc950c.efec3" ] ] }, { "id": "6d9317f3.cfd978", "type": "comment", "z": "371f61af.7c3d3e", "name": "Cron HVAC Up Slave In", "info": "", "x": 280, "y": 120, "wires": [] }, { "id": "c2fc950c.efec3", "type": "switch", "z": "371f61af.7c3d3e", "name": "Every1Min", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "Every1Min", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 400, "y": 160, "wires": [ [ "f3541eaa.31aec8", "167dccb4.c3e8db" ] ] }, { "id": "3fe97788.ae97a8", "type": "change", "z": "371f61af.7c3d3e", "name": "stateUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.state", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1090, "y": 260, "wires": [ [ "2170017e.c2252e", "3abfaeee.2e0872" ] ] }, { "id": "2170017e.c2252e", "type": "change", "z": "371f61af.7c3d3e", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "Idle", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "Heating", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "Cooling", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "Lockout", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "4", "fromt": "num", "to": "Error", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1400, "y": 260, "wires": [ [ "9cf4a5ed.4791a" ] ] }, { "id": "9cf4a5ed.4791a", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 11, "width": 0, "height": 0, "name": "State", "label": "State", "format": "{{msg.payload}}", "layout": "col-center", "x": 1710, "y": 260, "wires": [] }, { "id": "4e68d3ed.5b43bc", "type": "change", "z": "371f61af.7c3d3e", "name": "SwingUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.setpointdelta", "tot": "msg" }, { "t": "set", "p": "THeatUpstairs", "pt": "flow", "to": "payload.setpointdelta", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 500, "wires": [ [ "6b20f86a.d48eb", "e8b51822.3e60c" ] ] }, { "id": "e6e45947.200dd8", "type": "change", "z": "371f61af.7c3d3e", "name": "TCoolMinUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.cooltempmin", "tot": "msg" }, { "t": "set", "p": "TCoolMinUpstairs", "pt": "flow", "to": "payload.cooltempmin", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 540, "wires": [ [ "82ed408e.718bf8" ] ] }, { "id": "a3658574.ed5f78", "type": "change", "z": "371f61af.7c3d3e", "name": "TCoolMaxUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.cooltempmax", "tot": "msg" }, { "t": "set", "p": "TCoolMaxUpstairs", "pt": "flow", "to": "payload.cooltempmax", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 580, "wires": [ [ "fc704367.285fc8" ] ] }, { "id": "a2743525.dadb1", "type": "change", "z": "371f61af.7c3d3e", "name": "THeatMinUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.heattempmin", "tot": "msg" }, { "t": "set", "p": "THeatMinUpstairs", "pt": "flow", "to": "payload.heattempmin", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 620, "wires": [ [ "a57d63dd.2dd2f8" ] ] }, { "id": "a36ea13d.8ae5a", "type": "change", "z": "371f61af.7c3d3e", "name": "THeatMaxUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.heattempmax", "tot": "msg" }, { "t": "set", "p": "THeatMaxUpstairs", "pt": "flow", "to": "payload.heattempmax", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 660, "wires": [ [ "884a1f01.ac394" ] ] }, { "id": "82ed408e.718bf8", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 20, "width": 0, "height": 0, "name": "Min Cool Temperature", "label": "Min Cool Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1760, "y": 540, "wires": [] }, { "id": "fc704367.285fc8", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 21, "width": 0, "height": 0, "name": "Max Cool Temperature", "label": "Max Cool Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1760, "y": 580, "wires": [] }, { "id": "a57d63dd.2dd2f8", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 22, "width": 0, "height": 0, "name": "Min Heat Temperature", "label": "Min Heat Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1760, "y": 620, "wires": [] }, { "id": "884a1f01.ac394", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 23, "width": 0, "height": 0, "name": "Max Heat Temperature", "label": "Max Heat Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1760, "y": 663, "wires": [] }, { "id": "c1b72dc5.7525d", "type": "change", "z": "371f61af.7c3d3e", "name": "TCoolUpstairs", "rules": [ { "t": "set", "p": "TCoolUpstairs", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"cooltemp\": $flowContext(\"TCoolUpstairs\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1600, "y": 3700, "wires": [ [ "56cbf8ff.61fb8" ] ] }, { "id": "56cbf8ff.61fb8", "type": "http request", "z": "371f61af.7c3d3e", "name": "Post Upstaris Tstat", "method": "POST", "ret": "obj", "paytoqs": false, "url": "http://10.0.0.221/control", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1810, "y": 3700, "wires": [ [] ] }, { "id": "f667b39f.e020c8", "type": "inject", "z": "371f61af.7c3d3e", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 1420, "y": 3700, "wires": [ [ "c1b72dc5.7525d" ] ] }, { "id": "c75e2f48.1d2b38", "type": "http request", "z": "371f61af.7c3d3e", "name": "Get Upstaris Tstat Runtimes", "method": "GET", "ret": "obj", "paytoqs": false, "url": "http://10.0.0.221/query/runtimes", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 640, "y": 200, "wires": [ [ "b336cb2c.09bc18", "6232ffc5.e1d2e8", "3b6a8b54.6777ec" ] ] }, { "id": "b336cb2c.09bc18", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.runtimes[0].cool1", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.runtimes[0].cool1", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 700, "wires": [ [ "caf22008.fb89b", "21d1d23a.b7e62e" ] ] }, { "id": "caf22008.fb89b", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 18, "width": 0, "height": 0, "name": "Cool Runtime", "label": "Cool Runtime", "format": "{{msg.payload}}", "layout": "col-center", "x": 1730, "y": 700, "wires": [] }, { "id": "a2568a33.a8a118", "type": "ui_text", "z": "371f61af.7c3d3e", "group": "8652cef1.19c2e", "order": 19, "width": 0, "height": 0, "name": "Heat Runtime", "label": "Heat Runtime", "format": "{{msg.payload}}", "layout": "col-center", "x": 1730, "y": 740, "wires": [] }, { "id": "4860c70a.084a28", "type": "change", "z": "371f61af.7c3d3e", "name": "THeatUpstairs", "rules": [ { "t": "set", "p": "THeatUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 1480, "wires": [ [ "5c2f89f8.a0d47" ] ] }, { "id": "92c5eff6.6f4d9", "type": "http request", "z": "371f61af.7c3d3e", "name": "Post Upstaris Tstat control", "method": "POST", "ret": "txt", "paytoqs": false, "url": "http://10.0.0.221/control", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1750, "y": 1300, "wires": [ [ "6eaa7bda.53071c" ] ] }, { "id": "5c2f89f8.a0d47", "type": "function", "z": "371f61af.7c3d3e", "name": "Setup HTTP Post", "func": "var mode=flow.get('TmodeUpstairs');\nvar fan=flow.get('FmodeUpstairs');\nvar heat=flow.get('THeatUpstairs');\nvar cool=flow.get('TCoolUpstairs');\n\nmsg.headers={ \n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n//msg.payload = {};\nmsg.payload={ \n'mode':mode,\n'fan':fan,\n'heattemp':heat,\n'cooltemp':cool\n};\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1500, "y": 1300, "wires": [ [ "92c5eff6.6f4d9" ] ] }, { "id": "bf3d9288.8587a8", "type": "inject", "z": "371f61af.7c3d3e", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 460, "y": 80, "wires": [ [ "f3541eaa.31aec8", "c75e2f48.1d2b38", "a1ad8e89.27113", "f6125a4e.eb485" ] ] }, { "id": "6232ffc5.e1d2e8", "type": "debug", "z": "371f61af.7c3d3e", "name": "Runtimes", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 620, "y": 580, "wires": [] }, { "id": "3b6a8b54.6777ec", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.runtimes[0].heat1", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.runtimes[0].heat1", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 740, "wires": [ [ "a2568a33.a8a118", "d8543739.74a9a8" ] ] }, { "id": "85ddda77.c35eb8", "type": "function", "z": "371f61af.7c3d3e", "name": "TCoolUpstairs", "func": "flow.set(\"TCoolUpstairs\",msg.payload.cooltemp);\nmsg.payload=msg.payload.cooltemp;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1100, "y": 140, "wires": [ [ "b2b5ff1.033128", "2dcb1672.187fa2" ] ] }, { "id": "a7c8efdc.e594a", "type": "function", "z": "371f61af.7c3d3e", "name": "THeatUpstairs", "func": "flow.set(\"THeatUpstairs\",msg.payload.heattemp);\nmsg.payload=msg.payload.heattemp;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1100, "y": 180, "wires": [ [ "623c5a1f.4f32f4", "d4fe3fe6.e806b" ] ] }, { "id": "9bb3ae90.96bd28", "type": "function", "z": "371f61af.7c3d3e", "name": "TmodeUpstairs", "func": "flow.set(\"TmodeUpstairs\",msg.payload.mode);\nmsg.payload=msg.payload.mode;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1100, "y": 220, "wires": [ [ "a7969e32.075a5", "df052a8c.cb5058" ] ] }, { "id": "29d817cf.8c6c2", "type": "function", "z": "371f61af.7c3d3e", "name": "FmodeUpstairs", "func": "flow.set(\"FmodeUpstairs\",msg.payload.fan);\nmsg.payload=msg.payload.fan;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1100, "y": 300, "wires": [ [ "51a7df45.e5bfa", "258d890.6053b78" ] ] }, { "id": "f5ebf5d8.efd7c8", "type": "debug", "z": "371f61af.7c3d3e", "name": "Info", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 610, "y": 540, "wires": [] }, { "id": "da418481.0bf7b", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetAwayUpstairs", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetAwayUpstairs", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 370, "y": 1960, "wires": [ [ "c9e4d3a7.da23c" ] ] }, { "id": "fd2a9d78.12dce", "type": "inject", "z": "371f61af.7c3d3e", "name": "Home", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 2000, "wires": [ [ "c9e4d3a7.da23c" ] ] }, { "id": "e3069160.902ee", "type": "inject", "z": "371f61af.7c3d3e", "name": "Away", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 2040, "wires": [ [ "c9e4d3a7.da23c" ] ] }, { "id": "1eacb059.2af71", "type": "change", "z": "371f61af.7c3d3e", "name": "AwayUpstairs", "rules": [ { "t": "set", "p": "AwayUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 2000, "wires": [ [ "24243a0.a67b2c6" ] ] }, { "id": "c9e4d3a7.da23c", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 2000, "wires": [ [ "1eacb059.2af71" ] ] }, { "id": "69f9098d.ebc128", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetTempUnits", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetTempUnits", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 380, "y": 2100, "wires": [ [ "1ce6c111.e919cf" ] ] }, { "id": "a1535acc.a7ad78", "type": "inject", "z": "371f61af.7c3d3e", "name": "Fahrenheit", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 440, "y": 2140, "wires": [ [ "1ce6c111.e919cf" ] ] }, { "id": "f3753fc9.c76f78", "type": "inject", "z": "371f61af.7c3d3e", "name": "Celsius", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 2180, "wires": [ [ "1ce6c111.e919cf" ] ] }, { "id": "f44b1fd1.aaad58", "type": "change", "z": "371f61af.7c3d3e", "name": "TempUnits", "rules": [ { "t": "set", "p": "TempUnits", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1120, "y": 2140, "wires": [ [ "24243a0.a67b2c6" ] ] }, { "id": "1ce6c111.e919cf", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 2140, "wires": [ [ "f44b1fd1.aaad58" ] ] }, { "id": "f05cf98e.a09938", "type": "switch", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/SetScheduleUpstairs", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetScheduleUpstairs", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 380, "y": 1820, "wires": [ [ "a35cab85.449e48" ] ] }, { "id": "84fc8a61.173cf8", "type": "inject", "z": "371f61af.7c3d3e", "name": "Auto", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1860, "wires": [ [ "a35cab85.449e48" ] ] }, { "id": "cf0d8c97.c8e6f", "type": "inject", "z": "371f61af.7c3d3e", "name": "On", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 450, "y": 1900, "wires": [ [ "a35cab85.449e48" ] ] }, { "id": "1b1b4c9b.d6962b", "type": "change", "z": "371f61af.7c3d3e", "name": "ScheduleUpstairs", "rules": [ { "t": "set", "p": "ScheduleUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1090, "y": 1860, "wires": [ [ "24243a0.a67b2c6" ] ] }, { "id": "a35cab85.449e48", "type": "function", "z": "371f61af.7c3d3e", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 830, "y": 1860, "wires": [ [ "1b1b4c9b.d6962b" ] ] }, { "id": "732ee174.737f", "type": "http request", "z": "371f61af.7c3d3e", "name": "Post Upstaris Tstat settings", "method": "POST", "ret": "txt", "paytoqs": false, "url": "http://10.0.0.221/settings", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 1740, "y": 2000, "wires": [ [ "59dbd729.6ff8c8" ] ] }, { "id": "24243a0.a67b2c6", "type": "function", "z": "371f61af.7c3d3e", "name": "Setup HTTP Post", "func": "var units=flow.get('TempUnits');\nvar away=flow.get('AwayUpstairs');\nvar schedule=flow.get('ScheduleUpstairs');\n\nmsg.headers={ \n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n//msg.payload = {};\nmsg.payload={ \n'tempunits':units,\n'away':away,\n'schedule':schedule\n};\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1500, "y": 2000, "wires": [ [ "732ee174.737f" ] ] }, { "id": "59dbd729.6ff8c8", "type": "debug", "z": "371f61af.7c3d3e", "name": "Post Upstaris Tstat settings", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 2040, "y": 2000, "wires": [] }, { "id": "51a7df45.e5bfa", "type": "ui_dropdown", "z": "371f61af.7c3d3e", "name": "Fan Mode", "label": "Fan Mode", "tooltip": "", "place": "Select option", "group": "8652cef1.19c2e", "order": 24, "width": 0, "height": 0, "passthru": false, "multiple": false, "options": [ { "label": "Auto", "value": 0, "type": "num" }, { "label": "On", "value": 1, "type": "num" } ], "payload": "", "topic": "", "x": 1720, "y": 300, "wires": [ [ "72746f4d.dd9cc" ] ] }, { "id": "a7969e32.075a5", "type": "ui_dropdown", "z": "371f61af.7c3d3e", "name": "Thermostat Mode", "label": "Thermostat Mode", "tooltip": "", "place": "Select option", "group": "8652cef1.19c2e", "order": 25, "width": 0, "height": 0, "passthru": false, "multiple": false, "options": [ { "label": "Off", "value": 0, "type": "num" }, { "label": "Heat", "value": 1, "type": "num" }, { "label": "Cool", "value": 2, "type": "num" }, { "label": "Auto", "value": 3, "type": "num" } ], "payload": "", "topic": "", "x": 1750, "y": 220, "wires": [ [ "27e06ba.7e06314" ] ] }, { "id": "b2b5ff1.033128", "type": "ui_slider", "z": "371f61af.7c3d3e", "name": "Cool Setpoint", "label": "Cool Setpoint", "tooltip": "", "group": "8652cef1.19c2e", "order": 26, "width": 0, "height": 0, "passthru": false, "outs": "end", "topic": "", "min": "65", "max": "85", "step": 1, "x": 1730, "y": 140, "wires": [ [ "47304d1a.0dc844" ] ] }, { "id": "623c5a1f.4f32f4", "type": "ui_slider", "z": "371f61af.7c3d3e", "name": "Heat Setpoint", "label": "Heat Setpoint", "tooltip": "", "group": "8652cef1.19c2e", "order": 27, "width": 0, "height": 0, "passthru": false, "outs": "end", "topic": "", "min": "65", "max": "85", "step": 1, "x": 1730, "y": 180, "wires": [ [ "e9acc698.c28ef" ] ] }, { "id": "2ac9da47.039356", "type": "function", "z": "371f61af.7c3d3e", "name": "TempUnitsUpstairs", "func": "flow.set(\"TempUnitsUpstairs\",msg.payload.tempunits);\nmsg.payload=msg.payload.tempunits;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1110, "y": 380, "wires": [ [ "5b26360a.5a29c8", "7f5a9571.ed1bc4" ] ] }, { "id": "26d26bbb.3b467c", "type": "function", "z": "371f61af.7c3d3e", "name": "AwayUpstairs", "func": "flow.set(\"AwayUpstairs\",msg.payload.away);\nmsg.payload=msg.payload.away;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1100, "y": 420, "wires": [ [ "be00cd7a.0938a8", "9f812d97.bcb95" ] ] }, { "id": "1eb859b3.7f7246", "type": "function", "z": "371f61af.7c3d3e", "name": "ScheduleUpstairs", "func": "flow.set(\"ScheduleUpstairs\",msg.payload.schedule);\nmsg.payload=msg.payload.schedule;\nreturn msg; ", "outputs": 1, "noerr": 0, "x": 1110, "y": 460, "wires": [ [ "56e8d586.c3d8ec", "1fd74f9c.500df8" ] ] }, { "id": "5b26360a.5a29c8", "type": "ui_dropdown", "z": "371f61af.7c3d3e", "name": "Temp Units", "label": "Temp Units", "tooltip": "", "place": "Select option", "group": "8652cef1.19c2e", "order": 28, "width": 0, "height": 0, "passthru": false, "multiple": false, "options": [ { "label": "Fahrenheit", "value": 0, "type": "num" }, { "label": "Celsius", "value": 1, "type": "num" } ], "payload": "", "topic": "", "x": 1730, "y": 380, "wires": [ [ "f01a4f20.656808" ] ] }, { "id": "be00cd7a.0938a8", "type": "ui_dropdown", "z": "371f61af.7c3d3e", "name": "Presence", "label": "Presence", "tooltip": "", "place": "Select option", "group": "8652cef1.19c2e", "order": 29, "width": 0, "height": 0, "passthru": false, "multiple": false, "options": [ { "label": "Home", "value": 0, "type": "num" }, { "label": "Away", "value": 1, "type": "num" } ], "payload": "", "topic": "", "x": 1720, "y": 420, "wires": [ [ "fb830cb4.9678c" ] ] }, { "id": "56e8d586.c3d8ec", "type": "ui_dropdown", "z": "371f61af.7c3d3e", "name": "Schedule", "label": "Schedule", "tooltip": "", "place": "Select option", "group": "8652cef1.19c2e", "order": 30, "width": 0, "height": 0, "passthru": false, "multiple": false, "options": [ { "label": "Off", "value": 0, "type": "num" }, { "label": "On", "value": 1, "type": "num" } ], "payload": "", "topic": "", "x": 1720, "y": 460, "wires": [ [ "9cf563dc.06ace8" ] ] }, { "id": "7f5a9571.ed1bc4", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/TempUnits", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/TempUnits", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2030, "y": 360, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "e8b51822.3e60c", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/TSwing", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/TSwing", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 480, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "9f812d97.bcb95", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/Away", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Away", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2020, "y": 400, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "21d1d23a.b7e62e", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/CoolRunTime", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/CoolRunTime", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 680, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "d8543739.74a9a8", "type": "change", "z": "371f61af.7c3d3e", "name": "HVAC/Upstairs/HeatRunTime", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/HeatRunTime", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2040, "y": 720, "wires": [ [ "8f7f8d30.3dfcc" ] ] }, { "id": "47304d1a.0dc844", "type": "link out", "z": "371f61af.7c3d3e", "name": "TCoolUpstairs In", "links": [ "ce8d69e8.2b70d8" ], "x": 2395, "y": 140, "wires": [] }, { "id": "ce8d69e8.2b70d8", "type": "link in", "z": "371f61af.7c3d3e", "name": "TCoolUpstairs out", "links": [ "47304d1a.0dc844" ], "x": 975, "y": 1640, "wires": [ [ "4eabf428.df2c74" ] ] }, { "id": "e9acc698.c28ef", "type": "link out", "z": "371f61af.7c3d3e", "name": "THeatUpstairs In", "links": [ "26ea8383.340ef4" ], "x": 2395, "y": 180, "wires": [] }, { "id": "26ea8383.340ef4", "type": "link in", "z": "371f61af.7c3d3e", "name": "THeatUpstairs out", "links": [ "e9acc698.c28ef" ], "x": 975, "y": 1460, "wires": [ [ "4860c70a.084a28" ] ] }, { "id": "27e06ba.7e06314", "type": "link out", "z": "371f61af.7c3d3e", "name": "TmodeUpstairs In", "links": [ "1a497f24.26a1a1" ], "x": 2395, "y": 220, "wires": [] }, { "id": "1a497f24.26a1a1", "type": "link in", "z": "371f61af.7c3d3e", "name": " TmodeUpstairs out", "links": [ "27e06ba.7e06314" ], "x": 975, "y": 1080, "wires": [ [ "89bad2a7.a76e38" ] ] }, { "id": "72746f4d.dd9cc", "type": "link out", "z": "371f61af.7c3d3e", "name": "FmodeUpstairs In", "links": [ "c8a3585a.70d1c8" ], "x": 2395, "y": 300, "wires": [] }, { "id": "c8a3585a.70d1c8", "type": "link in", "z": "371f61af.7c3d3e", "name": "FmodeUpstairs out", "links": [ "72746f4d.dd9cc" ], "x": 975, "y": 1300, "wires": [ [ "6a4fd032.0a93b" ] ] }, { "id": "f01a4f20.656808", "type": "link out", "z": "371f61af.7c3d3e", "name": "TempUnitsUpstairs In", "links": [ "f9db0cfa.165648" ], "x": 2395, "y": 380, "wires": [] }, { "id": "f9db0cfa.165648", "type": "link in", "z": "371f61af.7c3d3e", "name": "TempUnitsUpstairs out", "links": [ "f01a4f20.656808" ], "x": 975, "y": 2120, "wires": [ [ "f44b1fd1.aaad58" ] ] }, { "id": "fb830cb4.9678c", "type": "link out", "z": "371f61af.7c3d3e", "name": "AwayUpstairs In", "links": [ "30aa7ebd.3c98f2" ], "x": 2395, "y": 420, "wires": [] }, { "id": "30aa7ebd.3c98f2", "type": "link in", "z": "371f61af.7c3d3e", "name": "AwayUpstairs out", "links": [ "fb830cb4.9678c" ], "x": 975, "y": 1980, "wires": [ [ "1eacb059.2af71" ] ] }, { "id": "9cf563dc.06ace8", "type": "link out", "z": "371f61af.7c3d3e", "name": "ScheduleUpstairs In", "links": [ "8680149.bb77868" ], "x": 2395, "y": 460, "wires": [] }, { "id": "8680149.bb77868", "type": "link in", "z": "371f61af.7c3d3e", "name": "ScheduleUpstairs out", "links": [ "9cf563dc.06ace8" ], "x": 955, "y": 1840, "wires": [ [ "1b1b4c9b.d6962b" ] ] }, { "id": "2538635d.438bf4", "type": "comment", "z": "371f61af.7c3d3e", "name": "MQTT Upstairs Slave Out", "info": "", "x": 2310, "y": 600, "wires": [] }, { "id": "a1ad8e89.27113", "type": "http request", "z": "371f61af.7c3d3e", "name": "Get Upstaris Tstat Alerts", "method": "GET", "ret": "obj", "paytoqs": false, "url": "http://10.0.0.221/query/alerts", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 630, "y": 240, "wires": [ [ "67899db.e92f2e4", "2bb79c79.c2a9c4", "5ef17381.836fd4" ] ] }, { "id": "f6125a4e.eb485", "type": "http request", "z": "371f61af.7c3d3e", "name": "Get Upstaris Tstat Sensors", "method": "GET", "ret": "obj", "paytoqs": false, "url": "http://10.0.0.221/query/sensors", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 630, "y": 280, "wires": [ [ "ca52dc05.8f5188", "2707bddf.7f52a2", "a7d1fcf0.f5ca38", "ff132e0f.431e48" ] ] }, { "id": "167dccb4.c3e8db", "type": "delay", "z": "371f61af.7c3d3e", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 400, "y": 200, "wires": [ [ "c75e2f48.1d2b38", "477289aa.30e03" ] ] }, { "id": "477289aa.30e03", "type": "delay", "z": "371f61af.7c3d3e", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 400, "y": 240, "wires": [ [ "a1ad8e89.27113", "4889b91.e594248" ] ] }, { "id": "4889b91.e594248", "type": "delay", "z": "371f61af.7c3d3e", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 400, "y": 280, "wires": [ [ "f6125a4e.eb485" ] ] }, { "id": "67899db.e92f2e4", "type": "debug", "z": "371f61af.7c3d3e", "name": "Alerts", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 610, "y": 620, "wires": [] }, { "id": "ca52dc05.8f5188", "type": "debug", "z": "371f61af.7c3d3e", "name": "Sensors", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 620, "y": 660, "wires": [] }, { "id": "5ef17381.836fd4", "type": "change", "z": "371f61af.7c3d3e", "name": "Air Filter", "rules": [ { "t": "set", "p": "payload.alerts[2].name", "pt": "msg", "to": "payload.alerts[2].name", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1080, "y": 780, "wires": [ [] ] }, { "id": "2bb79c79.c2a9c4", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.alerts[2].active", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.alerts[2].active", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1120, "y": 820, "wires": [ [ "7708378e.764ff8" ] ] }, { "id": "7708378e.764ff8", "type": "change", "z": "371f61af.7c3d3e", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "Replace", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "Good", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1380, "y": 820, "wires": [ [] ] }, { "id": "2707bddf.7f52a2", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.sensors[0].name", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.sensors[0].name", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 860, "wires": [ [] ] }, { "id": "a7d1fcf0.f5ca38", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.sensors[0].temp", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.sensors[0].temp", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 900, "wires": [ [] ] }, { "id": "ff132e0f.431e48", "type": "change", "z": "371f61af.7c3d3e", "name": "payload.sensors[0].hum", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.sensors[0].hum", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 940, "wires": [ [] ] }, { "id": "8652cef1.19c2e", "type": "ui_group", "z": "", "name": "Upstairs", "tab": "ea3ab836.fe2d3", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "ea3ab836.fe2d3", "type": "ui_tab", "z": "", "name": "CT-50 HVAC", "icon": "dashboard", "order": 5, "disabled": false, "hidden": false } ]