|
5871 | 5871 | "name": "", |
5872 | 5872 | "label": "Third Air Conditioner Zone", |
5873 | 5873 | "group": "dd373808.7ec1d8", |
5874 | | - "order": 8, |
| 5874 | + "order": 9, |
5875 | 5875 | "width": 0, |
5876 | 5876 | "height": 0, |
5877 | 5877 | "passthru": true, |
|
5991 | 5991 | "name": "", |
5992 | 5992 | "label": "Second Furnace Zone", |
5993 | 5993 | "group": "dd373808.7ec1d8", |
5994 | | - "order": 9, |
| 5994 | + "order": 10, |
5995 | 5995 | "width": 0, |
5996 | 5996 | "height": 0, |
5997 | 5997 | "passthru": true, |
|
6175 | 6175 | "type": "function", |
6176 | 6176 | "z": "f6c367c2.63b9b8", |
6177 | 6177 | "name": "Set TV Lift", |
6178 | | - "func": "// Populate the \"TV Lift\" toggle based on the chosen model.\n\nvar tvlift = ['37_BH', '40_IH', '44_OH', '45_MP', '45_OPP', '45_PZ'];\nvar msg = { topic: '', payload: '' };\n\nmsg.payload = tvlift.includes(flow.get('floorplan'));\n\nreturn msg;", |
| 6178 | + "func": "// Populate the \"TV Lift\" toggle based on the chosen model.\n\nvar tvlift = ['37_BH', '40_IH', '44_OH', '45_MP', '45_OPP', '45_PZ', '385_RD', '42_RDB'];\nvar msg = { topic: '', payload: '' };\n\nmsg.payload = tvlift.includes(flow.get('floorplan'));\n\nreturn msg;", |
6179 | 6179 | "outputs": 1, |
6180 | 6180 | "noerr": 0, |
6181 | 6181 | "x": 510, |
|
6664 | 6664 | "type": "function", |
6665 | 6665 | "z": "f6c367c2.63b9b8", |
6666 | 6666 | "name": "Save to Database", |
6667 | | - "func": "// Save the global config settings to the database\n\nvar msgs = []; // An array of database query messages\n\nfor (var item of ['year', 'model', 'floorplan', 'aquahot', 'floorheat', 'ceilfan', 'tvlift', 'thirdtstat', 'secondfurnace', 'midheat', 'rearheat', 'busundercoach', 'powerbed', 'shades_interior']) {\n var newmsg = {};\n newmsg.topic = 'INSERT OR REPLACE INTO configs (key, value) VALUES(?, ?)';\n newmsg.payload = [item, String(flow.get(item))];\n msgs.push(newmsg);\n}\n\nreturn [msgs, {payload: 'Saving changes...'}];", |
| 6667 | + "func": "// Save the global config settings to the database\n\nvar msgs = []; // An array of database query messages\n\nfor (var item of ['year', 'model', 'floorplan', 'aquahot', 'floorheat', 'ceilfan', 'tvlift', 'thirdtstat', 'secondfurnace', 'frontheat', 'midheat', 'rearheat', 'busundercoach', 'powerbed', 'shades_interior']) {\n var newmsg = {};\n newmsg.topic = 'INSERT OR REPLACE INTO configs (key, value) VALUES(?, ?)';\n newmsg.payload = [item, String(flow.get(item))];\n msgs.push(newmsg);\n}\n\nreturn [msgs, {payload: 'Saving changes...'}];", |
6668 | 6668 | "outputs": 2, |
6669 | 6669 | "noerr": 0, |
6670 | 6670 | "x": 1070, |
|
7594 | 7594 | "name": "", |
7595 | 7595 | "label": "Mid Zone Heat Pump", |
7596 | 7596 | "group": "dd373808.7ec1d8", |
7597 | | - "order": 10, |
| 7597 | + "order": 12, |
7598 | 7598 | "width": 0, |
7599 | 7599 | "height": 0, |
7600 | 7600 | "passthru": true, |
|
7624 | 7624 | "name": "", |
7625 | 7625 | "label": "Rear Zone Heat Pump", |
7626 | 7626 | "group": "dd373808.7ec1d8", |
7627 | | - "order": 11, |
| 7627 | + "order": 13, |
7628 | 7628 | "width": 0, |
7629 | 7629 | "height": 0, |
7630 | 7630 | "passthru": true, |
|
7701 | 7701 | ] |
7702 | 7702 | ] |
7703 | 7703 | }, |
| 7704 | + { |
| 7705 | + "id": "d5161853.26c588", |
| 7706 | + "type": "change", |
| 7707 | + "z": "f6c367c2.63b9b8", |
| 7708 | + "name": "Set Saved Front Heat Pump", |
| 7709 | + "rules": [ |
| 7710 | + { |
| 7711 | + "t": "set", |
| 7712 | + "p": "payload", |
| 7713 | + "pt": "msg", |
| 7714 | + "to": "payload.frontheat = 'true'", |
| 7715 | + "tot": "jsonata" |
| 7716 | + } |
| 7717 | + ], |
| 7718 | + "action": "", |
| 7719 | + "property": "", |
| 7720 | + "from": "", |
| 7721 | + "to": "", |
| 7722 | + "reg": false, |
| 7723 | + "x": 460, |
| 7724 | + "y": 1120, |
| 7725 | + "wires": [ |
| 7726 | + [ |
| 7727 | + "5788c0d8.42cb8" |
| 7728 | + ] |
| 7729 | + ] |
| 7730 | + }, |
| 7731 | + { |
| 7732 | + "id": "e953ecbb.7cb86", |
| 7733 | + "type": "function", |
| 7734 | + "z": "f6c367c2.63b9b8", |
| 7735 | + "name": "Set Front Heat Pump", |
| 7736 | + "func": "var front_hp = ['Phaeton', 'Allegro_Bus', 'Zephyr', 'VanLeigh_Vilano', 'VanLeigh_Beacon'];\nvar msg = { topic: '', payload: '', enabled: true };\n\nif (flow.get('model')) {\n if (front_hp.includes(flow.get('model'))) {\n msg.payload = true;\n }\n}\n\nif (flow.get('year') < 2018 && flow.get('model').substr(0,8) != 'VanLeigh') {\n msg.enabled = false;\n msg.payload = false;\n}\n\nreturn msg;", |
| 7737 | + "outputs": 1, |
| 7738 | + "noerr": 0, |
| 7739 | + "initialize": "", |
| 7740 | + "finalize": "", |
| 7741 | + "libs": [], |
| 7742 | + "x": 480, |
| 7743 | + "y": 1160, |
| 7744 | + "wires": [ |
| 7745 | + [ |
| 7746 | + "5788c0d8.42cb8" |
| 7747 | + ] |
| 7748 | + ] |
| 7749 | + }, |
| 7750 | + { |
| 7751 | + "id": "5788c0d8.42cb8", |
| 7752 | + "type": "ui_switch", |
| 7753 | + "z": "f6c367c2.63b9b8", |
| 7754 | + "name": "", |
| 7755 | + "label": "Front Zone Heat Pump", |
| 7756 | + "tooltip": "", |
| 7757 | + "group": "dd373808.7ec1d8", |
| 7758 | + "order": 11, |
| 7759 | + "width": 0, |
| 7760 | + "height": 0, |
| 7761 | + "passthru": true, |
| 7762 | + "decouple": "false", |
| 7763 | + "topic": "frontheat", |
| 7764 | + "topicType": "str", |
| 7765 | + "style": "", |
| 7766 | + "onvalue": "true", |
| 7767 | + "onvalueType": "bool", |
| 7768 | + "onicon": "", |
| 7769 | + "oncolor": "", |
| 7770 | + "offvalue": "false", |
| 7771 | + "offvalueType": "bool", |
| 7772 | + "officon": "", |
| 7773 | + "offcolor": "", |
| 7774 | + "animate": true, |
| 7775 | + "x": 800, |
| 7776 | + "y": 1140, |
| 7777 | + "wires": [ |
| 7778 | + [ |
| 7779 | + "4f256116.a0922" |
| 7780 | + ] |
| 7781 | + ] |
| 7782 | + }, |
7704 | 7783 | { |
7705 | 7784 | "id": "176c91be.746e3e", |
7706 | 7785 | "type": "ui_template", |
7707 | 7786 | "z": "f6c367c2.63b9b8", |
7708 | 7787 | "group": "dd373808.7ec1d8", |
7709 | 7788 | "name": "Config HVAC Header", |
7710 | | - "order": 7, |
| 7789 | + "order": 8, |
7711 | 7790 | "width": "6", |
7712 | 7791 | "height": "1", |
7713 | 7792 | "format": "<div style=\"width: 100%; height: 10px; border-bottom: 1px solid black; text-align: center\">\n <span style=\"background-color: #ffffff; padding: 0 10px;\">\n 2018+ Thermostat Controls\n </span>\n</div>\n", |
|
9666 | 9745 | "name": "", |
9667 | 9746 | "label": "Power Smart Bed", |
9668 | 9747 | "group": "dd373808.7ec1d8", |
9669 | | - "order": 6, |
| 9748 | + "order": 7, |
9670 | 9749 | "width": 0, |
9671 | 9750 | "height": 0, |
9672 | 9751 | "passthru": true, |
@@ -15506,13 +15585,36 @@ |
15506 | 15585 | ] |
15507 | 15586 | ] |
15508 | 15587 | }, |
| 15588 | + { |
| 15589 | + "id": "265eae7.dc2124", |
| 15590 | + "type": "ui_button", |
| 15591 | + "z": "5a05b8f3.894b88", |
| 15592 | + "name": "Front HPump Spacer /tstat0/heatpump0-spacer/", |
| 15593 | + "group": "10afdb4b.d8c455", |
| 15594 | + "order": 6, |
| 15595 | + "width": "2", |
| 15596 | + "height": "1", |
| 15597 | + "passthru": false, |
| 15598 | + "label": "H.PUMP", |
| 15599 | + "color": "#f8f8f8", |
| 15600 | + "bgcolor": "#f8f8f8", |
| 15601 | + "icon": "", |
| 15602 | + "payload": "heat", |
| 15603 | + "payloadType": "str", |
| 15604 | + "topic": "tstat_front", |
| 15605 | + "x": 4220, |
| 15606 | + "y": 100, |
| 15607 | + "wires": [ |
| 15608 | + [] |
| 15609 | + ] |
| 15610 | + }, |
15509 | 15611 | { |
15510 | 15612 | "id": "95d24987.d98258", |
15511 | 15613 | "type": "ui_button", |
15512 | 15614 | "z": "5a05b8f3.894b88", |
15513 | 15615 | "name": "Front Off /tstat0/", |
15514 | 15616 | "group": "10afdb4b.d8c455", |
15515 | | - "order": 11, |
| 15617 | + "order": 12, |
15516 | 15618 | "width": "2", |
15517 | 15619 | "height": "1", |
15518 | 15620 | "passthru": false, |
|
15539 | 15641 | "label": "", |
15540 | 15642 | "place": "", |
15541 | 15643 | "group": "10afdb4b.d8c455", |
15542 | | - "order": 9, |
| 15644 | + "order": 10, |
15543 | 15645 | "width": "2", |
15544 | 15646 | "height": "1", |
15545 | 15647 | "passthru": false, |
|
15746 | 15848 | "z": "5a05b8f3.894b88", |
15747 | 15849 | "name": "Front Fan High /tstat0/", |
15748 | 15850 | "group": "10afdb4b.d8c455", |
15749 | | - "order": 7, |
| 15851 | + "order": 8, |
15750 | 15852 | "width": "2", |
15751 | 15853 | "height": "1", |
15752 | 15854 | "passthru": false, |
|
15771 | 15873 | "z": "5a05b8f3.894b88", |
15772 | 15874 | "name": "Front Fan Low /tstat0/", |
15773 | 15875 | "group": "10afdb4b.d8c455", |
15774 | | - "order": 10, |
| 15876 | + "order": 11, |
15775 | 15877 | "width": "2", |
15776 | 15878 | "height": "1", |
15777 | 15879 | "passthru": false, |
|
15796 | 15898 | "z": "5a05b8f3.894b88", |
15797 | 15899 | "name": "Front Fan Auto /tstat0/", |
15798 | 15900 | "group": "10afdb4b.d8c455", |
15799 | | - "order": 13, |
| 15901 | + "order": 14, |
15800 | 15902 | "width": "2", |
15801 | 15903 | "height": "1", |
15802 | 15904 | "passthru": false, |
|
15885 | 15987 | "z": "5a05b8f3.894b88", |
15886 | 15988 | "name": "Front Furn /furn0/", |
15887 | 15989 | "group": "10afdb4b.d8c455", |
15888 | | - "order": 8, |
| 15990 | + "order": 9, |
15889 | 15991 | "width": "2", |
15890 | 15992 | "height": "1", |
15891 | 15993 | "passthru": false, |
|
15910 | 16012 | "z": "5a05b8f3.894b88", |
15911 | 16013 | "name": "Front Temp Up /tstat0/", |
15912 | 16014 | "group": "10afdb4b.d8c455", |
15913 | | - "order": 6, |
| 16015 | + "order": 7, |
15914 | 16016 | "width": "2", |
15915 | 16017 | "height": "1", |
15916 | 16018 | "passthru": false, |
|
15935 | 16037 | "z": "5a05b8f3.894b88", |
15936 | 16038 | "name": "Front Temp Down /tstat0/", |
15937 | 16039 | "group": "10afdb4b.d8c455", |
15938 | | - "order": 12, |
| 16040 | + "order": 13, |
15939 | 16041 | "width": "2", |
15940 | 16042 | "height": "1", |
15941 | 16043 | "passthru": false, |
|
15979 | 16081 | "z": "5a05b8f3.894b88", |
15980 | 16082 | "name": "Mid Cool /tstat1/", |
15981 | 16083 | "group": "10afdb4b.d8c455", |
15982 | | - "order": 15, |
| 16084 | + "order": 16, |
15983 | 16085 | "width": "2", |
15984 | 16086 | "height": "1", |
15985 | 16087 | "passthru": false, |
|
16004 | 16106 | "z": "5a05b8f3.894b88", |
16005 | 16107 | "name": "Mid HPump /tstat1/heatpump1/", |
16006 | 16108 | "group": "10afdb4b.d8c455", |
16007 | | - "order": 18, |
| 16109 | + "order": 19, |
16008 | 16110 | "width": "2", |
16009 | 16111 | "height": "1", |
16010 | 16112 | "passthru": false, |
|
16029 | 16131 | "z": "5a05b8f3.894b88", |
16030 | 16132 | "name": "Mid Fan High /tstat1/", |
16031 | 16133 | "group": "10afdb4b.d8c455", |
16032 | | - "order": 21, |
| 16134 | + "order": 22, |
16033 | 16135 | "width": "2", |
16034 | 16136 | "height": "1", |
16035 | 16137 | "passthru": false, |
|
16054 | 16156 | "z": "5a05b8f3.894b88", |
16055 | 16157 | "name": "Mid Temp Up /tstat1/", |
16056 | 16158 | "group": "10afdb4b.d8c455", |
16057 | | - "order": 20, |
| 16159 | + "order": 21, |
16058 | 16160 | "width": "2", |
16059 | 16161 | "height": "1", |
16060 | 16162 | "passthru": false, |
|
16079 | 16181 | "z": "5a05b8f3.894b88", |
16080 | 16182 | "name": "Mid Fan Low /tstat1/", |
16081 | 16183 | "group": "10afdb4b.d8c455", |
16082 | | - "order": 24, |
| 16184 | + "order": 25, |
16083 | 16185 | "width": "2", |
16084 | 16186 | "height": "1", |
16085 | 16187 | "passthru": false, |
|
16104 | 16206 | "z": "5a05b8f3.894b88", |
16105 | 16207 | "name": "Mid Off /tstat1/", |
16106 | 16208 | "group": "10afdb4b.d8c455", |
16107 | | - "order": 25, |
| 16209 | + "order": 26, |
16108 | 16210 | "width": "2", |
16109 | 16211 | "height": "1", |
16110 | 16212 | "passthru": false, |
|
16129 | 16231 | "z": "5a05b8f3.894b88", |
16130 | 16232 | "name": "Mid Temp Down /tstat1/", |
16131 | 16233 | "group": "10afdb4b.d8c455", |
16132 | | - "order": 26, |
| 16234 | + "order": 27, |
16133 | 16235 | "width": "2", |
16134 | 16236 | "height": "1", |
16135 | 16237 | "passthru": false, |
|
16154 | 16256 | "z": "5a05b8f3.894b88", |
16155 | 16257 | "name": "Mid Fan Auto /tstat1/", |
16156 | 16258 | "group": "10afdb4b.d8c455", |
16157 | | - "order": 27, |
| 16259 | + "order": 28, |
16158 | 16260 | "width": "2", |
16159 | 16261 | "height": "1", |
16160 | 16262 | "passthru": false, |
|
16181 | 16283 | "label": "", |
16182 | 16284 | "place": "", |
16183 | 16285 | "group": "10afdb4b.d8c455", |
16184 | | - "order": 23, |
| 16286 | + "order": 24, |
16185 | 16287 | "width": "2", |
16186 | 16288 | "height": "1", |
16187 | 16289 | "passthru": false, |
|
16854 | 16956 | "z": "5a05b8f3.894b88", |
16855 | 16957 | "name": "Mid Furn Spacer /tstat1/midfurn-spacer/", |
16856 | 16958 | "group": "10afdb4b.d8c455", |
16857 | | - "order": 22, |
| 16959 | + "order": 23, |
16858 | 16960 | "width": "2", |
16859 | 16961 | "height": "1", |
16860 | 16962 | "passthru": false, |
|
16908 | 17010 | "type": "ui_text", |
16909 | 17011 | "z": "5a05b8f3.894b88", |
16910 | 17012 | "group": "10afdb4b.d8c455", |
16911 | | - "order": 16, |
| 17013 | + "order": 17, |
16912 | 17014 | "width": "2", |
16913 | 17015 | "height": "1", |
16914 | 17016 | "name": "Mid Tstat Spacer /tstat1/", |
|
16924 | 17026 | "type": "ui_text", |
16925 | 17027 | "z": "5a05b8f3.894b88", |
16926 | 17028 | "group": "10afdb4b.d8c455", |
16927 | | - "order": 17, |
| 17029 | + "order": 18, |
16928 | 17030 | "width": "2", |
16929 | 17031 | "height": "1", |
16930 | 17032 | "name": "Mid Fan Label /tstat1/", |
|
17097 | 17199 | "z": "5a05b8f3.894b88", |
17098 | 17200 | "group": "10afdb4b.d8c455", |
17099 | 17201 | "name": "Thermostat Label - Mid /tstat1/", |
17100 | | - "order": 14, |
| 17202 | + "order": 15, |
17101 | 17203 | "width": "6", |
17102 | 17204 | "height": "1", |
17103 | 17205 | "format": "<div style=\"height: 8px;\"> </div>\n<div style=\"width: 100%; height: 8px; border-bottom: 1px solid black; text-align: center\">\n <span style=\"font-size: 16px; background-color: #FEFEFE; padding: 0 10px; margin-left: 10px;\">\n {{msg.payload.zone_name}}: <b>{{msg.payload.ambient_temp.toFixed(1)}}</b>° {{msg.payload.unit}}\n </span>\n</div>\n<div style=\"height: 11px;\"> </div>", |
|
17586 | 17688 | "z": "5a05b8f3.894b88", |
17587 | 17689 | "name": "Mid HPump Spacer /tstat1/heatpump1-spacer/", |
17588 | 17690 | "group": "10afdb4b.d8c455", |
17589 | | - "order": 19, |
| 17691 | + "order": 20, |
17590 | 17692 | "width": "2", |
17591 | 17693 | "height": "1", |
17592 | 17694 | "passthru": false, |
|
0 commit comments