Add-on for using HDMI-CEC on Raspberry Pi 3b

Hi all. Since support for the builtin HDMI-CEC hardware component has been removed for Raspberry Pi hardware in release 2021.7.0, I have developed a simple add-on for RPi platforms which allows you to access the hardware through a TCP socket. It lets you send and receive HDMI CEC commands through the builtin hdmi_cec integration.

To use this add-on on your Raspberry Pi (mine is a 3b, I haven’t tried on other models), add https://github.com/samueltardieu/homeassistant-addons as an add-on repository and install the PI CEC add-on.

1 Like

Hi Samuel, thanks for making the addon. On my system on raspberrry pi 4 before the latest update, I could switch my TV inputs using CEC but it doesn’t work now.

I’ve used supervisor CEC scanner but now it doesn’t show any inputs.

Do you have any pointers on how I can fix this?

Thanks.

Worked perfectly on Raspberry Pi 4 as well, thank you so much for sharing this.

note: Since the RPi4 have 2 HDMI port, use the HDMI port nearest to the power port. the other one doesn’t seem to work.

Does this work for external HDMI read/listen devices such as the USB-CEC by Pulse Eight?