Homebridge support for home theater devices using CEC over HDMI
About
homebridge-cec-accessory was written with Raspberry Pi in mind.
Create homebridge accessories for each CEC device you'd like to control.
Currently power and volume are the only available controls, and volume
only toggles mute (and probably only works with an attached receiver).
No automatic detection of attached devices is performed. For each device, create
an accessory entry in your config.json.
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
The best way I've found to find your devices is to use the cec-client tool
which comes as part of the cec-utils package.
From the command line: $ cec-client -d 1
Once it outputs waiting for input, type scan and press return. This might
be slightly confusing, but the number to use for "address" is the value
presented as device #, not the decimal separated IP-style address.
Troubleshooting
Under the covers, homebridge-cec-accessory uses the cec-client to interface
with your HDMI device. Stopping and starting repeatedly can cause things to go
awry.
If the plugin reports that cec-client never reported ready, it's possible
that homebridge is running as a user without access to /dev/vchiq. If you're
running homebridge as a user named homebridge, you can grant that access by
adding the user to the video group with: sudo usermod -a -G video homebridge
If this happens intermittently, restarting may also help.
If you're having trouble doing something with this plugin, verify you can do it
with cec-client. If it can't, neither can we.
请发表评论