Skip to main content

BraviaRC Python Package

Installation

  • pip3 install git+https://github.com/dcnielsen90/braviarc.git

About

BraviaRC is a Python library for remote communication with Sony Bravia TVs 2013 and newer (http://info.tvsideview.sony.net/en_ww/home_device.html#bravia)

Requirements

Python 3.3 or 3.4 is required.

Usage

#new instance for TV at 192.168.1.25
braviarc = BraviaRC('192.168.1.25')

#connect to the instance (or register)
pin = '1878'
braviarc.connect(pin, 'my_device_id', 'my device name')

#check connection
if braviarc.is_connected():

  #get power status
  power_status = braviarc.get_power_status()
  print (power_status)

  #get playing info
  playing_content = braviarc.get_playing_info()

  #print current playing channel
  print (playing_content.get('title'))

  #get volume info
  volume_info = braviarc.get_volume_info()

  #print current volume
  print (volume_info.get('volume'))

  #change channel
  braviarc.play_content(uri)
  
  #get app list
  app_info = braviarc.load_app_list()
  print (app_info)
  
  #start a given app
  braviarc.start_app("Netflix")

  #turn off the TV
  braviarc.turn_off()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

braviarc-homeassistant-dev-0.3.8.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file braviarc-homeassistant-dev-0.3.8.tar.gz.

File metadata

  • Download URL: braviarc-homeassistant-dev-0.3.8.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9

File hashes

Hashes for braviarc-homeassistant-dev-0.3.8.tar.gz
Algorithm Hash digest
SHA256 efbf5144409a5454eff9a7a65632ed2bb5e7b51f243b6f43f29f8ef39bb9246e
MD5 71302471a37c1c7cfcd9a2683db230a2
BLAKE2b-256 e21bdb7bbbc40248158a6ebcf549bd2baa42ff26799568fb29d0ffd2983b5a2b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.8 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page