Skip to content

pyCEC not actually connecting to CEC-bus #75

Description

@patrickstanley

My goal: Setting up hdmi-cec in home assistant using a TCP client/server to control a remote TV connected to a RPi 4.

Where I am: Compiled and installed libcec. Can use cec-client to scan bus and manually issue commands. Installed pyCEC via pip. Launching via python -m pycec results in the following

2023-06-07 20:16:46,392 - pycec.cec - INFO - found a CEC adapter:
2023-06-07 20:16:46,392 - pycec.cec - INFO - port:     /dev/cec0
2023-06-07 20:16:46,392 - pycec.cec - INFO - vendor:   Unknown
2023-06-07 20:16:46,392 - pycec.cec - INFO - product:  0x0
2023-06-07 20:16:46,392 - pycec.cec - INFO - found a CEC adapter:
2023-06-07 20:16:46,392 - pycec.cec - INFO - port:     /dev/cec1
2023-06-07 20:16:46,393 - pycec.cec - INFO - vendor:   Unknown
2023-06-07 20:16:46,393 - pycec.cec - INFO - product:  0x0
2023-06-07 20:16:47,830 - pycec.cec - INFO - connection opened
2023-06-07 20:16:48,357 - pycec - INFO - CEC initialized... Starting server.
2023-06-07 20:16:48,358 - pycec - INFO - Serving on ('0.0.0.0', 9526)

I can use home assistant to issue commands which I see in the pycec log.

2023-06-07 20:18:31,681 - pycec - INFO - Received command 10:82:30:00 from ('192.168.2.2', 40672)

But nothing happens. While still running pycec, I can use cec-client to scan and read the bus, where I see nothing happening. It looks like pycec isn't actually finding and connecting to the bus, but I am not sure what to do. Any guidance would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions