Site updated at 2016-11-08 07:53:35 UTC

This commit is contained in:
Travis CI 2016-11-08 07:53:35 +00:00
parent af722b5fa6
commit 0519719344
23 changed files with 70 additions and 45 deletions

View file

@ -120,17 +120,42 @@
<code class="highlighter-rouge">* failed to open vchiq instance</code> you will also need to add the user account Home Asssistant runs under, to the <code class="highlighter-rouge">video</code> group. To add the Home Assisitants user account to the <code class="highlighter-rouge">video</code> group, run the following command. <code class="highlighter-rouge">$ usermod -a -G video &lt;hass_user_account&gt;</code>
</p>
<h2><a class="title-link" name="configuration-example" href="#configuration-example"></a> Configuration Example</h2>
<h2><a class="title-link" name="testing-your-installation" href="#testing-your-installation"></a> Testing your installation</h2>
<p>In the following example, a Pi Zero running Home Assistant is on a TVs 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>
<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 …
CEC bus information
===================
device #4: Playback 1
address: 3.0.0.0
active source: no
vendor: Sony
osd string: BD
CEC version: 1.4
power status: on
language: ???</li>
</ul>
<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>
<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**
## &lt;a class='title-link' name='configuration-example' href='#configuration-example'&gt;&lt;/a&gt; Configuration Example
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.
```yaml
hdmi_cec:
devices:
1: Pi Zero
2:
1: Fire TV Stick
2: Chromecast
3: Another Device
3: BlueRay player
</code></pre>
</div>