Hi,
I have a clean install of HASS AIO for my pi 3, however, trying to do:
#HDMI CEC
hdmi_cec:
devices:
TV: 0.0.0.0
#PC: 1.0.0.0 (Not using CEC compatible HDMI cable.)
Raspberry Pi: 2.0.0.0
Chromecast: 3.0.0.0
Gives the following error:
2017-09-19 21:10:36 ERROR (MainThread) [homeassistant.setup] Error during setup of component hdmi_cec
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/setup.py”, line 194, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/hdmi_cec.py”, line 184, in setup
adapter = CecAdapter(name=display_name[:12], activate_source=False)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pycec/cec.py”, line 20, in init
import cec
ImportError: No module named ‘cec’
Really not sure where to go from here - I have checked that the CEC references are correct (yes they exist), however it just won’t work… I have tried simplifying with:
hdmi_cec:
platform: media_player
But same result… I don’t think it’s the config file, more that the config file calls on something not correct…
I have tested HDMI_CEC from commandline with cec-client
and it works, so definitely not the libcec package itself… I am thinking that it is the symlink? the only reference from this forum I can get is from February where the version was 0.38 - However I would have thought this would be fixed by now?
Additionally the instructions need to be updated for HDMI-CEC - Home Assistant as this references python3.4, but we are now python3.5, also the symlink is now out of date?
anysuggestions?