/hass-mqtt-cec-universal-media-player

MQTT based HDMI-CEC control appliance written in python. Works with Home Assistant

Primary LanguagePython

hass-mqtt-cec-universal-media-player

Overview

An MQTT based HDMI-CEC appliance for use with Home Assistant.

I run this along with shairport-sync (Airplay server) on a Raspberry Pi 2 Model B connected to a Yamaha RX-V373 over HDMI. This MQTT client connects to my Home Assistant MQTT Broker and exposes the RX-V373 as a controllable device to Home Assistant over my home network as a series of virtual switches.

TODO Update desc to universal media player

A systemd service unit file is included for running this python script as a service on systemd based systems.

Using homekit: and emulated_hue: in the Home Assistant configuration.yaml allows these virtual switches to be controlled by iOS/macOS devices as well as Amazon echo devices.

Setup

Dependencies

Compile and install libcec from source in order to get the python bindings I guess. It should work by just installing python-libcec or whatever but I couldn't make it work