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: 220.127.116.11 (Not using CEC compatible HDMI cable.) Raspberry Pi: 18.104.22.168 Chromecast: 22.214.171.124
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
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
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
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 https://home-assistant.io/components/hdmi_cec/ as this references python3.4, but we are now python3.5, also the symlink is now out of date?