braviaproapi.bravia.Remote

class braviaproapi.bravia.Remote(bravia_client, http_client)

Bases: object

Provides remote control functionality for the target device.

Parameters:
  • bravia_client – The parent BraviaClient instance.
  • http_client – The Http instance associated with the parent client.
send_button(button)

Sends a remote control button press to the target device. Button codes can come from the predefined ButtonCode enum, or System.get_remote_control_info() can return a device-specific list.

Parameters:

button (ButtonCode or str) – The button code to send.

Raises:
  • TypeError – One or more arguments is the incorrect type.
  • ApiError – The request to the target device failed.
class braviaproapi.bravia.ButtonCode

Bases: enum.Enum

Describes the default button codes for the IRCC remote control interface.

POWER

Power on/off

INPUT

Change input source

SYNC_MENU

Open the Bravia Sync menu

HDMI_1

Switch to HDMI 1 source

HDMI_2

Switch to HDMI 2 source

HDMI_3

Switch to HDMI 3 source

HDMI_4

Switch to HDMI 4 source

NUM_1

‘1’ key

NUM_2

‘2’ key

NUM_3

‘3’ key

NUM_4

‘4’ key

NUM_5

‘5’ key

NUM_6

‘6’ key

NUM_7

‘7’ key

NUM_8

‘8’ key

NUM_9

‘9’ key

NUM_0

‘0’ key

DOT

‘.’ or ‘-’ key used for tuner subchannels

CAPTION

Set closed captioning mode

RED

Red favorite key

GREEN

Green favorite key

YELLOW

Yellow favorite key

BLUE

Blue favorite key

UP

Up directional key

DOWN

Down directional key

RIGHT

Right directional key

LEFT

Left directional key

CONFIRM

Confirm/OK key

HELP

Opens system help

DISPLAY

Opens display options

OPTIONS

Opens options menu (Action Menu)

BACK

Returns to previous screen

HOME

Goes to home screen

VOLUME_UP

Increase volume by one unit

VOLUME_DOWN

Decrease volume by one unit

MUTE

Mute audio

AUDIO

Switch audio mode

CHANNEL_UP

Go to next TV channel

CHANNEL_DOWN

Go to previous TV channel

PLAY

Play content

STOP

Stop content

FLASH_PLUS

Fast forward

FLASH_MINUS

Rewind

PREV

Go to previous track

NEXT

Go to next track