home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.78k stars 957 forks source link

HA Blue / ODROID-N2+ - HDMI-CEC not functioning #1216

Closed DCSBL closed 1 year ago

DCSBL commented 3 years ago

Hardware Environment

Home Assistant OS release:

andybjackson commented 2 years ago

Where does one find the Integration? The CEC Scanner add-on isn't working for me either.

rigrig commented 2 years ago

You can add it in your configuration.yaml: https://www.home-assistant.io/integrations/hdmi_cec/#configuration-example

andybjackson commented 2 years ago

2022-01-18 17:25:13 WARNING (SyncWorker_0) [pycec] Not initialized. Waiting for init.

That's with the following YAML:

hdmi_cec:
  devices:
    TV: 0.0.0.0
    HABlue: 1.0.0.0

Update 1: the cable was unplugged. Problem in front of, not in, computer. Now working for me too, albeit partially as I am still mastering how exactly HDMI-CEC operates. Cheers @agners & all!

Update 2: (hopefully discoverable to those learning like me):

In my case Philips TV 0.0.0.0, Pioneer Receiver 1.0.0.0 & Google TV 1.1.0.0. Notable that HA Blue /ODROID-N2+ doesn't feature. Thus my YAML now reads:

hdmi_cec:
  devices:
    Philips: 0.0.0.0
    Pioneer: 1.0.0.0
    Google: 1.1.0.0

I can now:

I'd still like to understand:

Select device is limited because so far I can only select the TV, Receiver or Google TV, not what each has selected to play. Thus, for example, if I am watching TV and I choose Google TV via Select device, then it does bring Google TV to the fore. Then, if I Select device 0.0.0.0 to try to go back to watching TV, Google TV continues to play as that is the source that remains selected on the TV. Not a limitation of HDMI-CEC, but a challenge to work around.

andybjackson commented 1 year ago

Afraid it looks like this bug is back. Had to rebuild my Home Assistant on HA Blue (ODroid 2+) after a failed update.

The log messages I got to know so well are there in all their glory. Not initialized. Waiting for init. 21:53:43 – (WARNING) /usr/local/lib/python3.10/site-packages/pycec/network.py - message first occurred at 21:35:03 and shows up 1118 times failed to open a connection to the CEC adapter 21:53:15 – (ERROR) /usr/local/lib/python3.10/site-packages/pycec/cec.py - message first occurred at 21:35:05 and shows up 10 times Error doing job: Exception in callback CecAdapter.standby_devices() 21:35:18 – (ERROR) /usr/src/homeassistant/homeassistant/runner.py

I have the integration enabled by the entired in configuraiton.yaml as before. I have tried with and without CEC Scanner enabled. I have been back through all of the issues and can't find what setting I might have changed.

agners commented 1 year ago

What HAOS version are you using?

Anyone else actively using HDMI CEC on ODROID-N2?

inytar commented 1 year ago

I'm using HDMI CEC it on the Odroid-N2 (HA Blue), without any issues. I had CEC issues with SU 2022.11.0, but that related to: https://github.com/home-assistant/supervisor/issues/4004, and was fixed once I moved to SU 2022.11.2.

Home Assistant 2022.11.4
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
andybjackson commented 1 year ago

Thanks @inytar. Upgrading SU to 2022.11.2 solved the problem for me too. And thank you @agners for reacting so promptly.

This can be closed again.