louis49 / homebridge-plugin-androidtv

MIT License
24 stars 12 forks source link

homebridge-plugin-androidtv

verified-by-homebridge npm-version npm-total-downloads

Donate Donate

Homebridge plugin for AndroidTV, enabling HomeKit support for AndroidTV devices.

Note that this is an unofficial plugin.

Installation

  1. Install Homebridge by following the instructions.
  2. Install this plugin using Homebridge Config UI X, or by running npm install -g homebridge-androidtv.
  3. Connect to http://localhost:8182 and pair detected devices with shown secret code
  4. On HomeKit app tap on 'Add accessory'
  5. Enjoy ;-)

Configuration

You can configure channels, keys and applications (don't hesitate to create an HomeKit Scene to launch them by voice)

For channels, we always consider TV App as the first on the list channel shown after a 'Home' tap on regular remote

Example for French TV :

{
   "channels": [
      {"name": "TF1", "number": 1}, 
      {"name": "France 2", "number": 2}, 
      {"name": "France 3", "number": 3}, 
      {"name": "France 5", "number": 5}, 
      {"name": "M6", "number": 6}, 
      {"name": "Arte", "number": 7}, 
      {"name": "LCP", "number": 13}, 
      {"name": "BMF TV", "number": 15},
      {"name": "CNEWS", "number": 16}, 
      {"name": "LCI", "number": 26}, 
      {"name": "France Info", "number": 27}
   ]
}

Example for keys :

{
   "keys": [
      {"name": "Power", "key": "KEYCODE_POWER"},
      {"name": "VolUp", "key": "KEYCODE_VOLUME_UP"},
      {"name": "VolDown", "key": "KEYCODE_VOLUME_DOWN"},
      {"name": "Home", "key": "KEYCODE_HOME"},
      {"name": "Mute", "key": "KEYCODE_MUTE"}
   ]
}

Key code are listed here:

Example for populars applications :

{
   "applications": [
      {"name": "Netflix", "link": "https://www.netflix.com/title.*"},
      {"name": "OQEE", "link": "https://oq.ee/home/"},
      {"name": "Disney+", "link": "https://www.disneyplus.com"},
      {"name": "Amazon Prime", "link": "https://app.primevideo.com"},
      {"name": "Salto", "link": "https://www.salto.fr"}
   ]
}

You can find in Wiki a french TV by Free configuration