Sony Bravia TV

The braviatv platform allows you to control a Sony Bravia TV.

Almost all Sony Bravia TV 2013 and newer are supported. A more generic method for older TVs connected to a Raspberry Pi with HDMI-CEC is explained further below.

You can setup the Sony Bravia TV via Configuration >> Integrations in the UI, click the button with + sign and from the list of integrations select Sony Bravia TV.

If you have following configuration in your configuration.yaml file it will be imported to the Integrations:

# Example configuration.yaml entry
  - platform: braviatv

Configuration Variables



The IP of the Sony Bravia TV, e.g.,



The name to use on the frontend.

Default value:

Sony Bravia TV

A new setup via configuration.yaml file is not possible.

Extra configuration for the integration

The integration allows you to change ignored TV sources from the front end. Enter which Sony Bravia TV integration you want to change options on and press the cog wheel.

For TVs older than 2013

Users of TVs older than 2013 have another option for controlling their TV via Home Assistant.


If you have a Raspberry Pi connected to your TV:

  - platform: command_line
        command_on: ssh [email protected][IP] "echo 'on 0' | cec-client -s"
        command_off: ssh [email protected][IP] "echo 'standby 0' | cec-client -s"
        command_state: ssh [email protected][IP] "echo 'pow 0' | cec-client -s |grep 'power status:'"
        value_template: '{{ value == "power status: on" }}'

Using cec-client is a great method to turn your TV off/on, however the trade off is if you’re using Kodi, it will no longer be able to control your TV using the TV Remote.

This is because only one process can control the CEC functionality within the Raspberry Pi at a time and running the above commands terminates the functionality inside libCEC within Kodi. Kodi must be restarted for TV remove functionality to work again.


If your desire is only to turn on your TV, the following “workaround” may be desirable:

Change the ‘on’ command to a restart for Kodi. This doesn’t reboot the Kodi device.

Restarting Kodi will trigger a HDMI-CEC event to bring the TV out of standby. The following can replace your TV ‘on’ command.

command_on: ssh [email protected][IP] "systemctl restart kodi"