Site updated at 2016-11-08 20:38:51 UTC
This commit is contained in:
parent
0519719344
commit
ddbf085f9c
23 changed files with 58 additions and 57 deletions
|
@ -125,37 +125,38 @@
|
|||
<ul>
|
||||
<li>Login to Raspberry Pi <code class="highlighter-rouge">ssh pi@your_raspberry_pi_ip</code></li>
|
||||
<li>at the command line type: <code class="highlighter-rouge">echo scan | cec-client -s -d 1</code></li>
|
||||
<li>This will give you the list of devices that are on the bus
|
||||
```bash
|
||||
opening a connection to the CEC adapter…
|
||||
requesting CEC bus information …
|
||||
<li>This will give you the list of devices that are on the bus</li>
|
||||
</ul>
|
||||
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>opening a connection to the CEC adapter...
|
||||
requesting CEC bus information ...
|
||||
CEC bus information
|
||||
===================
|
||||
device #4: Playback 1
|
||||
<span class="o">===================</span>
|
||||
device <span class="c">#4: Playback 1</span>
|
||||
address: 3.0.0.0
|
||||
active source: no
|
||||
active <span class="nb">source</span>: no
|
||||
vendor: Sony
|
||||
osd string: BD
|
||||
CEC version: 1.4
|
||||
power status: on
|
||||
language: ???</li>
|
||||
</ul>
|
||||
language: ???
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>**Note the address: line above this will be used to configure HA, this address is represented below as 3: BlueRay player**
|
||||
<p><strong>Note the address: line above this will be used to configure HA, this address is represented below as 3: BlueRay player</strong></p>
|
||||
|
||||
## <a class='title-link' name='configuration-example' href='#configuration-example'></a> Configuration Example
|
||||
<h2><a class="title-link" name="configuration-example" href="#configuration-example"></a> Configuration Example</h2>
|
||||
|
||||
In the following example, a Pi Zero running Home Assistant is on a TV's HDMI port 1. HDMI port 2 is attached to a AV receiver. Three devices are attached to the AV receiver on HDMI ports 1 through 3.
|
||||
<p>In the following example, a Pi Zero running Home Assistant is on a TV’s HDMI port 1. HDMI port 2 is attached to a AV receiver. Three devices are attached to the AV receiver on HDMI ports 1 through 3.</p>
|
||||
|
||||
```yaml
|
||||
hdmi_cec:
|
||||
devices:
|
||||
1: Pi Zero
|
||||
2:
|
||||
1: Fire TV Stick
|
||||
2: Chromecast
|
||||
3: Another Device
|
||||
3: BlueRay player
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">hdmi_cec</span><span class="pi">:</span>
|
||||
<span class="s">devices</span><span class="pi">:</span>
|
||||
<span class="s">1</span><span class="pi">:</span> <span class="s">Pi Zero</span>
|
||||
<span class="s">2</span><span class="pi">:</span>
|
||||
<span class="s">1</span><span class="pi">:</span> <span class="s">Fire TV Stick</span>
|
||||
<span class="s">2</span><span class="pi">:</span> <span class="s">Chromecast</span>
|
||||
<span class="s">3</span><span class="pi">:</span> <span class="s">Another Device</span>
|
||||
<span class="s">3</span><span class="pi">:</span> <span class="s">BlueRay player</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue