-
Notifications
You must be signed in to change notification settings - Fork 7
/
envisalink-in.html
44 lines (42 loc) · 1.77 KB
/
envisalink-in.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
<script type="text/x-red" data-template-name="envisalink in">
<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-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name">
</div>
</script>
<script type="text/x-red" data-help-name="envisalink in">
<p>Connects to a DSC alarm system through the EnvisaLink module and provide state updates.</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">object</span></dt>
<dd>a javascript object containing <code>zone</code>/<code>partition</code>, the <code>code</code> and a human readable <code>status</code>.</dd>
<dt>topic <span class="property-type">string</span></dt>
<dd>Either <code>zone event</code>, <code>partition event</code>, <code>partition user event</code> or <code>system event</code>.</dd>
</dl>
<h3>Details</h3>
<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 in',{
category: 'input',
defaults: {
name: {value:""},
controller: {type:"envisalink-controller", required:true}
},
color:"#ff9933",
inputs:0,
outputs:1,
icon: "bridge.png",
label: function() {
return this.name||"envisalink";
},
labelStyle: function() {
return this.name?"node_label_italic":"";
}
});
</script>