Skip to content
Sony Bravia TV (Pre-Shared Key) component for Home Assistant
Python
Branch: master
Clone or download
Latest commit 98398bb Nov 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components/braviatv_psk Updated version and change a log from error to debug Jul 22, 2019
screenshots Add files via upload Jul 27, 2019
LICENSE Create LICENSE Aug 29, 2018
README.md Update README.md Nov 19, 2019
info.md Update info.md Jul 27, 2019
resources.json Update resources.json May 15, 2019

README.md

Version mantained maintainer hacs_badge Community Forum

Custom component for Sony Bravia TV using Pre-Shared Key (PSK)

A platform which allows you to interact with the Sony Bravia TV using a Pre-Shared Key.

Homekit TV supported

The media player will show up as Television accessories on devices running iOS 12.2 or later

Screenshots

Component used with Mini Media Player

Component used with Mini Media Player

Component used with standard Media Player

Component used with standard Media Player

Installation

You can use HACS or install the component manually:

To get started put the files from /custom_components/braviatv_psk/ in your folder <config directory>/custom_components/braviatv_psk/

Configuration

Example configuration.yaml:

media_player:
  - platform: braviatv_psk
    host: 192.168.1.101
    psk: sony
    mac: AA:BB:CC:DD:EE:FF
    amp: True
    android: True
    sourcefilter:
      - ' HD'
      - HDMI
    name: MyBraviaTV

Configuration variables:

key description
platform (Required) The platform name.
host (Required) The IP of the Sony Bravia TV, eg. 192.168.1.101.
psk (Required) The Pre-Shared Key of the Sony Bravia TV, eg. sony (see below for instructions how to configure this on the TV). Place the psk between quotes if you use digits and those start with one or more zero's, e.g. '0044'.
mac (Optional) The MAC address of the Sony Bravia TV (see below for instructions how to get this from the TV). This is used to turn on the TV using WakeOn LAN and is only needed if the TV is non-Android.
amp (Optional) Boolean, defaults to False. Set this to True if you have an amplifier attached to the TV and not use the internal TV speakers. Then the volume slider will not be shown as this doesn’t work for the amplifier. Mute and volume up and down buttons are there and working with an amplifier.
android (Optional) Boolean, defaults to False. Set this to True when you have an Android TV as these TV’s don’t respond to WakeOn LAN commands, so another method of turning on the TV can be used.
sourcefilter (Optional) List of text that is used to filter the source list, eg. ’ HD’ (with quotes) will only show TV channels in the source list which contain ‘HD’, eg. ‘NPO 3 HD’ (in my config this will only show HD channels)

Installation instructions TV

  1. Enable remote start on your TV: [Settings] => [Network] => [Home Network Setup] => [Remote Start] => [On]
  2. Enable pre-shared key on your TV: [Settings] => [Network] => [Home Network Setup] => [IP Control] => [Authentication] => [Normal and Pre-Shared Key]
  3. Set pre-shared key on your TV: [Settings] => [Network] => [Home Network Setup] => [IP Control] => [Pre-Shared Key] => sony
  4. Give your TV a static IP address, or make a DHCP reservation for a specific IP address in your router
  5. Determine the MAC address of your TV: [Settings] => [Network] => [Network Setup] => [View Network Status]

Due to how custom_componentes are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.


You can’t perform that action at this time.