Skip to content

samueltardieu/homeassistant-addon-pi-cec

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Raspberry Pi CEC server add-on

Starting from HomeAssistant 2021.7.0, the CEC libraries included in HomeAssistant do no longer support CEC interfaces that are not included in the Linux kernel itself. Therefore, it is no longer possible to control the HDMI-CEC bus through the hdmi-cec integration alone.

However, the hdmi-cec integration supports talking to an HDMI-CEC device over a TCP socket. This add-on launches a HDMI-CEC server which supports the Raspberry Pi hardware interface.

Configuration

After enabling this add-on and configuring it to automatically start, one can use the following in HomeAssistant configuration.yaml:

hdmi_cec:
  host: 58c14403-pi-cec

and restart HomeAssistant. You should then be able to control your HDMI-CEC devices with the integration commands.

Notes

For the curious, 58c14403 is the SHA-1 hash of the string https://github.com/samueltardieu/homeassistant-addons and is computed from the repository name by HomeAssistant.

The icon is part of iconscount display icon collection.

RPI GPU Memory

The libraries that pycec uses require there be 128M of memory allocatd to the GPU - if you see any strange assertions in the logs, use raspi-config to change that value.