There are now (v0.37?) new features of hdmi cec that I am interested in trying. Has anybody had success with this? https://home-assistant.io/components/hdmi_cec/#configuration-example
Am I understanding correctly, that this should create a media_player entity of some sort from discovery or my hdmi_cec definition in my configuration.yaml?
My log seems to indicate it is failing to do this…
Feb 3 10:15:05 hapi hass[685]: INFO:homeassistant.loader:Loaded hdmi_cec from homeassistant.components.hdmi_cec
Feb 3 10:16:05 hapi hass[685]: INFO:homeassistant.bootstrap:Setting up hdmi_cec
Feb 3 10:16:06 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=send_command, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=volume, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=update, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=power_on, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=standby, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=select_device, domain=hdmi_cec>
Feb 3 10:16:43 hapi hass[685]: INFO:pycec:HDMI network starting...
Feb 3 10:16:45 hapi hass[685]: ERROR:asyncio:Exception in callback setup.<locals>._new_device(<pycec.networ...at 0x6c646eb0>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297
Feb 3 10:16:45 hapi hass[685]: handle: <Handle setup.<locals>._new_device(<pycec.networ...at 0x6c646eb0>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297>
Feb 3 10:16:45 hapi hass[685]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py", line 303, in _new_device
Scanning the bus from command line works and I can control my tv from hdmi_cec service in the developer tools
I’m running in to a similar issue using latest raspbian and aio installer. Manual json commands work but entities not created. Now about to attempt a fresh build using hassbian to see if that corrects the issue.
ran in to the same problem yet again =/ one more install attempt. gonna just reinstall hassbian for the second time, setup wifi, install libcec, and add the following to my configuration.yaml:
hdmi_cec:
platform: media_player
This is the error i get, issue is up on homeassistant issues page:
17-02-05 23:05:12 ERROR (Thread-18) [asyncio] Exception in callback setup.<locals>._new_device(<pycec.networ...at 0x69198ff0>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297
handle: <Handle setup.<locals>._new_device(<pycec.networ...at 0x69198ff0>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297>
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
self._callback(*self._args)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py", line 303, in _new_device
CONF_CUSTOMIZE, {}).get(key, {}).get(CONF_PLATFORM, platform),
AttributeError: 'NodeListClass' object has no attribute 'get'
17-02-05 23:05:15 ERROR (Thread-18) [asyncio] Exception in callback setup.<locals>._new_device(<pycec.networ...at 0x6fcefe50>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297
handle: <Handle setup.<locals>._new_device(<pycec.networ...at 0x6fcefe50>) at /srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py:297>
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
self._callback(*self._args)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/hdmi_cec.py", line 303, in _new_device
CONF_CUSTOMIZE, {}).get(key, {}).get(CONF_PLATFORM, platform),
AttributeError: 'NodeListClass' object has no attribute 'get'
(EDIT:) so, it worked after doing that. so, it may be something to do with my imported config, or something i usually install after that’s interfering.
@happyleaves
I was just about to come back scream and shouting with joy that i’ve found out there’s an issue with customize being present but now you’ve stole my thunder
I’ll update my Github issue with those findings though as i’ve yet to see that documented anywhere officially