proposed change for issue #1939 (#1940)

* proposed change for issue #1939

changed link target to point to correct location of libcec in system site-packages
included latest default location for the virtual env in a Raspberry Pi All-In-One installation

* update to reflect differing locations of libcec
This commit is contained in:
Matt Cahill 2017-02-03 21:06:26 +13:00 committed by Fabian Affolter
parent bbb5d023f0
commit 32f8077260

View File

@ -27,16 +27,23 @@ The computer running Home Assistant must support CEC, and of course be connected
#### {% linkable_title Symlinking into virtual environment %}
Create a symlink to the `cec` installation.
Create a symlink to the `cec` installation. Keep in mind different installation methods will result in different locations of cec.
```bash
$ ln -s /usr/local/lib/python3.4/dist-packages/cec /path/to/your/venv/lib/python3.4/site-packages
$ ln -s /path/to/your/installation/of/cec /path/to/your/venv/lib/python3.4/site-packages
```
##### {% linkable_title Symlinking examples: %}
For the default virtual environment of a [HASSbian Image for Raspberry Pi](/getting-started/installation-raspberry-pi-image/) the command would be as follows.
```bash
$ ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/homeassistant/lib/python3.4/site-packages
```
For the default virtual environment of a [Raspberry Pi All-In-One installation](/getting-started/installation-raspberry-pi-all-in-one/) the command would be as follows.
```bash
$ ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_venv/lib/python3.4/site-packages
$ ln -s /usr/local/lib/python3.4/site-packages/cec /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages
```
<p class='note'>If after symlinking and adding `hdmi_cec:` to your configuration you are getting the following error in your logs,