Trouble with HDMI_CEC component

I finally decided to connect my HA to my media center, but I’m having trouble enabling the component. For a little background, I’m running 0.32.2 (AIO) on an RPi3. I got libcec running and it seems to work fine:

pi@raspberrypi:~ $ 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:        Panasonic
osd string:    TV
CEC version:   1.4
power status:  on
language:      eng

device #4: Playback 1
address:       1.2.0.0
active source: yes
vendor:        Google
osd string:    Chromecast
CEC version:   1.4
power status:  on
language:      ???

device #5: Audio
address:       1.0.0.0
active source: no
vendor:        Onkyo
osd string:    HT-R590
CEC version:   1.4
power status:  on
language:      ???

device #8: Playback 2
address:       2.0.0.0
active source: no
vendor:        Panasonic
osd string:    CECTester
CEC version:   1.4
power status:  on
language:      eng

currently active source: Playback 1 (4)

In my configuration.yaml file I have:

hdmi_cec:
  devices:
    0: TV
    1:
      2: Chromecast
    2: Raspberry Pi 3

What I’ve found is that any entries in the devices list causes home assistant to fail without any entries in the log file. If I induce an error by intentionally leaving it blank I get a graceful failure (HA runs and leaves a note in the log that the component failed). I’ve played with various arrangements of the devices list but I can’t get HA do load at all if there is anything in there. Got any ideas?

I think it should be:
hdmi_cec:
devices:
1:
2: Chromecast
2: Raspberry Pi 3

Can you try that?

Hey @gomanual , your config is exactly as mine and your PI setup as well

i’ve tested your config on my setup this morning and it runs well

here’s my config

hdmi_cec:
  devices:
    0: TV
    1:
      1: Kodi
    2: Videotron
    3: Blueray

have you followed the instruction here Home Assistant CEC properly ?

the only thing i can think of is that you did not implemented the permission change for it to work properly as indicated on that page linked above.

the command is : usermod -a -G video <hass_user_account>

Try it out if not the case, it’s the only thing i had to do to make it work following the example given

let us know :slight_smile:

Well now. Don’t I feel foolish.

I had followed the setup page but I didn’t add the HA user to the video group because I wasn’t getting that error message. I assumed I just had a silly goof in my yaml somehow. Adding the user fixed me right up.

Thank you both for your suggestions.

No worry , it happens to all of us :slight_smile:

Enjoy !!