-
Notifications
You must be signed in to change notification settings - Fork 2
/
pioneer-avr-out.html
72 lines (69 loc) · 2.93 KB
/
pioneer-avr-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
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
<script type="text/javascript">
RED.nodes.registerType('pioneer-avr-out', {
category: 'AVR',
color: '#DDBBFF',
defaults: {
name: {
value: ''
},
server: {
value: '',
required: true,
type: 'pioneer-avr-config'
},
},
inputs: 1,
outputs: 0,
icon: 'bridge.png',
label: function() {
var server = RED.nodes.node(this.server);
return this.name || server ? server.label().replace(/\s\(.+\)/, '') : 'Pioneer AVR';
},
paletteLabel: 'Pioneer AVR',
align: 'right',
});
</script>
<script type="text/x-red"
data-template-name="pioneer-avr-out">
<div class="form-row">
<label for="node-input-server"><i class="icon-tag"></i> Receiver</label>
<input type="text" id="node-input-server" />
</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="pioneer-avr-out">
<p>Sets the state of the selected Pioneer receiver.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">object</span></dt>
<dd>an object containing the next state of the Pioneer receiver.</dd>
<dt>payload.on <span class="property-type">bool</span></dt>
<dd></dd>
<dt>payload.muted <span class="property-type">bool</span></dt>
<dd></dd>
<dt>payload.volume <span class="property-type">number</span></dt>
<dd></dd>
<dt>payload.channel <span class="property-type">enum</span></dt>
<dd>One of <code>PHONO</code>, <code>CD</code>, <code>TUNER</code>, <code>TAPE</code>, <code>DVD</code>, <code>TV</code>, <code>SAT/CBL</code>, <code>SAT</code>, <code>CBL</code>, <code>CABLE</code>, <code>VIDEO</code>, <code>MULTI CH IN</code>, <code>USB-DAC</code>, <code>VIDEO2</code>, <code>DVR/BDR</code>, <code>DVR</code>, <code>BDR</code>, <code>IPOD/USB</code>, <code>USB</code>, <code>IPOD</code>, <code>XM RADIO</code>, <code>HDMI1</code>, <code>HDMI2</code>, <code>HDMI3</code>, <code>HDMI4</code>, <code>HDMI5</code>, <code>HDMI6</code>, <code>BD</code>, <code>MEDIA GALLERY</code>, <code>SIRIUS</code>, <code>HDMI CYCLE</code>, <code>ADAPTER</code>, <code>HDMI7</code>, <code>HDMI8</code>, <code>NETRADIO</code>, <code>SIRIUSXM</code>, <code>PANDORA</code>, <code>MEDIA SERVER</code>, <code>MEDIA</code>, <code>FAVORITE</code>, <code>MHL</code>, <code>GAME</code>, <code>SPOTIFY</code></dd>
</dl>
<h4>Example inputs</h4>
<p>
<pre><code>{
"on": true
}</code></pre>
<pre><code>{
"on": true,
"channel": "CD",
"volume": 111
}</code></pre>
<pre><code>{
"muted": true
}</code></pre>
</p>
</script>