x2c / homebridge-hdmi

HomeBridge plugin to control HDMI devices
17 stars 3 forks source link

Connections #2

Open amitgandhinz opened 8 years ago

amitgandhinz commented 8 years ago

Hi Thanks for contributing this. I am looking forward to getting it going.

A few questions:

  1. Does this only control devices plugged into the single HDMI port of the Pi? You have settings for TV and AMP. Assuming only one of these devices can plug into the Rasp Pi, how do you control the other one? Or can you only control one HDMI device that is plugged into the Pi? I am probably missing something basic in my understanding of how this works.
  2. I manually installed libCEC for the Pi per their instructions (and they align with what you did in your ansible playbook), but when I run homebridge, it stalls on [TV] Initializing TV accessory. I get no further log lines after that. Any ideas?

Apr 24 15:26:42 raspberrypi homebridge[1691]: Loaded plugin: homebridge-hdmi Apr 24 15:26:42 raspberrypi homebridge[1691]: Registering accessory 'homebridge-hdmi.TV' Apr 24 15:26:42 raspberrypi homebridge[1691]: Registering accessory 'homebridge-hdmi.AMP' Apr 24 15:26:42 raspberrypi homebridge[1691]: --- ... ... Apr 24 15:26:50 raspberrypi homebridge[1691]: [TV] Initializing TV accessory...

amitgandhinz commented 8 years ago

Regarding #2 - when i "sudo npm uninstall -g homebridge-hdmi", my homebridge server continues to work. After I "sudo npm install -g homebridge-hdmi", my homebridge server stops working. ie. Freezes after initializing all the accessories. This happens regardless of if i have the new HDMI accessories added to the config.json for homebridge. After the initialization, I expect the next logged line to be the Scan this code ... [number], but it never gets there.

The issue appears to be introduced by having the homebridge-hdmi package installed. Did you come across this at all @x2c ?

x2c commented 8 years ago

I don't get this issue with my installation, is the cec lib installed correctly?

Try running "cec-client -l" on your Pi

amitgandhinz commented 8 years ago

$ cec-client -l libCEC version: 3.1.0, git revision: libcec-3.1.0+5-6d68d21, compiled on Fri 29 Apr 02:19:00 UTC 2016 by pi@raspberrypi on Linux 4.4.8-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr, RPi Found devices: 1

device: 1 com port: RPI vendor id: 2708 product id: 1001 firmware version: 1 type: Raspberry Pi

sneg55 commented 8 years ago

I got the same issue, after installing homebridge-hdmi main hombridge process stops working.

pi@raspberrypi:~ $ cec-client -l libCEC version: 3.1.0, git revision: libcec-3.1.0+5-6d68d21, compiled on Sun Jul 10 01:02:46 UTC 2016 by pi@raspberrypi on Linux 4.4.13-v7+ (armv7l), features: P8_USB, DRM, P8_detect, randr Found devices: NONE