forked from pakerfeldt/node-red-contrib-envisalink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
envisalink-out.html
47 lines (45 loc) · 1.86 KB
/
envisalink-out.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/x-red" data-template-name="envisalink out">
<div class="form-row">
<label for="node-input-controller"><i class="fa fa-globe"></i> EnvisaLink</span></label>
<input type="text" id="node-input-controller">
</div>
<div class="form-row">
<label for="node-output-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-output-name">
</div>
</script>
<script type="text/x-red" data-help-name="envisalink out">
<p>Connects to a DSC alarm system through the EnvisaLink module and sends commands.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">string</span></dt>
<dd> the raw TPI command to send</dd>
</dl>
<h3>Details</h3>
<code>msg.payload</code> should contain the command to send to EnvisaLink.
Currently, only raw TPI commands are supported, eg. <code>0331YYYY</code> to arm partition 1 using code XXXX or
<code>0401XXXX</code> to disarm partition 1 using code XXXX.
<p>Refer to the <a href="http://forum.eyez-on.com/FORUM/viewtopic.php?t=301">TPI documentation</a> for commands.</p>
<p>This node requires a connection to an EnvisaLink module to be configured. This is configured by clicking the pencil icon.</p>
<p>Several EnvisaLink nodes (in or out) can share the same EnvisaLink connection.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('envisalink out', {
category: 'output',
defaults: {
name: {value:""},
controller: {type:"envisalink-controller", required:true}
},
color: '#ff9933',
inputs:1,
outputs:0,
icon: 'bridge.png',
align: 'right',
label: function() {
return this.name||"envisalink";
},
labelStyle: function() {
return this.name?"node_label_italic":"";
}
});
</script>