From f8a90a29805beabb83dcf071fafe8362ad104cb9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Jul 2016 13:06:15 +0200 Subject: [PATCH] Add logo, links, and tweak the format a little --- source/_components/hdmi_cec.markdown | 26 ++++++++++++++++-------- source/images/supported_brands/hdmi.png | Bin 0 -> 3350 bytes 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 source/images/supported_brands/hdmi.png diff --git a/source/_components/hdmi_cec.markdown b/source/_components/hdmi_cec.markdown index 1015b9cfbf1..d5267e82308 100644 --- a/source/_components/hdmi_cec.markdown +++ b/source/_components/hdmi_cec.markdown @@ -8,7 +8,7 @@ comments: false sharing: true footer: true ha_category: Automation -featured: false +logo: hdmi.png ha_release: 0.23 ha_iot_class: "Local Push" --- @@ -23,23 +23,33 @@ The computer running Home Assistant must support CEC, and of course be connected ### {% linkable_title libcec %} -[libcec](https://github.com/Pulse-Eight/libcec) must be installed for this component to work. Follow the installation instructions for your environment, provided at the link. `libcec` installs Python 3 bindings, by default as a system Python module. If you are running Home Assistant in a Python virtual environment, make sure it can access the system module, by either symlinking it or using the `--system-site-packages` flag. +[libcec](https://github.com/Pulse-Eight/libcec) must be installed for this component to work. Follow the installation instructions for your environment, provided at the link. `libcec` installs Python 3 bindings by default as a system Python module. If you are running Home Assistant in a [Python virtual environment](/getting-started/installation-virtualenv/), make sure it can access the system module, by either symlinking it or using the `--system-site-packages` flag. #### {% linkable_title Symlinking into virtual environment %} -`ln -s /usr/local/lib/python3.4/dist-packages/cec /lib/python3.4/site-packages` +Create a symlink to the `cec` installation. + +```bash +$ ln -s /usr/local/lib/python3.4/dist-packages/cec /path/to/your/venv/lib/python3.4/site-packages +``` -e.g. the default virtual environment for the Raspberry Pi AIO would be as follows. +For the default virtual environment of a [Raspberry Pi AIO](/getting-started/installation-raspberry-pi-all-in-one/) the command would be as follows. -`ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_venv/lib/python3.4/site-packages` +```bash +$ ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_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, -`* failed to open vchiq instance` +```bash +* failed to open vchiq instance +``` -you will also need to add the user account HASS runs under, to the `video` group. To add the HASS user account to the `video` group run the following command. +you will also need to add the user account Home Asssistant runs under, to the `video` group. To add the Home Assisitant's user account to the `video` group run the following command. -`usermod -a -G video ` +```bash +$ usermod -a -G video +``` ## {% linkable_title Configuration Example %} diff --git a/source/images/supported_brands/hdmi.png b/source/images/supported_brands/hdmi.png new file mode 100644 index 0000000000000000000000000000000000000000..39fa6a4563ee8d30609994ed6cf8ada0b6ba9f2c GIT binary patch literal 3350 zcmai1c{mh~)8Dl$i;djZy06?MM{d?yg(7#-N|Ixd4p;1kwG=CnB-Rx+X&oDKFGAmh zucIaFzBa^4h=iZt^ZxPv_rA}}Gc(W3=b3qCK7UQhWd|E5rx+&y0D#&e;Z6VmQ0*i} zaDY$j1HU(iCk}k$q758y{9h?-Ezdm3u-~(_w`QlavI_{Q03KB3007({Y~dEpk$LO+ zG1V?EuwF9`mesGS`VcNQ`->e#KL6@MdNTffI7jjgbhGJhD0|~b5b(`RLI&=et5Z^J zsWy8*ZY1uBg({~>2h1yIXIVO5mH}FH(4}VTjDwiXg9}7T`axbF^DKq&gE7&*^M^d+ z8BzF}o4t3YXoou-EXHLxV8 zjfeZk&57Pd6KlGnV51w?re$#BKd=KFz0JS?!-JXDTk0Jg=Uid?aY};quSld=q^NiAJ2Z5|5KSq(I1U` zIk}z38Z4~}8kt7~1j?BK*ulP%?HNs)v^u4+p^XM8AVrf-5HVdJ)Wn;R`D zt3z=%Zq{m6rhSC9k0iuj!_HSnB~tf2#53@HPYaXm!k%0|23G@bvz^lF(5dJ)pG~ez z(*hVM1%bAz1>8^58@{Lmn81sZe>_o-AlZ)gJvY%<;CHsE=t#4-%8KrYbD}TnfIa>a z&+32ysCXAqx*u}vH0^HYPvP*N;}RxwR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