[ { "id": "5d29b44a.2f258c", "type": "tab", "label": "Upstairs HVAC", "disabled": false, "info": "" }, { "id": "26b5c9ed.41229e", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Upstaris Tstat", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat", "tls": "", "x": 530, "y": 260, "wires": [ [ "fd8247db.a35ea", "1e9b56f2.0dbb59", "f4448498.f23bf8", "b23326bb.42ec38", "f8d5f62d.eb9c58", "d8d67463.29893", "ac6683b8.8d7f08", "3fddf91c.0031ae", "44a623a0.6c03ac", "f0ec3756.a952a8", "9eb37af0.ea1ff", "5a46df31.0b4ae8", "520c4d9d.a7c1b4", "956139a7.61a82" ] ] }, { "id": "9560e56b.f6db4", "type": "inject", "z": "5d29b44a.2f258c", "name": "1 Min", "topic": "", "payload": "", "payloadType": "date", "repeat": "60", "crontab": "", "once": false, "onceDelay": "", "x": 450, "y": 100, "wires": [ [ "26b5c9ed.41229e" ] ] }, { "id": "6529c456.f582e4", "type": "change", "z": "5d29b44a.2f258c", "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": "HEAT", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "COOL", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "AUTO", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 80, "wires": [ [ "6556bb34.556c14" ] ] }, { "id": "50d7455a.8699cc", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "MONDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "TUESDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "WEDNESDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "THURSDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "4", "fromt": "num", "to": "FRIDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "5", "fromt": "num", "to": "SATURDAY", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "6", "fromt": "num", "to": "SUNDAY", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 320, "wires": [ [ "bc9e8ec3.96abc8" ] ] }, { "id": "78961817.06c9d8", "type": "http request", "z": "5d29b44a.2f258c", "name": "Post Upstaris PMA", "method": "POST", "ret": "obj", "url": "http://192.168.7.240/tstat/pma", "tls": "", "x": 1210, "y": 640, "wires": [ [] ] }, { "id": "bb2789d5.60cfe8", "type": "template", "z": "5d29b44a.2f258c", "name": "Tstat PMA format", "field": "payload", "fieldType": "msg", "format": "json", "syntax": "mustache", "template": "{\n \"line\": 0,\n \"message\":\n \"{{payload}}\"\n}", "output": "json", "x": 860, "y": 640, "wires": [ [ "78961817.06c9d8" ] ] }, { "id": "5ed811b6.3cf35", "type": "inject", "z": "5d29b44a.2f258c", "name": "68", "topic": "", "payload": "68", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1620, "wires": [ [ "eb481f5.ea4086" ] ] }, { "id": "b699d3e6.d5007", "type": "inject", "z": "5d29b44a.2f258c", "name": "72", "topic": "", "payload": "72", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1660, "wires": [ [ "eb481f5.ea4086" ] ] }, { "id": "10be52c8.895ac5", "type": "inject", "z": "5d29b44a.2f258c", "name": "75", "topic": "", "payload": "75", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1700, "wires": [ [ "eb481f5.ea4086" ] ] }, { "id": "44766db5.fd93f4", "type": "inject", "z": "5d29b44a.2f258c", "name": "80", "topic": "", "payload": "80", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1740, "wires": [ [ "eb481f5.ea4086" ] ] }, { "id": "fd8247db.a35ea", "type": "change", "z": "5d29b44a.2f258c", "name": "tempUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.temp", "tot": "msg" }, { "t": "set", "p": "tempUpstairs", "pt": "flow", "to": "payload.temp", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 40, "wires": [ [ "ebb0f3f3.4c093", "c31ad2c5.9896" ] ] }, { "id": "1e9b56f2.0dbb59", "type": "change", "z": "5d29b44a.2f258c", "name": "modeUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.tmode", "tot": "msg" }, { "t": "set", "p": "tempUpstairs", "pt": "flow", "to": "payload.tmode", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 80, "wires": [ [ "6529c456.f582e4", "ac59dceb.12e9a8", "ac33081a.2020e8" ] ] }, { "id": "6556bb34.556c14", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 5, "width": 0, "height": 0, "name": "Thermostat Mode", "label": "Thermostat Mode", "format": "{{msg.payload}}", "layout": "col-center", "x": 1620, "y": 80, "wires": [] }, { "id": "f4448498.f23bf8", "type": "change", "z": "5d29b44a.2f258c", "name": "fmodeUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.fmode", "tot": "msg" }, { "t": "set", "p": "fmodeUpstairs", "pt": "flow", "to": "payload.fmode", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 120, "wires": [ [ "e52f6c68.b0f308", "67ea081d.d174b" ] ] }, { "id": "b23326bb.42ec38", "type": "change", "z": "5d29b44a.2f258c", "name": "overrirdeUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.override", "tot": "msg" }, { "t": "set", "p": "overrirdeUpstairs", "pt": "flow", "to": "payload.override", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 970, "y": 160, "wires": [ [ "c1f0f53a.c2dcd", "f9255d2e.eb5888" ] ] }, { "id": "f8d5f62d.eb9c58", "type": "change", "z": "5d29b44a.2f258c", "name": "holdUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.hold", "tot": "msg" }, { "t": "set", "p": "holdUpstairs", "pt": "flow", "to": "payload.hold", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 950, "y": 200, "wires": [ [ "6be2dff9.f276d", "f06ba179.d7ffa8" ] ] }, { "id": "d8d67463.29893", "type": "change", "z": "5d29b44a.2f258c", "name": "tstateUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.tstate", "tot": "msg" }, { "t": "set", "p": "tstateUpstairs", "pt": "flow", "to": "payload.tstate", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 240, "wires": [ [ "4a049000.43b62", "51249148.26711" ] ] }, { "id": "ac6683b8.8d7f08", "type": "change", "z": "5d29b44a.2f258c", "name": "fstateUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.fstate", "tot": "msg" }, { "t": "set", "p": "fstateUpstairs", "pt": "flow", "to": "payload.fstate", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 960, "y": 280, "wires": [ [ "a522e71.64ec918", "278ea451.26e8cc" ] ] }, { "id": "3fddf91c.0031ae", "type": "change", "z": "5d29b44a.2f258c", "name": "timedayUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.time.day", "tot": "msg" }, { "t": "set", "p": "timedayUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 970, "y": 320, "wires": [ [ "50d7455a.8699cc" ] ] }, { "id": "44a623a0.6c03ac", "type": "change", "z": "5d29b44a.2f258c", "name": "timehourUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.time.hour", "tot": "msg" }, { "t": "set", "p": "timehourUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 970, "y": 360, "wires": [ [ "e30792d8.634fe" ] ] }, { "id": "f0ec3756.a952a8", "type": "change", "z": "5d29b44a.2f258c", "name": "timeminuteUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.time.minute", "tot": "msg" }, { "t": "set", "p": "timeminuteUpstairs", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 980, "y": 400, "wires": [ [] ] }, { "id": "e52f6c68.b0f308", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "AUTO", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "AUTO/Circulate", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "ON", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 120, "wires": [ [ "d2637d60.f6b6a8" ] ] }, { "id": "c1f0f53a.c2dcd", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "ON", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "OFF", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 160, "wires": [ [ "1f93a5aa.d3939a" ] ] }, { "id": "6be2dff9.f276d", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "HOLD OFF", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "HOLD ON", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 200, "wires": [ [ "dac3a190.f72e4" ] ] }, { "id": "4a049000.43b62", "type": "change", "z": "5d29b44a.2f258c", "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": "HEAT", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "COOL", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 240, "wires": [ [ "6de05782.dc98f" ] ] }, { "id": "a522e71.64ec918", "type": "change", "z": "5d29b44a.2f258c", "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": 1260, "y": 280, "wires": [ [ "ccb47fd0.eabfa" ] ] }, { "id": "bc9e8ec3.96abc8", "type": "debug", "z": "5d29b44a.2f258c", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 1580, "y": 320, "wires": [] }, { "id": "d2637d60.f6b6a8", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 6, "width": 0, "height": 0, "name": "Fan Mode", "label": "Fan Mode", "format": "{{msg.payload}}", "layout": "col-center", "x": 1590, "y": 120, "wires": [] }, { "id": "1f93a5aa.d3939a", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 8, "width": 0, "height": 0, "name": "Override", "label": "Override", "format": "{{msg.payload}}", "layout": "col-center", "x": 1590, "y": 160, "wires": [] }, { "id": "dac3a190.f72e4", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 7, "width": 0, "height": 0, "name": "Hold", "label": "Hold", "format": "{{msg.payload}}", "layout": "col-center", "x": 1580, "y": 200, "wires": [] }, { "id": "6de05782.dc98f", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 3, "width": 0, "height": 0, "name": "Thermostat State", "label": "Thermostat State", "format": "{{msg.payload}}", "layout": "col-center", "x": 1610, "y": 240, "wires": [] }, { "id": "ccb47fd0.eabfa", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 4, "width": 0, "height": 0, "name": "Fan State", "label": "Fan State", "format": "{{msg.payload}}", "layout": "col-center", "x": 1590, "y": 280, "wires": [] }, { "id": "7c37ec0e.3b547c", "type": "inject", "z": "5d29b44a.2f258c", "name": "Off", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 940, "wires": [ [ "d255bdba.ef6f58" ] ] }, { "id": "5350a1b3.b8f0a8", "type": "inject", "z": "5d29b44a.2f258c", "name": "Heat", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 388, "y": 984, "wires": [ [ "d255bdba.ef6f58" ] ] }, { "id": "db7f0fb0.fe33d", "type": "inject", "z": "5d29b44a.2f258c", "name": "Cool", "topic": "", "payload": "2", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 388, "y": 1024, "wires": [ [ "d255bdba.ef6f58" ] ] }, { "id": "31f7d204.7cc9ae", "type": "inject", "z": "5d29b44a.2f258c", "name": "Auto", "topic": "", "payload": "3", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1060, "wires": [ [ "d255bdba.ef6f58" ] ] }, { "id": "6813550a.0520a4", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "set", "p": "tmodeUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 790, "y": 980, "wires": [ [ "ef435ed9.5d98c" ] ] }, { "id": "5a46df31.0b4ae8", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Upstairs Network", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/sys/network", "tls": "", "x": 980, "y": 520, "wires": [ [ "a8f85545.ec758" ] ] }, { "id": "c02e280.3c7ddd8", "type": "http request", "z": "5d29b44a.2f258c", "name": "Post Upstairs Name", "method": "POST", "ret": "obj", "url": "http://192.168.7.240/sys/name", "tls": "", "x": 1220, "y": 680, "wires": [ [] ] }, { "id": "4a49357b.b2cb1c", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 9, "width": 0, "height": 0, "name": "System Name", "label": "System Name", "format": "{{msg.payload}}", "layout": "col-center", "x": 1600, "y": 480, "wires": [] }, { "id": "a8f85545.ec758", "type": "change", "z": "5d29b44a.2f258c", "name": "RSSI", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.rssi", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1230, "y": 520, "wires": [ [ "fce2c15b.fabaa8" ] ] }, { "id": "9eb37af0.ea1ff", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Upstairs Name", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/sys/name", "tls": "", "x": 980, "y": 480, "wires": [ [ "1bc2e7c2.7332a8", "ee59d49f.9e505" ] ] }, { "id": "79b2e9d3.165fa", "type": "change", "z": "5d29b44a.2f258c", "name": "SysName", "rules": [ { "t": "set", "p": "sysname", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\"name\" : sysname}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 680, "wires": [ [ "c02e280.3c7ddd8" ] ] }, { "id": "79d57ee0.fb686", "type": "inject", "z": "5d29b44a.2f258c", "name": "Set System Name", "topic": "", "payload": "Upstairs - Tstat", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 370, "y": 680, "wires": [ [ "79b2e9d3.165fa" ] ] }, { "id": "1bc2e7c2.7332a8", "type": "change", "z": "5d29b44a.2f258c", "name": "System Name", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.name", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 480, "wires": [ [ "4a49357b.b2cb1c" ] ] }, { "id": "fce2c15b.fabaa8", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 10, "width": 0, "height": 0, "name": "RSSI", "label": "RSSI", "format": "{{msg.payload}}", "layout": "col-center", "x": 1580, "y": 520, "wires": [] }, { "id": "37dea6d8.64286a", "type": "inject", "z": "5d29b44a.2f258c", "name": "Set Current Time", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 370, "y": 760, "wires": [ [ "3956cfe.f4fdfb", "b9bf9a36.fc5388", "bcb82a26.b41c18" ] ] }, { "id": "3956cfe.f4fdfb", "type": "moment", "z": "5d29b44a.2f258c", "name": "Day", "topic": "", "input": "payload", "inputType": "msg", "inTz": "America/Chicago", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "d", "locale": "en_US", "output": "payload", "outputType": "msg", "outTz": "America/Chicago", "x": 580, "y": 760, "wires": [ [ "dbcdc66e.ae25a8" ] ] }, { "id": "b9bf9a36.fc5388", "type": "moment", "z": "5d29b44a.2f258c", "name": "Hour", "topic": "", "input": "payload", "inputType": "msg", "inTz": "America/Chicago", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "HH", "locale": "en_US", "output": "payload", "outputType": "msg", "outTz": "America/Chicago", "x": 580, "y": 800, "wires": [ [ "d76bfef5.48305" ] ] }, { "id": "bcb82a26.b41c18", "type": "moment", "z": "5d29b44a.2f258c", "name": "Minute", "topic": "", "input": "payload", "inputType": "msg", "inTz": "America/Chicago", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "mm", "locale": "en_US", "output": "payload", "outputType": "msg", "outTz": "America/Chicago", "x": 580, "y": 840, "wires": [ [ "65ce1d39.5bd204" ] ] }, { "id": "d779b75b.7f5c5", "type": "change", "z": "5d29b44a.2f258c", "name": "time.day", "rules": [ { "t": "set", "p": "time.day", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 990, "y": 760, "wires": [ [ "2183d8d6.0a62a8" ] ] }, { "id": "ebcb4b37.b5e08", "type": "change", "z": "5d29b44a.2f258c", "name": "time.hour", "rules": [ { "t": "set", "p": "time.hour", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 990, "y": 800, "wires": [ [] ] }, { "id": "d1e3b70e.6b2ca", "type": "change", "z": "5d29b44a.2f258c", "name": "time.minute", "rules": [ { "t": "set", "p": "time.minute", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1000, "y": 840, "wires": [ [] ] }, { "id": "fe03a486.5af06", "type": "change", "z": "5d29b44a.2f258c", "name": "Move payload.time", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"day\" : $flowContext(\"time.day\"),\t\"hour\" : $flowContext(\"time.hour\"),\t\"minute\" : $flowContext(\"time.minute\")\t}", "tot": "jsonata" }, { "t": "move", "p": "payload", "pt": "msg", "to": "payload.time", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1360, "y": 760, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "2183d8d6.0a62a8", "type": "delay", "z": "5d29b44a.2f258c", "name": "", "pauseType": "delay", "timeout": "1", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1150, "y": 760, "wires": [ [ "fe03a486.5af06" ] ] }, { "id": "dbcdc66e.ae25a8", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 780, "y": 760, "wires": [ [ "d779b75b.7f5c5" ] ] }, { "id": "d76bfef5.48305", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 780, "y": 800, "wires": [ [ "ebcb4b37.b5e08" ] ] }, { "id": "65ce1d39.5bd204", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 780, "y": 840, "wires": [ [ "d1e3b70e.6b2ca" ] ] }, { "id": "43423dae.958cc4", "type": "change", "z": "5d29b44a.2f258c", "name": "holdUpstairsSet", "rules": [ { "t": "set", "p": "holdUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{ \t\"hold\" : $flowContext(\"holdUpstairsSet\") \t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1360, "y": 1800, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "39a81289.b7eaee", "type": "inject", "z": "5d29b44a.2f258c", "name": "Disable", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1840, "wires": [ [ "4ec28bd7.cc0bdc" ] ] }, { "id": "248fa541.40e242", "type": "inject", "z": "5d29b44a.2f258c", "name": "Enable", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1880, "wires": [ [ "4ec28bd7.cc0bdc" ] ] }, { "id": "6288675b.639268", "type": "change", "z": "5d29b44a.2f258c", "name": "Set Both", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "t_coolUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "flow" }, { "t": "set", "p": "t_heatUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "flow" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_cool\" : $flowContext(\"t_coolUpstairsSet\"),\t\"t_heat\" : $flowContext(\"t_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1460, "y": 2700, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "d11f1b70.c8ae8", "type": "change", "z": "5d29b44a.2f258c", "name": "t_heatUpstairsSet", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "msg" }, { "t": "set", "p": "t_heatUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_heat\" : $flowContext(\"t_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1490, "y": 2620, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "1a546a83.20f5fd", "type": "switch", "z": "5d29b44a.2f258c", "name": "if tmodeUpstairsSet", "property": "tmodeUpstairsSet", "propertyType": "flow", "rules": [ { "t": "eq", "v": "0", "vt": "str" }, { "t": "eq", "v": "1", "vt": "str" }, { "t": "eq", "v": "2", "vt": "str" }, { "t": "eq", "v": "3", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 1230, "y": 2640, "wires": [ [], [ "d11f1b70.c8ae8" ], [ "7069cab8.aa0aa4" ], [ "6288675b.639268" ] ] }, { "id": "7069cab8.aa0aa4", "type": "change", "z": "5d29b44a.2f258c", "name": "t_coolUpstairsSet", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "t_coolUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_cool\" : $flowContext(\"t_coolUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1490, "y": 2660, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "ac8ef2c4.e323b8", "type": "switch", "z": "5d29b44a.2f258c", "name": "if tmodeUpstairsSet", "property": "tmodeUpstairsSet", "propertyType": "flow", "rules": [ { "t": "eq", "v": "0", "vt": "str" }, { "t": "eq", "v": "1", "vt": "str" }, { "t": "eq", "v": "2", "vt": "str" }, { "t": "eq", "v": "3", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 1230, "y": 2500, "wires": [ [], [ "884ab633.31d1b8" ], [ "8ed47afd.8425" ], [ "838744e7.622c1" ] ] }, { "id": "838744e7.622c1", "type": "change", "z": "5d29b44a.2f258c", "name": "Set Both", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_cool\" : $flowContext(\"t_coolUpstairsSet\"),\t\"t_heat\" : $flowContext(\"t_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1460, "y": 2560, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "884ab633.31d1b8", "type": "change", "z": "5d29b44a.2f258c", "name": "t_heatUpstairsSet", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_heat\" : $flowContext(\"t_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1490, "y": 2480, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "8ed47afd.8425", "type": "change", "z": "5d29b44a.2f258c", "name": "t_coolUpstairsSet", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"t_cool\" : $flowContext(\"t_coolUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1490, "y": 2520, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "363b26de.a96cba", "type": "change", "z": "5d29b44a.2f258c", "name": "Auto Set", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_cool\" : $flowContext(\"a_coolUpstairsSet\"),\t\"a_heat\" : $flowContext(\"a_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 1020, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "1039120.a5e346e", "type": "change", "z": "5d29b44a.2f258c", "name": "Heat Set", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_heat\" : $flowContext(\"a_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 940, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "61827638.690c38", "type": "change", "z": "5d29b44a.2f258c", "name": "Cool Set", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_cool\" : $flowContext(\"a_coolUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 980, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "ef435ed9.5d98c", "type": "switch", "z": "5d29b44a.2f258c", "name": "if tmodeUpstairsSet", "property": "tmodeUpstairsSet", "propertyType": "flow", "rules": [ { "t": "eq", "v": "0", "vt": "str" }, { "t": "eq", "v": "1", "vt": "str" }, { "t": "eq", "v": "2", "vt": "str" }, { "t": "eq", "v": "3", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 1070, "y": 960, "wires": [ [ "43f6c207.42de04" ], [ "1039120.a5e346e" ], [ "61827638.690c38" ], [ "363b26de.a96cba" ] ] }, { "id": "938afc4a.1d8f4", "type": "comment", "z": "5d29b44a.2f258c", "name": "These Nodes Set Absolute Temperature", "info": "", "x": 1210, "y": 1480, "wires": [] }, { "id": "ae77405d.091f8", "type": "comment", "z": "5d29b44a.2f258c", "name": "These Nodes Set Temporary Temperature", "info": "", "x": 1350, "y": 2400, "wires": [] }, { "id": "8e1911f9.3ab25", "type": "comment", "z": "5d29b44a.2f258c", "name": "Assumed to be used if have a program running", "info": "", "x": 1360, "y": 2440, "wires": [] }, { "id": "ce70439d.22f11", "type": "link in", "z": "5d29b44a.2f258c", "name": "MQTT Upstairs Slave In ", "links": [ "f79c13fd.e759c" ], "x": 75, "y": 420, "wires": [ [ "1851dfab.0cf3e", "e9db94eb.93bf4", "40b64f42.1ee21", "88248053.611fa8", "56a9f723.1fa8c", "b7ca381c.ee279", "959ef993.ae1bf", "430ec14d.ce43b", "e9e7c846.5b9d58", "e1f38b10.239f18" ] ] }, { "id": "ebb0f3f3.4c093", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 1, "width": 0, "height": 0, "name": "Room Temperature", "label": "Room Temperature", "format": "{{msg.payload}}", "layout": "col-center", "x": 1620, "y": 40, "wires": [] }, { "id": "1851dfab.0cf3e", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetMode", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetMode", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 350, "y": 900, "wires": [ [ "d255bdba.ef6f58" ] ] }, { "id": "e9db94eb.93bf4", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetTemp", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetTemp", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 330, "y": 1580, "wires": [ [ "eb481f5.ea4086" ] ] }, { "id": "43f6c207.42de04", "type": "change", "z": "5d29b44a.2f258c", "name": "Mode Off", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 900, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "40b64f42.1ee21", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetHold", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetHold", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 350, "y": 1800, "wires": [ [ "4ec28bd7.cc0bdc" ] ] }, { "id": "88248053.611fa8", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetFan", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetFan", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 360, "y": 1940, "wires": [ [ "24d848db.6fdaa" ] ] }, { "id": "f98bc64f.c0a2a8", "type": "inject", "z": "5d29b44a.2f258c", "name": "Auto", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1980, "wires": [ [ "24d848db.6fdaa" ] ] }, { "id": "c791e2af.24169", "type": "inject", "z": "5d29b44a.2f258c", "name": "Circulate", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 380, "y": 2020, "wires": [ [ "24d848db.6fdaa" ] ] }, { "id": "b5c942b6.b8af5", "type": "inject", "z": "5d29b44a.2f258c", "name": "On", "topic": "", "payload": "2", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 2060, "wires": [ [ "24d848db.6fdaa" ] ] }, { "id": "b800d75f.5d31", "type": "change", "z": "5d29b44a.2f258c", "name": "fmodeUpstairsSet", "rules": [ { "t": "set", "p": "fmodeUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{ \"fmode\" : $flowContext(\"fmodeUpstairsSet\") }", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1370, "y": 1940, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "56a9f723.1fa8c", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetAbsolute", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetAbsolute", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 340, "y": 2120, "wires": [ [ "e4cddeec.05d9b8" ] ] }, { "id": "45015a13.813cc4", "type": "change", "z": "5d29b44a.2f258c", "name": "a_modeUpstairsSet", "rules": [ { "t": "set", "p": "a_modeUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{ \"a_mode\" : $flowContext(\"a_modeUpstairsSet\") }", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1370, "y": 2120, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "8820b222.20f9", "type": "inject", "z": "5d29b44a.2f258c", "name": "Disable", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 2160, "wires": [ [ "e4cddeec.05d9b8" ] ] }, { "id": "9d1c8d4b.661548", "type": "inject", "z": "5d29b44a.2f258c", "name": "Enable", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 2200, "wires": [ [ "e4cddeec.05d9b8" ] ] }, { "id": "75dc4704.35bce", "type": "inject", "z": "5d29b44a.2f258c", "name": "Program A", "topic": "", "payload": "0", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 380, "y": 2300, "wires": [ [ "4cf0791e.245b4" ] ] }, { "id": "a544daf4.350088", "type": "inject", "z": "5d29b44a.2f258c", "name": "Program B", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 378, "y": 2344, "wires": [ [ "4cf0791e.245b4" ] ] }, { "id": "b0944223.cd47f", "type": "inject", "z": "5d29b44a.2f258c", "name": "Vacation", "topic": "", "payload": "2", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 378, "y": 2384, "wires": [ [ "4cf0791e.245b4" ] ] }, { "id": "764e335c.77285c", "type": "inject", "z": "5d29b44a.2f258c", "name": "Holiday", "topic": "", "payload": "3", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 380, "y": 2420, "wires": [ [ "4cf0791e.245b4" ] ] }, { "id": "b7ca381c.ee279", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetProgMode", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetProgMode", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 360, "y": 2260, "wires": [ [ "4cf0791e.245b4" ] ] }, { "id": "1ea9ec02.fda5fc", "type": "change", "z": "5d29b44a.2f258c", "name": "program_modeUpstairsSet", "rules": [ { "t": "set", "p": "program_modeUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{ \"program_mode\" : $flowContext(\"program_modeUpstairsSet\") }", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1400, "y": 2260, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "81720c86.5cbde", "type": "function", "z": "5d29b44a.2f258c", "name": "HH:mm", "func": "var Hour = flow.get(\"timehourUpstairs\");\nvar Minute = flow.get(\"timeminuteUpstairs\");\nmsg.payload = Hour + \":\" + Minute;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1330, "y": 360, "wires": [ [ "9b69c2a0.69dcb8" ] ] }, { "id": "e30792d8.634fe", "type": "delay", "z": "5d29b44a.2f258c", "name": "", "pauseType": "delay", "timeout": "1", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1180, "y": 360, "wires": [ [ "81720c86.5cbde" ] ] }, { "id": "9b69c2a0.69dcb8", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 4, "width": 0, "height": 0, "name": "Time", "label": "Time", "format": "{{msg.payload}}", "layout": "col-center", "x": 1580, "y": 360, "wires": [] }, { "id": "4b01f18c.87ed5", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Lock", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/lock", "tls": "", "x": 580, "y": 2580, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "c972a5a5.46eb6", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Simple Mode", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/simple_mode", "tls": "", "x": 600, "y": 2620, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "47ac48f0.d5e99", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Save Energy", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/save_energy", "tls": "", "x": 600, "y": 2660, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "4b7ca5e3.d9b46c", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Temperature Swing", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/tswing", "tls": "", "x": 620, "y": 2700, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "2973c88b.6a4e88", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Nightlight", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/night_light", "tls": "", "x": 590, "y": 2740, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "897c57c5.c175e8", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Temp Diffrential Cool", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/cool", "tls": "", "x": 630, "y": 2780, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "29f8523d.409e36", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Stage Delay", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/stage_delay", "tls": "", "x": 610, "y": 2860, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "7be586f1.0e4798", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Thermostat Humidity", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/humidity", "tls": "", "x": 630, "y": 2900, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "27800432.464e44", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Temp Diffrential Heat", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/heat", "tls": "", "x": 630, "y": 2820, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "9054a80c.04a748", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Air Baffle", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/air_baffle", "tls": "", "x": 600, "y": 2940, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "fa073ed0.d1888", "type": "http request", "z": "5d29b44a.2f258c", "name": "Get Temp Diffrential Cool", "method": "GET", "ret": "obj", "url": "http://192.168.7.240/tstat/cool", "tls": "", "x": 630, "y": 2980, "wires": [ [ "3b723ea3.a8446a" ] ] }, { "id": "8eb52b5a.81d9d8", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2580, "wires": [ [ "4b01f18c.87ed5" ] ] }, { "id": "5c05d53e.8c0084", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2620, "wires": [ [ "c972a5a5.46eb6" ] ] }, { "id": "9bcca3aa.222fd", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2660, "wires": [ [ "47ac48f0.d5e99" ] ] }, { "id": "e1d6585f.cd8c38", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2700, "wires": [ [ "4b7ca5e3.d9b46c" ] ] }, { "id": "219b21.aa1a9ce", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2740, "wires": [ [ "2973c88b.6a4e88" ] ] }, { "id": "a9975f50.1af1c", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2780, "wires": [ [ "897c57c5.c175e8" ] ] }, { "id": "1a19e5b9.b2eb2a", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2820, "wires": [ [ "27800432.464e44" ] ] }, { "id": "18b5f808.b8e2d", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2860, "wires": [ [ "29f8523d.409e36" ] ] }, { "id": "548f4947.7a5cc", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2900, "wires": [ [ "7be586f1.0e4798" ] ] }, { "id": "3f50a973.5878ee", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2940, "wires": [ [ "9054a80c.04a748" ] ] }, { "id": "c7ccb0b5.6523", "type": "inject", "z": "5d29b44a.2f258c", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 140, "y": 2980, "wires": [ [ "fa073ed0.d1888" ] ] }, { "id": "3b723ea3.a8446a", "type": "debug", "z": "5d29b44a.2f258c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 990, "y": 2740, "wires": [] }, { "id": "cc1635c0.2571b", "type": "comment", "z": "5d29b44a.2f258c", "name": "Unused", "info": "", "x": 250, "y": 2540, "wires": [] }, { "id": "520c4d9d.a7c1b4", "type": "change", "z": "5d29b44a.2f258c", "name": "program_modeUpstairs", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.program_mode", "tot": "msg" }, { "t": "set", "p": "program_modeUpstairs", "pt": "flow", "to": "payload.program_mode", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 990, "y": 440, "wires": [ [ "6e4f3e09.d476c8", "ae950546.05a2d8" ] ] }, { "id": "f10bc21d.dccec", "type": "ui_text", "z": "5d29b44a.2f258c", "group": "a33771a9.deb128", "order": 4, "width": 0, "height": 0, "name": "Program Mode", "label": "Program Mode", "format": "{{msg.payload}}", "layout": "col-center", "x": 1600, "y": 440, "wires": [] }, { "id": "6e4f3e09.d476c8", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "num", "to": "Program A", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "num", "to": "Program B", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "2", "fromt": "num", "to": "Vacation", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "3", "fromt": "num", "to": "Holiday", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 440, "wires": [ [ "f10bc21d.dccec" ] ] }, { "id": "959ef993.ae1bf", "type": "switch", "z": "5d29b44a.2f258c", "name": "OpenWeather/temp", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "OpenWeather/temp", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 610, "y": 640, "wires": [ [ "bb2789d5.60cfe8" ] ] }, { "id": "4a334112.29d65", "type": "link out", "z": "5d29b44a.2f258c", "name": "MQTT Upstairs Slave out ", "links": [ "1aa73862.ba6e58" ], "x": 2275, "y": 320, "wires": [] }, { "id": "379eb8a7.4af9d8", "type": "comment", "z": "5d29b44a.2f258c", "name": "To MQTT Broker", "info": "", "x": 2310, "y": 280, "wires": [] }, { "id": "debb9eae.5e704", "type": "comment", "z": "5d29b44a.2f258c", "name": "From MQTT Broker", "info": "", "x": 110, "y": 380, "wires": [] }, { "id": "3c2a00a4.83cf78", "type": "comment", "z": "5d29b44a.2f258c", "name": "Messaging Area Show Outside Temp", "info": "", "x": 910, "y": 600, "wires": [] }, { "id": "430ec14d.ce43b", "type": "debug", "z": "5d29b44a.2f258c", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 230, "y": 420, "wires": [] }, { "id": "d255bdba.ef6f58", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 940, "wires": [ [ "6813550a.0520a4" ] ] }, { "id": "eb481f5.ea4086", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 1620, "wires": [ [ "a19130cf.6c1df" ] ] }, { "id": "8b2d150c.0293d8", "type": "change", "z": "5d29b44a.2f258c", "name": "Auto Set", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "a_coolUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "flow" }, { "t": "set", "p": "a_heatUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "flow" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_cool\" : $flowContext(\"a_coolUpstairsSet\"),\t\"a_heat\" : $flowContext(\"a_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 1680, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "7d188765.dcf3c8", "type": "change", "z": "5d29b44a.2f258c", "name": "Heat Set", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "tempUpstairsSet", "tot": "msg" }, { "t": "set", "p": "a_heatUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_heat\" : $flowContext(\"a_heatUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 1600, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "7c843071.ab9b6", "type": "change", "z": "5d29b44a.2f258c", "name": "Cool Set", "rules": [ { "t": "set", "p": "tempUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "a_coolUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\"),\t\"a_cool\" : $flowContext(\"a_coolUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 1640, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "a19130cf.6c1df", "type": "switch", "z": "5d29b44a.2f258c", "name": "if tmodeUpstairsSet", "property": "tmodeUpstairsSet", "propertyType": "flow", "rules": [ { "t": "eq", "v": "0", "vt": "str" }, { "t": "eq", "v": "1", "vt": "str" }, { "t": "eq", "v": "2", "vt": "str" }, { "t": "eq", "v": "3", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 1070, "y": 1620, "wires": [ [ "3aa1c3ac.c7541c" ], [ "7d188765.dcf3c8" ], [ "7c843071.ab9b6" ], [ "8b2d150c.0293d8" ] ] }, { "id": "3aa1c3ac.c7541c", "type": "change", "z": "5d29b44a.2f258c", "name": "Mode Off", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"tmode\" : $flowContext(\"tmodeUpstairsSet\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1340, "y": 1560, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "c31ad2c5.9896", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Temp", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Temp", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2000, "y": 60, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "ac59dceb.12e9a8", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Mode", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Mode", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2000, "y": 100, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "67ea081d.d174b", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Fmode", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Fmode", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2000, "y": 140, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "f9255d2e.eb5888", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Overrride", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Overrride", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2010, "y": 180, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "f06ba179.d7ffa8", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Hold", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Hold", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 220, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "51249148.26711", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Tstate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Tstate", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2000, "y": 260, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "278ea451.26e8cc", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/Fstate", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/Fstate", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2000, "y": 300, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "ae950546.05a2d8", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/ProgMode", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/ProgMode", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 460, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "ee59d49f.9e505", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SysName", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/SysName", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 500, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "94e8a171.6648a8", "type": "change", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SysRSSI", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "HVAC/Upstairs/SysRSSI", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1990, "y": 540, "wires": [ [ "4a334112.29d65" ] ] }, { "id": "ac33081a.2020e8", "type": "change", "z": "5d29b44a.2f258c", "name": "", "rules": [ { "t": "set", "p": "tmodeUpstairsSet", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2310, "y": 100, "wires": [ [] ] }, { "id": "4ec28bd7.cc0bdc", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1070, "y": 1800, "wires": [ [ "43423dae.958cc4" ] ] }, { "id": "24d848db.6fdaa", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1070, "y": 1940, "wires": [ [ "b800d75f.5d31" ] ] }, { "id": "e4cddeec.05d9b8", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1070, "y": 2120, "wires": [ [ "45015a13.813cc4" ] ] }, { "id": "4cf0791e.245b4", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1070, "y": 2260, "wires": [ [ "1ea9ec02.fda5fc" ] ] }, { "id": "3a2e22fd.1a24b6", "type": "http request", "z": "5d29b44a.2f258c", "name": "Post Upstaris Tstat", "method": "POST", "ret": "obj", "url": "http://192.168.7.240/tstat", "tls": "", "x": 1750, "y": 880, "wires": [ [] ] }, { "id": "956139a7.61a82", "type": "debug", "z": "5d29b44a.2f258c", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 590, "y": 360, "wires": [] }, { "id": "545ea3c.1bad6dc", "type": "inject", "z": "5d29b44a.2f258c", "name": "68", "topic": "", "payload": "68", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1160, "wires": [ [ "fdec6c5e.31b55" ] ] }, { "id": "afdf8550.313008", "type": "inject", "z": "5d29b44a.2f258c", "name": "72", "topic": "", "payload": "72", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1200, "wires": [ [ "fdec6c5e.31b55" ] ] }, { "id": "b51eae9.231f55", "type": "inject", "z": "5d29b44a.2f258c", "name": "75", "topic": "", "payload": "75", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1240, "wires": [ [ "fdec6c5e.31b55" ] ] }, { "id": "a4360eef.4feb88", "type": "inject", "z": "5d29b44a.2f258c", "name": "80", "topic": "", "payload": "80", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1280, "wires": [ [ "fdec6c5e.31b55" ] ] }, { "id": "e9e7c846.5b9d58", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetACool", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetACool", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 330, "y": 1120, "wires": [ [ "fdec6c5e.31b55" ] ] }, { "id": "fdec6c5e.31b55", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 1120, "wires": [ [ "1e1f2dc2.8f795a" ] ] }, { "id": "1e1f2dc2.8f795a", "type": "change", "z": "5d29b44a.2f258c", "name": "UpstairsSetACool", "rules": [ { "t": "set", "p": "UpstairsSetACool", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"a_cool\" : $flowContext(\"UpstairsSetACool\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1310, "y": 1120, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "dd0119e2.b86138", "type": "inject", "z": "5d29b44a.2f258c", "name": "68", "topic": "", "payload": "68", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1380, "wires": [ [ "3f9ee3af.1a22ac" ] ] }, { "id": "530c61b9.15ab", "type": "inject", "z": "5d29b44a.2f258c", "name": "72", "topic": "", "payload": "72", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1420, "wires": [ [ "3f9ee3af.1a22ac" ] ] }, { "id": "68234f1a.055ec", "type": "inject", "z": "5d29b44a.2f258c", "name": "75", "topic": "", "payload": "75", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1460, "wires": [ [ "3f9ee3af.1a22ac" ] ] }, { "id": "c7183a47.39d62", "type": "inject", "z": "5d29b44a.2f258c", "name": "80", "topic": "", "payload": "80", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 390, "y": 1500, "wires": [ [ "3f9ee3af.1a22ac" ] ] }, { "id": "e1f38b10.239f18", "type": "switch", "z": "5d29b44a.2f258c", "name": "HVAC/Upstairs/SetAHeat", "property": "topic", "propertyType": "msg", "rules": [ { "t": "eq", "v": "HVAC/Upstairs/SetAHeat", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 330, "y": 1340, "wires": [ [ "3f9ee3af.1a22ac" ] ] }, { "id": "3f9ee3af.1a22ac", "type": "function", "z": "5d29b44a.2f258c", "name": "Convert to Number", "func": "msg.payload = parseInt(msg.payload)\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 1340, "wires": [ [ "d3e2dc26.0978a8" ] ] }, { "id": "d3e2dc26.0978a8", "type": "change", "z": "5d29b44a.2f258c", "name": "UpstairsSetAHeat", "rules": [ { "t": "set", "p": "UpstairsSetAHeat", "pt": "flow", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "{\t\"a_cool\" : $flowContext(\"UpstairsSetAHeat\")\t}", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1310, "y": 1340, "wires": [ [ "3a2e22fd.1a24b6" ] ] }, { "id": "a33771a9.deb128", "type": "ui_group", "z": "", "name": "Upstairs", "tab": "d5f5f0e3.aae5c", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "d5f5f0e3.aae5c", "type": "ui_tab", "z": "", "name": "CT-50 HVAC", "icon": "dashboard", "order": 5, "disabled": false, "hidden": false } ]