homebridge-platform-cec v0.0.1
homebridge-platform-cec
A Homebridge Plugin to Control Devices over HDMI-CEC
About
homebridge-platform-cec was written with Raspberry Pi in mind. I wanted the ability to control my receiver's mute and volume level. After getting the proof-of-concept working, I thought I'd grow the scope a little bit to control other devices.
Currently, the plugin adds a Power and a Volume accessory to homebridge, both in the form of, "Light," accessories. The volume is controlled by adjusting the brightness of the light. Mute is controlled by turning off the "Light."
Eventually, I'd like to have the platform auto-discover devices and available services, and make them available dynamically based on whether or not the device is powered on.
Bug reports, feature requests, and pull requests welcome.
Installation
On a Raspberry Pi
Follow these instructions to install and run homebridge on Raspberry Pi. Don't give up. Hang in there.
Install cec-utils using package manager:
apt-get install cec-utils
Install homebridge-platform-cec:
npm install -g homebridge-platform-cec
Open an issue if you run into problems.
Configuration
Your ~/.homebridge/config.json
file must include homebridge-platform-cec
listed in the platforms section:
"platforms": [
{
"platform": "CecPlatform",
"name": "CecPlatform"
}
]
7 years ago