Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdmi cec not working #6102

Closed
rayzorben opened this issue Feb 19, 2017 · 2 comments
Closed

hdmi cec not working #6102

rayzorben opened this issue Feb 19, 2017 · 2 comments

Comments

@rayzorben
Copy link

rayzorben commented Feb 19, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.38.3

Python release (python3 --version):
3.4.2

Component/platform:
Raspberry Pi 2 Model B (manual)

Description of problem:
hdmi_cec fails to work with error that cec is missing

Expected:
hdmi_cec working

Problem-relevant configuration.yaml entries and steps to reproduce:

hdmi_cec:
    devices:
        TV: 0.0.0.0
        DirecTV: 3.0.0.0

On Startup

Traceback (if applicable):

INFO:homeassistant.bootstrap:Setting up hdmi_cec
ERROR:homeassistant.bootstrap:Error during setup of component hdmi_cec
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 152, in _async_setup_component
    None, component.setup, hass, config)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/hdmi_cec.py", line 190, in setup
    adapter = CecAdapter(name=display_name, activate_source=False)
  File "/home/homeassistant/.homeassistant/deps/pycec/cec.py", line 20, in __init__
    import cec
ImportError: No module named 'cec'
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=1977464848-1, service=create, domain=persistent_notification, service_data=message=The following components and platforms could not be set up:
* [hdmi-cec](https://home-assistant.io/components/hdmi_cec/)
Please check your config, title=Invalid config, notification_id=invalid_config>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [hdmi-cec](https://home-assistant.io/components/hdmi_cec/)
Please check your config; title=Invalid config @ 2017-02-18T22:57:23.995399-08:00>>

Additional info:
Linked cec as explained

[18:21:28] homeassistant@home:/srv/homeassistant/lib/python3.4/site-packages$ ls -l cec
lrwxrwxrwx 1 homeassistant nogroup 42 Feb 19 07:55 cec -> /usr/local/lib/python3.4/site-packages/cec

[18:22:06] homeassistant@home:/srv/homeassistant/lib/python3.4/site-packages$ ls cec
_cec.so  __init__.py

cec-client works fine (tv is in standby in this capture, but same issue even when TV is on and reported as the active power source)

[18:22:50] homeassistant@home:/srv/homeassistant/lib/python3.4/site-packages$ echo scan | cec-client -s -d 1
opening a connection to the CEC adapter...
requesting CEC bus information ...
CEC bus information
===================
device #0: TV
address:       0.0.0.0
active source: no
vendor:        Samsung
osd string:    TV
CEC version:   unknown
power status:  standby
language:      eng


device #1: Recorder 1
address:       1.0.0.0
active source: no
vendor:        Pulse Eight
osd string:    CECTester
CEC version:   1.4
power status:  on
language:      eng


device #3: Tuner 1
address:       3.0.0.0
active source: no
vendor:        Unknown
osd string:    DIRECTV Genie
CEC version:   1.3a
power status:  on
language:      ???


currently active source: unknown (-1)

I am not using any customize: sections in configuration.yaml

@terrycarlin
Copy link
Contributor

terrycarlin commented Feb 19, 2017 via email

@rayzorben
Copy link
Author

@terrycarlin thanks that fixed it for me as well, I just added it to ~/.bashrc for my homeassistant user.

@home-assistant home-assistant locked and limited conversation to collaborators Jun 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants