-
Notifications
You must be signed in to change notification settings - Fork 0
/
warema-webcontrol.html
56 lines (54 loc) · 2.18 KB
/
warema-webcontrol.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
<script type="text/javascript">
RED.nodes.registerType('warema-webcontrol', {
category: 'network',
color: '#a6bbcf',
defaults: {
name: { value: 'warema-webcontrol' },
url: { value: null },
position: { value: 0 },
command: { value: 'move' },
room: { value: 0 },
rollo: { value: 0 },
},
inputs: 1,
outputs: 1,
icon: 'font-awesome/fa-sun-o',
label: function () {
return this.name;
},
});
</script>
<script type="text/html" data-template-name="warema-webcontrol">
<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-row">
<label for="node-input-url"><i class="fa fa-globe"></i> URL</label>
<input type="text" id="node-input-url" placeholder="URL" />
</div>
<div class="form-row">
<label for="node-input-position"><i class="fa fa-globe"></i> Position</label>
<input type="text" id="node-input-position" placeholder="0" />
</div>
<div class="form-row">
<label for="node-input-command"><i class="fa fa-globe"></i> Command</label>
<input type="text" id="node-input-command" placeholder="Command" />
</div>
<div class="form-row">
<label for="node-input-room"><i class="fa fa-globe"></i> Room</label>
<input type="text" id="node-input-room" placeholder="0" />
</div>
<div class="form-row">
<label for="node-input-rollo"><i class="fa fa-globe"></i> Rollo</label>
<input type="text" id="node-input-rollo" placeholder="0" />
</div>
</script>
<script type="text/html" data-help-name="warema-webcontrol">
<p>Node RED extension for Warema sun shading products with Warema web control.</p>
<p>
<b>Important:</b> Please check that you heave enough high interval times between input triggers.<br />
The response times are depending on your signal strength and Warema WebControl response times!<br />
I recommend to have more than 10 seconds between each request.
</p>
</script>