-
Notifications
You must be signed in to change notification settings - Fork 1
/
plejd.html
89 lines (78 loc) · 2.53 KB
/
plejd.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
<script type="text/javascript">
RED.nodes.registerType('plejd',{
category: 'config',
color: '#48c5d6',
defaults: {
name: {value:""},
cryptoKey: {value:"", required:true}
}
});
</script>
<script type="text/x-red" data-template-name="plejd">
<div class="form-row">
<label for="node-config-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-config-input-cryptoKey"><i class="icon-bookmark"></i> Crypto key</label>
<input type="text" id="node-config-input-cryptoKey">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('plejd out',{
category: 'plejd',
color: '#48c5d6',
defaults: {
name: {value:""},
plejd: {type:"plejd", required:true}
},
inputs:1,
outputs:0,
icon: "bridge.png",
label: function() {
return this.name||"Plejd out";
}
});
</script>
<script type="text/x-red" data-template-name="plejd out">
<div class="form-row">
<label for="node-input-plejd"><i class="icon-bookmark"></i> Plejd connection</label>
<input type="text" id="node-input-plejd">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="plejd out">
<p>Toggle state of a Plejd device.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('plejd in',{
category: 'plejd',
color: '#48c5d6',
defaults: {
name: {value:""},
plejd: {type:"plejd", required:true}
},
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"Plejd in";
}
});
</script>
<script type="text/x-red" data-template-name="plejd in">
<div class="form-row">
<label for="node-input-plejd"><i class="icon-bookmark"></i> Plejd connection</label>
<input type="text" id="node-input-plejd">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="plejd in">
<p>Get state changes of Plejd devices.</p>
</script>