-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Comments
I had that same problem. The problem may be with the build of pycec I believe but don’t know how to fix it correctly.
For me, the path: /usr/local/lib/python3.4/site-packages was not in the PYTHONPATH.
I was able to get around the problem by making a shell script like this:
#!/usr/bin/env bash
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.4/site-packages
pycec -i myipaddress
I think that python should have this path in it’s default search rules.
Maybe someone out there can let us know how to add the local site-packages directory to the python default search rules.
… On Feb 19, 2017, at 10:23 AM, rayzorben ***@***.***> wrote:
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 <https://community.home-assistant.io/c/feature-requests> of our community forum:
Home Assistant release (hass --version):
0.38.3
Python release (python3 --version):
3.4.2
Component/platform:
raspberry pi (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] ***@***.***:/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] ***@***.***:/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] ***@***.***:/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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#6102>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA1W1GwscPYKEcMgCHZuYiEAsQnEG05Mks5reHqjgaJpZM4MFhkU>.
|
@terrycarlin thanks that fixed it for me as well, I just added it to ~/.bashrc for my homeassistant user. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:On Startup
Traceback (if applicable):
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)
I am not using any customize: sections in configuration.yaml
The text was updated successfully, but these errors were encountered: