-
Notifications
You must be signed in to change notification settings - Fork 5
/
eq3.html
47 lines (44 loc) · 1.41 KB
/
eq3.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
<script type="text/javascript">
RED.nodes.registerType('eq3-bluetooth',{
category: 'input',
color: '#FFFFAA',
defaults: {
eq3device: { value: '', required: true}
},
inputs: 1,
outputs: 1,
icon: 'bluetooth.png',
label: function() {
return this.eq3device || 'eq3-ble';
},
align: 'left'
});
</script>
<script type="text/x-red" data-template-name="eq3-bluetooth">
<div class="form-row">
<label for="node-input-eq3device"><i class="icon-tag"></i> Device</label>
<input id="node-input-eq3device"></input>
</div>
</script>
<script type="text/x-red" data-help-name="eq3-bluetooth">
<p> node to configure and query data from eq3-bluetooth device</p>
<p>Returns devices info after 2 seconds after each input message
<pre>{
{
"status": {
"manual": true,
"holiday": false,
"boost": false,
"dst": true,
"openWindow": false,
"lowBattery": false
},
"valvePosition": 100,
"targetTemperature": 30
}
}</pre>
</p>
<p>set msg.payload.setState to set the state of device value should ve one of 'on', 'off', 'manual' or 'auto'.</p>
<p>set msg.payload.boost to '1' to enable boost mode and '0' to desable it.</p>
<p>set msg.payload.setTemperature to adjust the target temperature, valid values are from 4.5 to 30.</p>
</script>