i am trying my best to have HA control the TV. HA was installed via venv, on Ubuntu 18.
was following the instruction from here: https://www.home-assistant.io/components/hdmi_cec/
and got stuck on Symlinking.
i was able to find the file “cec.py”
but “_cec.so” file is nowhere to be found.
tried finding with command: sudo find . -name “cec”
the results were long but nothing for _cec.son
i am happy to say i found _cec.so following the instruction here again: https://github.com/Pulse-Eight/libcec/blob/master/docs/README.linux.md
maybe i missed something the first time.
unfortunately hdmi still refuses to work with error:
File “/home/odroid/homeassistant/lib/python3.6/site-packages/homeassistant/components/hdmi_cec/init.py”, line 174, in setup adapter = CecAdapter(name=display_name[:12], activate_source=False)
File “/home/odroid/homeassistant/lib/python3.6/site-packages/pycec/cec.py”, line 20, in init import cec ModuleNotFoundError: No module named ‘cec’
echo scan | cec-client -s -d 1
shows:
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: Unknown
osd string: TV
CEC version: unknown
power status: unknown
language: ???
so my config file has:
hdmi_cec:
devices:
TV: 0.0.0.0