0.4.1 • Published 6 years ago

homebridge-hdmi-cec v0.4.1

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
6 years ago

homebridge-hdmi-cec

NPM Version
Homebridge support for TV power on/off, source selection, using HDMI-CEC

Prerequisite

CEC-Enabled device. Raspberry Pi (tested working) or Pulse-Eight's USB - CEC Adapter

Installation

  1. Install homebridge
  2. Install this plugin using: sudo npm install -g homebridge-hdmi-cec
  3. Install cec-utils if cec-client command is not present: sudo apt-get install cec-utils
    Note: On Raspberry Pi's OSMC image, cec-cilent is present at /usr/osmc/bin/cec-client-4.0.2, need to run sudo ln -s /usr/osmc/bin/cec-client-4.0.2 /usr/bin/cec-client to link it to default $PATH
  4. Add CEC platform to your configuration file (See below for examples)
    Note: You might have to disable Kodi's (if installed) build in CEC functionality as it will interfere with this plugin

Minimal config

  "platforms":[
    {
      "platform": "CEC",
      "sources": [
        {
          "name": "Raspberry Pi",
          "address": "2.0.0.0"
        },
        {
          "name": "Apple TV",
          "address": "3.0.0.0"
        }
      ]
    }

Full config (with optional parameters)

See config-sample.json

Configurations

Platform

FieldRequired?Description
platformRequiredMust be "CEC" (all UPPERCASE).
sourcesRequired for source-switchingA JSON array, containing objects specified from below.
nameOptionalName displayed in Home app.
manufacturerOptionalManufacturer displayed in Home app.
modelOptionalModel displayed in Home app.
serialOptionalSerial# displayed in Home app.

"sources" entry

FieldRequired?Description
nameRequiredName displayed in Home app.
addressRequiredPhysical address as specified in HDMI-CEC standard.
manufacturerOptionalManufacturer displayed in Home app.
modelOptionalModel displayed in Home app.
serialOptionalSerial# displayed in Home app.
0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago