forked from coolchip/node-red-contrib-luxtronik2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (155 loc) · 7.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<script type="text/x-red" data-template-name="luxtronik2 read">
<div class="form-row">
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
<input type="text" id="node-input-host" placeholder="127.0.0.1">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-server"></i> Port</label>
<input type="text" id="node-input-port" placeholder="8888">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="luxtronik2 read">
<p>Reads heat pumps based on the Luxtronik 2.0 contol unit.</p>
<p>Connect your unit via LAN and configure the IP address parameters at your unit.</p>
<p>Every incoming message to the Luxtronik2 node you get a message with all readable values from the heat pump.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType("luxtronik2 read", {
category: "input",
defaults: {
name: {name: ""},
host: {required: true},
port: {value: "8888"}
},
color: "BurlyWood",
inputs: 1,
outputs: 1,
icon: "db.png",
paletteLabel: "luxtronik2",
label: function() {
return this.name || "luxtronik2";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
}
});
</script>
<script type="text/x-red" data-template-name="luxtronik2 write">
<div class="form-row">
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
<input type="text" id="node-input-host" placeholder="127.0.0.1">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-server"></i> Port</label>
<input type="text" id="node-input-port" placeholder="8888">
</div>
<div class="form-row">
<label for="node-input-parameter"><i class="fa fa-fish"></i> Parameter</label>
<select type="text" id="node-input-parameter">
<option value=""></option>
<option value="heating_target_temperature">Heating target temperature (1)</option>
<option value="warmwater_target_temperature">Warmwater target temperature (2)</option>
<option value="heating_operation_mode">Heating operation mode (3)</option>
<option value="warmwater_operation_mode">Warmwater operation mode (4)</option>
<option value="heating_curve_end_point">Heatingcurve endpoint (11)</option>
<option value="heating_curve_parallel_offset">Heatingcurve parallel offset (12)</option>
<option value="deltaHeatingReduction">Delta Heating reduction (13)</option>
<option value="mk1_curve_end_point">MK1 curve endpoint (14)</option>
<option value="mk1_curve_parallel_offset">MK1 curve parallel offset (15)</option>
<option value="deltaMk1Reduction">MK1 curve Heating reduction (16)</option>
<option value="hotwater_temperature_hysteresis">Hotwater temperature hysteresis (74)</option>
<option value="return_temperature_hysteresis">Return temperature hysteresis (88)</option>
<option value="heating_temperature_outside_2nd_compressor">Heating temperature outside 2nd compressor (95)</option>
<option value="hotwater_temperature_forerun_2nd_compressor">Hot water temperature forerun 2nd compressor (96)</option>
<option value="temperature_hot_water_target">Hot water target temperature (105)</option>
<option value="cooling_operation_mode">Cooling operation mode (108)</option>
<option value="cooling_release_temp">Cooling release temperature (110)</option>
<option value="cooling_inlet_temp">Cooling inlet temperature (132)</option>
<option value="runDeaerate">run Dearate (158)</option>
<option value="hotWaterCircPumpDeaerate">Hot water circulation pump Dearate (684)</option>
<option value="solarPumpDeaerate">Solar pump Dearate (688)</option>
<option value="cooling_start">Cooling start (850)</option>
<option value="cooling_stop">Cooling stop (851)</option>
<option value="heating_system_circ_pump_voltage_nominal">Heating System circulation pump voltage nominal (867)</option>
<option value="heating_system_circ_pump_voltage_minimal">Heating System circulation pump voltage minimal (868)</option>
</select>
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips">Tip: Leave parameter blank if you want to set them via msg.parameter.</div>
</script>
<script type="text/x-red" data-help-name="luxtronik2 write">
<p>Controls heat pumps based on the Luxtronik 2.0 contol unit.</p>
<p>Connect your unit via LAN and configure the IP address parameters at your unit.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">string | number</span></dt>
<dd> setvalue as number or string</dd>
<dt class="optional">parameter <span class="property-type">string</span></dt>
<dd> set parameter in config or leave it empty and set it via msg.parameter.
<ul>
<li>'heating_target_temperature'</li>
<li>'warmwater_target_temperature'</li>
<li>'heating_operation_mode'</li>
<li>'warmwater_operation_mode'</li>
<li>'heating_curve_end_point'</li>
<li>'heating_curve_parallel_offset'</li>
<li>'deltaHeatingReduction'</li>
<li>'mk1_curve_end_point'</li>
<li>'mk1_curve_parallel_offset'</li>
<li>'deltaMk1Reduction'</li>
<li>'hotwater_temperature_hysteresis'</li>
<li>'return_temperature_hysteresis'</li>
<li>'heating_temperature_outside_2nd_compressor'</li>
<li>'hotwater_temperature_forerun_2nd_compressor'</li>
<li>'temperature_hot_water_target'</li>
<li>'cooling_operation_mode'</li>
<li>'cooling_release_temp'</li>
<li>'cooling_inlet_temp'</li>
<li>'runDeaerate'</li>
<li>'hotWaterCircPumpDeaerate'</li>
<li>'solarPumpDeaerate'</li>
<li>'cooling_start'</li>
<li>'cooling_stop'</li>
<li>'heating_system_circ_pump_voltage_nominal'</li>
<li>'heating_system_circ_pump_voltage_minimal'</li>
</ul>
</dd>
<dt class="optional">raw_parameter <span class="property-type">number</span></dt>
<dd> Use RAW write operation to heat pump by passing the heat pump parameter directly as number
via <code>msg.raw_parameter</code>.
The config option 'parameter' or <code>msg.parameter</code> is ignored in this case.
The RAW parameter value must be provided via <code>msg.payload</code>.
Attention: No automatic parameter format conversions are done in this mode.
</dd>
</dl>
</script>
<script type="text/javascript">
RED.nodes.registerType("luxtronik2 write", {
category: "output",
defaults: {
name: {name: ""},
host: {required: true},
port: {value: "8888"},
parameter: {value: ""}
},
color:"BurlyWood",
inputs: 1,
outputs: 1,
icon: "db.png",
align: "right",
paletteLabel: "luxtronik2",
label: function() {
return this.name || "luxtronik2";
},
labelStyle: function() {
return this.name ? "node_label_italic" : "";
}
});
</script>