From 32f8077260fab7307d4d861914323fed8373d8a3 Mon Sep 17 00:00:00 2001 From: Matt Cahill Date: Fri, 3 Feb 2017 21:06:26 +1300 Subject: [PATCH] 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 --- source/_components/hdmi_cec.markdown | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/_components/hdmi_cec.markdown b/source/_components/hdmi_cec.markdown index e586904bc00..48bca5f1a8d 100644 --- a/source/_components/hdmi_cec.markdown +++ b/source/_components/hdmi_cec.markdown @@ -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 ```

If after symlinking and adding `hdmi_cec:` to your configuration you are getting the following error in your logs,