home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.49k stars 30.33k forks source link

HDMI Cec not working in Raspberry 4 docker image #60170

Closed setchevest closed 2 years ago

setchevest commented 2 years ago

The problem

HDMI Cec component error In Raspberry Pi 4 using docker image homeassistant/raspberrypi4-homeassistant. HASS Logs added to the issue.

What version of Home Assistant Core has the issue?

core-2021.9.0.dev20210813

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

HDMI-CEC

Link to integration documentation on our website

No response

Example YAML snippet

hdmi_cec:
  devices:
    TV: 0.0.0.0
    Raspberry: 3.1.0.0
    Amplifier: 3.0.0.0
    Playstation3: 3.3.0.0

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:87
First occurred: 3:05:27 PM (1 occurrences)
Last logged: 3:05:27 PM

Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/pycec/cec.py", line 89, in _init
    callback(self)
TypeError: async_call_later() takes 3 positional arguments but 4 were given

Additional information

If I run the command cec-client -l into the running continer I get the following:

libCEC version: 6.0.2, git revision: libcec-6.0.2, compiled on 2021-07-06 20:01:07 by root@ebd651798671 on Linux 5.8.0-1036-azure (armv7l), features: P8_USB, DRM, P8_detect, Linux
Found devices: NONE

Seems the compiled libcec package does not support RPi feature.

However, running the same command in the host machine I get

libCEC version: 4.0.7, compiled on Linux-5.10.17-v8+ ... , features: P8_USB, DRM, P8_detect, randr, RPi, Exynos, Linux, AOCEC
Found devices: 1

device:              1
com port:            RPI
vendor id:           2708
product id:          1001
firmware version:    1
type:                Raspberry Pi

As you can see, although the versions are different the features list should be the same in my opinion.

probot-home-assistant[bot] commented 2 years ago

hdmi_cec documentation hdmi_cec source (message by IssueLinks)

mib1185 commented 2 years ago

duplicate of #50443 which is already solved with 2021.11. so please update to latest HA version