Sony Bravia Android TV

I see. In my screenshot it shows the channel (“ABC NEWS”) and program (“ABC NEWS Monday”) I was watching just now.
The “Source” selector contains all TV channels and the 4 HDMI ports, but I cannot select apps.

1 Like

App switching is what I’m trying to do with Sony TV, is it possible?

Did you follow what @exxamalte said and click on the three dots?

PS, the source tells you what is supported:

SUPPORT_BRAVIA = SUPPORT_PAUSE | SUPPORT_VOLUME_STEP | \
             SUPPORT_VOLUME_MUTE | SUPPORT_VOLUME_SET | \
             SUPPORT_PREVIOUS_TRACK | SUPPORT_NEXT_TRACK | \
             SUPPORT_TURN_ON | SUPPORT_TURN_OFF | \
             SUPPORT_SELECT_SOURCE | SUPPORT_PLAY

Yes, I did. But here is a screenshot anyway.
3

Also what “source” tells me what is supported? How did you find that?

You can have a look at my custom component.
I have a Sony Bravia without Android TV, but the component should support some more stuff also for Android TVs.

From what I remember, on my TV the source selection lets me choose between TV, HDMI1, HDMI2 etc. I also get TV channel selection.

@sparkydave Yea, the source includes all of these options. But that is not my problem. My main problem is to see the status of the tv. Right now it shows “APP” when the TV is on and nothing more. It doesnt show which app is running or if it is idle.
@gerard33 Thank you for this! I will check it (today probably) and will let you know how it goes!

@gerard33 Yes! This works! Somewhat. It only shows if the TV is on or off, I can change the volume and the source, but it doesnt show which app I am running. I dont have TV channels ( no antenna… really!) to test for the channel info, but I dont care (yea… no antenna). It would be nice if I can see the app running and info of that app if possible.

Also a suggestion: instead of no info (resumed after pause or app opened) you could just say idle to avoid all that long text. Just saying…

@INTEL I think I found a way to control the TV (app changing etc) I will come back after I have this figured. It is a long google way! :slight_smile:

Please do, I’m still trying to figure out the same thing myself :smiley:

OK, I am back with news. I have managed to control my Bravia through HA by using a custom script I found here:

The script sends codes to the TV through IP control.
So I collected all the commands and added them to shell_command component:

I then used Photoshop and created my very own virtual remote control (it looks a bit like the original TV remote)
I now have buttons in my frontend of HA that controls the TV

I then made use of the Lovelace picture-elements cards and images and I can now control my TV.

To be honest it is not very useful since it is just a remote. I can just grab my original remote and do the same, I know…
BUT
I found a topic on another forum where someone pointed out that we can get the status of the TV using similar commands. I couldnt figure out how since I am bad at this, unless someone guides me, but I thought I should post it here and maybe you guys can figure this out:

http://forum.micasaverde.com/index.php?topic=60854.0
Somewhere in the middle of the OPs post, he mentions:

Then I switched the Low level protocol to control the device.
Way easier to control… All the codes are here :
http://tmolberg.kpolberg.net/wp-content/uploads/2016/02/BRAVIA_B2B_SimpleIPControlProtocol_ForAndroidModels_v0.9.pdf

He then says:

I still need to find a way to catch the replies from the tv and update my Vera accordingly.

And the last post replies with that:

You can catch the replies from the TV using tcp:receive.

I am not in position to understand how this can be done, but if some of you know, then this could become a great full operational component to control and get the status of a Bravia.
I may be mistaken here but it looks like if someone can figure out these commands, then we can change apps on the tv, and maybe also start actions like play a youtube video without the need of guiding through the menu using a series of commands.

5 Likes

I finially got home and can confirm that my Sony only reports ‘app’ to HA in the media_player if I have an app running, but it shows the actual TV channel if I am watching one in normal TV mode

Would like to share your remote images and front end Lovelace setup for the remote part :)? It looked awesome!

Hi would you please share with me how you have used shell_command component? I am new to HA so would like to know how to integrate my sony bravia tv.
thanks

Sure… Here are the commands:

# Bravia control commands
bravia_num1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAAAw=='
bravia_num2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAABAw=='
bravia_num3: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAACAw=='
bravia_num4: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAADAw=='
bravia_num5: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAEAw=='
bravia_num6: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAFAw=='
bravia_num7: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAGAw=='
bravia_num8: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAHAw=='
bravia_num9: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAIAw=='
bravia_num0: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAJAw=='
bravia_num11: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAKAw=='
bravia_num12: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAALAw=='
bravia_enter: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAALAw=='
bravia_gguide: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAOAw=='
bravia_channelup: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAQAw=='
bravia_channeldown: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAARAw=='
bravia_volumeup: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAASAw=='
bravia_volumedown: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAATAw=='
bravia_mute: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAUAw=='
bravia_tvpower: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAVAw=='
bravia_audio: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAXAw=='
bravia_mediaaudiotrack: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAXAw=='
bravia_tv: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAkAw=='
bravia_input: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAlAw=='
bravia_tvinput: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAlAw=='
bravia_tvantennacable: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAqAw=='
bravia_wakeup: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAuAw=='
bravia_poweroff: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAvAw=='
bravia_sleep: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAvAw=='
bravia_right: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAAzAw=='
bravia_left: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA0Aw=='
bravia_sleeptimer: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA2Aw=='
bravia_analog2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA4Aw=='
bravia_tvanalog: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA4Aw=='
bravia_display: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA6Aw=='
bravia_jump: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA7Aw=='
bravia_picoff: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA+Aw=='
bravia_pictureoff: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA+Aw=='
bravia_teletext: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAA/Aw=='
bravia_video1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABAAw=='
bravia_video2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABBAw=='
bravia_analogrgb1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABDAw=='
bravia_home: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABgAw=='
bravia_exit: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABjAw=='
bravia_picturemode: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABkAw=='
bravia_confirm: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAABlAw=='
bravia_up: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAB0Aw=='
bravia_down: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAQAAAAEAAAB1Aw=='
bravia_closedcaption: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAAAQAw=='
bravia_component1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAAA2Aw=='
bravia_component2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAAA3Aw=='
bravia_wide: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAAA9Aw=='
bravia_epg: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAABbAw=='
bravia_pap: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAKQAAAB3Aw=='
bravia_tenkey: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAMAw=='
bravia_bscs: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAQAw=='
bravia_ddata: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAVAw=='
bravia_stop: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAYAw=='
bravia_pause: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAZAw=='
bravia_play: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAaAw=='
bravia_rewind: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAbAw=='
bravia_forward: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAcAw=='
bravia_dot: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAdAw=='
bravia_rec: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAgAw=='
bravia_return: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAjAw=='
bravia_blue: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAkAw=='
bravia_red: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAlAw=='
bravia_green: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAmAw=='
bravia_yellow: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAnAw=='
bravia_subtitle: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAoAw=='
bravia_cs: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAArAw=='
bravia_bs: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAsAw=='
bravia_digital: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAAyAw=='
bravia_options: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAA2Aw=='
bravia_media: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAA4Aw=='
bravia_prev: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAA8Aw=='
bravia_next: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAA9Aw=='
bravia_dpadcenter: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABKAw=='
bravia_cursorup: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABPAw=='
bravia_cursordown: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABQAw=='
bravia_cursorleft: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABNAw=='
bravia_cursorright: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABOAw=='
# This messed with all my settings on my bravia. It looks like it is something like reset... Dont use it.
# bravia_shopremotecontrolforceddynamic: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAABqAw=='
bravia_flashplus: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAB4Aw=='
bravia_flashminus: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAB5Aw=='
bravia_demomode: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAJcAAAB8Aw=='
bravia_analog: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAHcAAAANAw=='
bravia_mode3d: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAHcAAABNAw=='
bravia_digitaltoggle: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAHcAAABSAw=='
bravia_demosurround: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAHcAAAB7Aw=='
bravia_ad: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAA7Aw=='
bravia_audiomixup: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAA8Aw=='
bravia_audiomixdown: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAA9Aw=='
bravia_photoframe: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABVAw=='
bravia_tv_radio: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABXAw=='
bravia_syncmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABYAw=='
bravia_hdmi1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABaAw=='
bravia_hdmi2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABbAw=='
bravia_hdmi3: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABcAw=='
bravia_hdmi4: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABdAw=='
bravia_topmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABgAw=='
bravia_popupmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABhAw=='
bravia_onetouchtimerec: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABkAw=='
bravia_onetouchview: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABlAw=='
bravia_dux: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAABzAw=='
bravia_footballmode: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAB2Aw=='
bravia_imanual: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAB7Aw=='
bravia_netflix: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAABoAAAB8Aw=='
bravia_assists: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAA7Aw=='
bravia_featuredapp: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABEAw=='
bravia_featuredappvod: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABFAw=='
bravia_googleplay: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABGAw=='
bravia_actionmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABLAw=='
bravia_help: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABNAw=='
bravia_tvsatellite: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABOAw=='
bravia_wirelesssubwoofer: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAB+Aw=='
bravia_androidmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABPAw=='
bravia_recordermenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABIAw=='
bravia_stbmenu: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABJAw=='
bravia_muteon: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAsAw=='
bravia_muteoff: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAtAw=='
bravia_audiooutput_audiosystem: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAiAw=='
bravia_audiooutput_tvspeaker: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAjAw=='
bravia_audiooutput_toggle: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAkAw=='
bravia_applicationlauncher: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAAAqAw=='
bravia_youtube: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAAAMQAAABHAw=='
bravia_partnerapp1: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAAAw=='
bravia_partnerapp2: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAABAw=='
bravia_partnerapp3: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAACAw=='
bravia_partnerapp4: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAADAw=='
bravia_partnerapp5: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAEAw=='
bravia_partnerapp6: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAFAw=='
bravia_partnerapp7: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAGAw=='
bravia_partnerapp8: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAHAw=='
bravia_partnerapp9: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAIAw=='
bravia_partnerapp10: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAJAw=='
bravia_partnerapp11: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAKAw=='
bravia_partnerapp12: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAALAw=='
bravia_partnerapp13: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAMAw=='
bravia_partnerapp14: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAANAw=='
bravia_partnerapp15: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAOAw=='
bravia_partnerapp16: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAPAw=='
bravia_partnerapp17: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAAQAw=='
bravia_partnerapp18: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAARAw=='
bravia_partnerapp19: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAASAw=='
bravia_partnerapp20: 'bash /home/homeassistant/.homeassistant/send_command.sh 192.168.1.6 AAAAAgAACB8AAAATAw=='

Just download the script I shared and follow the install instructions. After that follow the documentation of the shell command and you should be able to use it successfully.

@asif Sorry, I dont have them anymore as I stopped using the script. I guess i deleted them… :frowning:

3 Likes

no worries, thanks a lot anyways :wink:

I found my old files and setup!
I had lots of messages asking for these files.
To anyone interested, I am just leaving this here:

View config:

  - title: Media
    panel: false
    icon: mdi:television-classic
    id: media
    background: center / cover no-repeat url("/local/images/cinemabg.jpg") fixed
    cards:
      - type: horizontal-stack
        cards:
      # Dpad buttons
          - type: picture-elements
            image: /local/images/remote/dpad.png
            elements:
              - type: image
                image: /local/images/remote/confirm.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_confirm
                style:
                  top: 50%
                  left: 50%
                  width: 10%
              - type: image
                image: /local/images/remote/arrow-left.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_left
                style:
                  top: 50%
                  left: 27%
                  width: 15%
              - type: image
                image: /local/images/remote/arrow-right.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_right
                style:
                  top: 50%
                  left: 73%
                  width: 15%
              - type: image
                image: /local/images/remote/arrow-up.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_up
                style:
                  top: 15%
                  left: 50%
                  width: 15%
              - type: image
                image: /local/images/remote/arrow-down.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_down
                style:
                  top: 85%
                  left: 50%
                  width: 15%
              - type: image
                image: /local/images/remote/picoff.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_pictureoff
                style:
                  top: 15%
                  left: 87%
                  width: 20%
              - type: image
                image: /local/images/remote/back.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_exit
                style:
                  top: 85%
                  left: 13%
                  width: 20%
              - type: image
                image: /local/images/remote/home.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_home
                style:
                  top: 85%
                  left: 87%
                  width: 20%

      - type: horizontal-stack
        cards:
      # Volume Buttons
          - type: picture-elements
            image: /local/images/remote/bg.png
            elements:
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: none
                style:
                  top: 20%
                  left: 70%
                  width: 30%
              - type: icon
                icon: mdi:volume-mute
                tap_action:
                  action: none
                service: shell_command.bravia_mute
                style:
                  top: 20%
                  left: 76%
                  --iron-icon-height: 50%
                  --iron-icon-width: 50%
              - type: image
                image: /local/images/remote/pwrbtn.png
                tap_action:
                  action: none
                style:
                  top: 80%
                  left: 70%
                  width: 30%
              - type: icon
                icon: mdi:power-standby
                tap_action:
                  action: call-service
                service: shell_command.bravia_tvpower
                style:
                  top: 80%
                  left: 76%
                  --iron-icon-height: 50%
                  --iron-icon-width: 50%
              - type: image
                image: /local/images/remote/chngbtn.png
                tap_action:
                  action: call-service
                style:
                  top: 50%
                  left: 30%
                  width: 30%
              - type: image
                image: /local/images/remote/plus.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_volumeup
                style:
                  top: 20%
                  left: 30%
                  width: 20%
              - type: image
                image: /local/images/remote/minus.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_volumedown
                style:
                  top: 80%
                  left: 30%
                  width: 30%

          - type: picture-elements
            image: /local/images/remote/bg.png
            elements:
      # App Buttons
              - type: image
                image: /local/images/remote/netflix.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_netflix
                style:
                  top: 20%
                  left: 25%
                  width: 40%
              - type: image
                image: /local/images/remote/youtube.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_youtube
                style:
                  top: 20%
                  left: 75%
                  width: 40%
              - type: image
                image: /local/images/remote/spotify.png
                tap_action:
                  action: call-service
                service: shell_command.tobeconfigured
                style:
                  top: 40%
                  left: 25%
                  width: 40%


      # Media buttons
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_rewind
                style:
                  top: 90%
                  left: 20%
                  width: 25%
              - type: icon
                icon: mdi:skip-backward
                tap_action:
                  action: call-service
                service: shell_command.bravia_rewind
                style:
                  top: 90%
                  left: 42%
                  --iron-icon-height: 25%
                  --iron-icon-width: 25%
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_stop
                style:
                  top: 90%
                  left: 50%
                  width: 25%
              - type: icon
                icon: mdi:stop
                tap_action:
                  action: call-service
                service: shell_command.bravia_stop
                style:
                  top: 90%
                  left: 62%
                  --iron-icon-height: 40%
                  --iron-icon-width: 40%
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_forward
                style:
                  top: 90%
                  left: 80%
                  width: 25%
              - type: icon
                icon: mdi:skip-forward
                tap_action:
                  action: call-service
                service: shell_command.bravia_forward
                style:
                  top: 90%
                  left: 82%
                  --iron-icon-height: 80%
                  --iron-icon-width: 80%
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: call-service
                service: shell_command.bravia_pause
                style:
                  top: 70%
                  left: 30%
                  width: 25%
              - type: icon
                icon: mdi:pause
                tap_action:
                  action: call-service
                service: shell_command.bravia_pause
                style:
                  top: 70%
                  left: 48.5%
                  --iron-icon-height: 30%
                  --iron-icon-width: 30%
              - type: image
                image: /local/images/remote/btn.png
                tap_action:
                  action: none
                style:
                  top: 70%
                  left: 65%
                  width: 25%
              - type: icon
                icon: mdi:play
                tap_action:
                  action: call-service
                service: shell_command.bravia_play
                style:
                  top: 70%
                  left: 72%
                  --iron-icon-height: 50%
                  --iron-icon-width: 50%

Since I cant upload a .zip file, I am uploading the images, one by one.
Please bare with me. Just save all images in your www/images/remote folder (you have to create one)

Images

arrow-down
arrow-left
arrow-right
arrow-up back

btn confirm home minus netflix picoff plus pwrbtn spotify youtube

I hope the filenames will not be altered.

EDIT: It looks like the files were renamed after uploading them.
Here is a screenshot of how they should be.

1 Like

Thank you.
It works perfect :slight_smile:

Hi guys, I’m here to get some help with my Sony Bravia tv.

I set the Tv in HA with “braviatv” component and it work perfectly.
I can turn on and off, change channels and source, turn volume up and down. Made it all through the TV entity in HA Interface. So far everything fine !

When I add google home voice commands, I can only turn TV on and off.

I just want to be able to do with voice commands all the actions I had with entity in HA Interface.
Can anyone help me to do so, I’m quite new with HA configurations and codes.

Thank you

I just moved to HA from OpenHAB and I am so happy now. But the Bravia integration in OpenHAB was better. Each App was a channel just like the other sources which you could switch on and off and get the state.