Home Assistant TV Apps is an open-source collection of Home Assistant apps (add-ons) for a Raspberry Pi running Home Assistant OS with a TV on its HDMI port. Both apps are published through the Home Assistant app store and released under the Apache License 2.0 .

  • AirPlay Video Receiver : Mirrors an iPhone, iPad or Mac to the TV over AirPlay. Video is decoded on the Pi and rendered straight to its HDMI output with GStreamer, so no desktop or X server is involved.
  • HDMI-CEC : Talks to the TV over HDMI-CEC, turning the TV remote’s volume keys into Home Assistant events and switching the TV to the Pi’s input when mirroring starts.

The two apps work independently or together: the HDMI-CEC app owns the Pi’s CEC adapter, and the AirPlay app asks it to switch inputs.

Repository: github.com/basilinno/ha-tv-apps

Tested on a Raspberry Pi 4 running Home Assistant OS. Contributions and issue reports are welcome; the apps are provided as-is, without a commercial support commitment.

Design Notes

The AirPlay receiver runs UxPlay with a GStreamer pipeline tuned for the Pi’s vc4 display controller: a frame-threaded software H.264 decoder, kmssink with skip-vsync, and console blanking that lasts only as long as a mirroring session. HDMI-CEC is a small Alpine/Python daemon speaking the Linux CEC ioctls directly, with an HTTP API so other apps can request input switching instead of fighting over the adapter.