LeJeko / homebridge-bravia

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

homebridge-bravia NPM Version verified-by-homebridge

HomeBridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others).

Introduction

Supports the following functions

  • Turning TV on/off
  • Setting volume
  • Selecting inputs / channels
  • Starting apps
  • Trigger automation when turning the TV on/off
  • iOS 12.2 remote support
  • Secure connection to TV without PSK

This plugin requires iOS 12.2, to use it with previous iOS versions install version 0.96 of this plugin.

Note for users of versions before 2.0: Updating to 2.0+ will force you to set up the TV (including all HomeKit automation) again

Installation

  • Install homebridge using: npm install -g homebridge
  • Install this plugin using: npm install -g homebridge-bravia
  • Configure config.json or configure settings through web UI (see below for the options)
  • Set "Remote start" to ON in your TV Settings->Network->Remote Start
  • Turn on the TV
  • Restart Homebridge
  • The TV will display a PIN
  • Enter the PIN at http://homebridge-server:8999
    • Replace homebridge-server with the IP or name of your homebridge server
    • Note that the web server is only accessible when you have to enter a PIN
  • Your TV should appear in HomeKit as soon as all channels have been scanned

Configure config.json

Example config:

"platforms":[
  {
    "platform": "BraviaPlatform",
    "tvs": [
      {
        "name": "TV",
        "ip": "192.168.1.10",
        "soundoutput": "speaker",
        "tvsource": "tv:dvbs",
        "applications": false,
        "sources": [
          "extInput:hdmi",
          "extInput:component",
          "extInput:scart",
          "extInput:cec",
          "extInput:widi"
        ]
      }
    ]
  }
]

Required options:

  • tvs is the list of Sony TVs in your home
  • name is the name of your TV as it appears in HomeKit
  • ip is the IP address or host name of your TV, find and/or set it through your router or set it in the TV

Optional options (all inside one TV entry):

  • sources is an array of sources to display in HomeKit, default ["extInput:hdmi", "extInput:component", "extInput:scart", "extInput:cec", "extInput:widi"]
    • source strings for your TV might look different, check the web if you find the right ones for your TV/input types
  • tvsource is your preferred TV source, can be tv:dvbt, tv:dvbc or tv:dvbs (antenna, cable or sat), default none
    • effectively this is just another source like the ones above
  • applications can be used to enable listing applications in the input list, default false
    • Providing an array of objects with application titles will only add applications whose names contain the titles to the input list:
      "applications": [
                          {
                              "title": "Netflix"
                          },
                          {
                              "title": "Plex"
                          },
                      ]
      
  • updaterate interval in milliseconds for TV status updates (on/off etc), default 5000
  • channelupdaterate interval in milliseconds for updates of the channel/input list, default 30000
  • soundoutput is your preferred TV sound output, can be speaker or headphone, default speaker
  • port is the IP port of your TV, default 80
  • mac is the MAC address of your TV, only set it if you want to use WOL instead of HTTP to wake up the TV, default none
  • woladdress sets the subnet for WOL, default 255.255.255.255
  • serverPort sets a different port than 8999 for the web server that allows entering the PIN number from the TV

Usage

Basic functions

ON/OFF

You can turn your TV on and off through Siri and Apples Home app.

Inputs and Applications

All Channels, Inputs and Applications can be selected in the HomeKit inputs selector

TV Remote

The TV registers as a TV remote device in HomeKit and allows to use basic function keys and set the volume through the Apple Remote app or iOS configuration screen. Use your phones volume knobs to set the TV volume!

TV Speaker

In addition to the iOS remote the plugin also exposes the TV speaker as a HomeKit accessory however only some apps show that accessory type, Apples Home app does not.

Notes

Misc

Thanks go out to "lombi" for his sony bravia homebridge plugin, which this plugin is heavily based on.

About

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)


Languages

Language:JavaScript 100.0%