mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Added CEC documentation (#1417)
Added documentation to help ppl giving a try at the CEC implementation, this way they won't have to look elsewhere to enable the config in the example
This commit is contained in:
parent
a3c63fd057
commit
9030fabcb6
@ -43,6 +43,28 @@ $ ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_venv/lib/pytho
|
|||||||
`* failed to open vchiq instance` 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 <hass_user_account>`
|
`* failed to open vchiq instance` 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 <hass_user_account>`
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
## {% linkable_title Testing your installation %}
|
||||||
|
|
||||||
|
* Login to Raspberry Pi `ssh pi@your_raspberry_pi_ip`
|
||||||
|
* at the command line type: `echo scan | cec-client -s -d 1`
|
||||||
|
* 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: ???
|
||||||
|
|
||||||
|
```
|
||||||
|
**Note the address: line above this will be used to configure HA, this address is represented below as 3: BlueRay player**
|
||||||
|
|
||||||
## {% linkable_title Configuration Example %}
|
## {% linkable_title 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.
|
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.
|
||||||
@ -55,6 +77,7 @@ hdmi_cec:
|
|||||||
1: Fire TV Stick
|
1: Fire TV Stick
|
||||||
2: Chromecast
|
2: Chromecast
|
||||||
3: Another Device
|
3: Another Device
|
||||||
|
3: BlueRay player
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Services %}
|
## {% linkable_title Services %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user