Bravia Android TV and Netflix

Hi
I have connected Bravia AndroidTV with HA and all works great but Netflix.
Playing any media on Netflix doesn’t change the state of BraviaTV Entity. From HA point of view playing Netflix is invisible.
So I can’t run any automation based on playing things on Netflix. Can some one help?
Sorry for my english.
Regards

Artur

2 Likes

Same issue for me, anyone got an idea?

1 Like

Same here…

Same here… Any solution?

Thanks.

I have a working solution here for my bravia so I can shell command these

./send_command.sh 192.168.2.112 AAAAAgAAABoAAAB8Aw==

{
“id”: 10,
“result”: [
{
“bundled”: true,
“type”: “IR_REMOTE_BUNDLE_TYPE_RESERVED01”
},
[
{
“name”: “Num1”,
“value”: “AAAAAQAAAAEAAAAAAw==”
},
{
“name”: “Num2”,
“value”: “AAAAAQAAAAEAAAABAw==”
},
{
“name”: “Num3”,
“value”: “AAAAAQAAAAEAAAACAw==”
},
{
“name”: “Num4”,
“value”: “AAAAAQAAAAEAAAADAw==”
},
{
“name”: “Num5”,
“value”: “AAAAAQAAAAEAAAAEAw==”
},
{
“name”: “Num6”,
“value”: “AAAAAQAAAAEAAAAFAw==”
},
{
“name”: “Num7”,
“value”: “AAAAAQAAAAEAAAAGAw==”
},
{
“name”: “Num8”,
“value”: “AAAAAQAAAAEAAAAHAw==”
},
{
“name”: “Num9”,
“value”: “AAAAAQAAAAEAAAAIAw==”
},
{
“name”: “Num0”,
“value”: “AAAAAQAAAAEAAAAJAw==”
},
{
“name”: “Num11”,
“value”: “AAAAAQAAAAEAAAAKAw==”
},
{
“name”: “Num12”,
“value”: “AAAAAQAAAAEAAAALAw==”
},
{
“name”: “Enter”,
“value”: “AAAAAQAAAAEAAAALAw==”
},
{
“name”: “GGuide”,
“value”: “AAAAAQAAAAEAAAAOAw==”
},
{
“name”: “ChannelUp”,
“value”: “AAAAAQAAAAEAAAAQAw==”
},
{
“name”: “ChannelDown”,
“value”: “AAAAAQAAAAEAAAARAw==”
},
{
“name”: “VolumeUp”,
“value”: “AAAAAQAAAAEAAAASAw==”
},
{
“name”: “VolumeDown”,
“value”: “AAAAAQAAAAEAAAATAw==”
},
{
“name”: “Mute”,
“value”: “AAAAAQAAAAEAAAAUAw==”
},
{
“name”: “TvPower”,
“value”: “AAAAAQAAAAEAAAAVAw==”
},
{
“name”: “Audio”,
“value”: “AAAAAQAAAAEAAAAXAw==”
},
{
“name”: “MediaAudioTrack”,
“value”: “AAAAAQAAAAEAAAAXAw==”
},
{
“name”: “Tv”,
“value”: “AAAAAQAAAAEAAAAkAw==”
},
{
“name”: “Input”,
“value”: “AAAAAQAAAAEAAAAlAw==”
},
{
“name”: “TvInput”,
“value”: “AAAAAQAAAAEAAAAlAw==”
},
{
“name”: “TvAntennaCable”,
“value”: “AAAAAQAAAAEAAAAqAw==”
},
{
“name”: “WakeUp”,
“value”: “AAAAAQAAAAEAAAAuAw==”
},
{
“name”: “PowerOff”,
“value”: “AAAAAQAAAAEAAAAvAw==”
},
{
“name”: “Sleep”,
“value”: “AAAAAQAAAAEAAAAvAw==”
},
{
“name”: “Right”,
“value”: “AAAAAQAAAAEAAAAzAw==”
},
{
“name”: “Left”,
“value”: “AAAAAQAAAAEAAAA0Aw==”
},
{
“name”: “SleepTimer”,
“value”: “AAAAAQAAAAEAAAA2Aw==”
},
{
“name”: “Analog2”,
“value”: “AAAAAQAAAAEAAAA4Aw==”
},
{
“name”: “TvAnalog”,
“value”: “AAAAAQAAAAEAAAA4Aw==”
},
{
“name”: “Display”,
“value”: “AAAAAQAAAAEAAAA6Aw==”
},
{
“name”: “Jump”,
“value”: “AAAAAQAAAAEAAAA7Aw==”
},
{
“name”: “PicOff”,
“value”: “AAAAAQAAAAEAAAA+Aw==”
},
{
“name”: “PictureOff”,
“value”: “AAAAAQAAAAEAAAA+Aw==”
},
{
“name”: “Teletext”,
“value”: “AAAAAQAAAAEAAAA/Aw==”
},
{
“name”: “Video1”,
“value”: “AAAAAQAAAAEAAABAAw==”
},
{
“name”: “Video2”,
“value”: “AAAAAQAAAAEAAABBAw==”
},
{
“name”: “AnalogRgb1”,
“value”: “AAAAAQAAAAEAAABDAw==”
},
{
“name”: “Home”,
“value”: “AAAAAQAAAAEAAABgAw==”
},
{
“name”: “Exit”,
“value”: “AAAAAQAAAAEAAABjAw==”
},
{
“name”: “PictureMode”,
“value”: “AAAAAQAAAAEAAABkAw==”
},
{
“name”: “Confirm”,
“value”: “AAAAAQAAAAEAAABlAw==”
},
{
“name”: “Up”,
“value”: “AAAAAQAAAAEAAAB0Aw==”
},
{
“name”: “Down”,
“value”: “AAAAAQAAAAEAAAB1Aw==”
},
{
“name”: “ClosedCaption”,
“value”: “AAAAAgAAAKQAAAAQAw==”
},
{
“name”: “Component1”,
“value”: “AAAAAgAAAKQAAAA2Aw==”
},
{
“name”: “Component2”,
“value”: “AAAAAgAAAKQAAAA3Aw==”
},
{
“name”: “Wide”,
“value”: “AAAAAgAAAKQAAAA9Aw==”
},
{
“name”: “EPG”,
“value”: “AAAAAgAAAKQAAABbAw==”
},
{
“name”: “PAP”,
“value”: “AAAAAgAAAKQAAAB3Aw==”
},
{
“name”: “TenKey”,
“value”: “AAAAAgAAAJcAAAAMAw==”
},
{
“name”: “BSCS”,
“value”: “AAAAAgAAAJcAAAAQAw==”
},
{
“name”: “Ddata”,
“value”: “AAAAAgAAAJcAAAAVAw==”
},
{
“name”: “Stop”,
“value”: “AAAAAgAAAJcAAAAYAw==”
},
{
“name”: “Pause”,
“value”: “AAAAAgAAAJcAAAAZAw==”
},
{
“name”: “Play”,
“value”: “AAAAAgAAAJcAAAAaAw==”
},
{
“name”: “Rewind”,
“value”: “AAAAAgAAAJcAAAAbAw==”
},
{
“name”: “Forward”,
“value”: “AAAAAgAAAJcAAAAcAw==”
},
{
“name”: “DOT”,
“value”: “AAAAAgAAAJcAAAAdAw==”
},
{
“name”: “Rec”,
“value”: “AAAAAgAAAJcAAAAgAw==”
},
{
“name”: “Return”,
“value”: “AAAAAgAAAJcAAAAjAw==”
},
{
“name”: “Blue”,
“value”: “AAAAAgAAAJcAAAAkAw==”
},
{
“name”: “Red”,
“value”: “AAAAAgAAAJcAAAAlAw==”
},
{
“name”: “Green”,
“value”: “AAAAAgAAAJcAAAAmAw==”
},
{
“name”: “Yellow”,
“value”: “AAAAAgAAAJcAAAAnAw==”
},
{
“name”: “SubTitle”,
“value”: “AAAAAgAAAJcAAAAoAw==”
},
{
“name”: “CS”,
“value”: “AAAAAgAAAJcAAAArAw==”
},
{
“name”: “BS”,
“value”: “AAAAAgAAAJcAAAAsAw==”
},
{
“name”: “Digital”,
“value”: “AAAAAgAAAJcAAAAyAw==”
},
{
“name”: “Options”,
“value”: “AAAAAgAAAJcAAAA2Aw==”
},
{
“name”: “Media”,
“value”: “AAAAAgAAAJcAAAA4Aw==”
},
{
“name”: “Prev”,
“value”: “AAAAAgAAAJcAAAA8Aw==”
},
{
“name”: “Next”,
“value”: “AAAAAgAAAJcAAAA9Aw==”
},
{
“name”: “DpadCenter”,
“value”: “AAAAAgAAAJcAAABKAw==”
},
{
“name”: “CursorUp”,
“value”: “AAAAAgAAAJcAAABPAw==”
},
{
“name”: “CursorDown”,
“value”: “AAAAAgAAAJcAAABQAw==”
},
{
“name”: “CursorLeft”,
“value”: “AAAAAgAAAJcAAABNAw==”
},
{
“name”: “CursorRight”,
“value”: “AAAAAgAAAJcAAABOAw==”
},
{
“name”: “ShopRemoteControlForcedDynamic”,
“value”: “AAAAAgAAAJcAAABqAw==”
},
{
“name”: “FlashPlus”,
“value”: “AAAAAgAAAJcAAAB4Aw==”
},
{
“name”: “FlashMinus”,
“value”: “AAAAAgAAAJcAAAB5Aw==”
},
{
“name”: “DemoMode”,
“value”: “AAAAAgAAAJcAAAB8Aw==”
},
{
“name”: “Analog”,
“value”: “AAAAAgAAAHcAAAANAw==”
},
{
“name”: “Mode3D”,
“value”: “AAAAAgAAAHcAAABNAw==”
},
{
“name”: “DigitalToggle”,
“value”: “AAAAAgAAAHcAAABSAw==”
},
{
“name”: “DemoSurround”,
“value”: “AAAAAgAAAHcAAAB7Aw==”
},
{
“name”: “*AD”,
“value”: “AAAAAgAAABoAAAA7Aw==”
},
{
“name”: “AudioMixUp”,
“value”: “AAAAAgAAABoAAAA8Aw==”
},
{
“name”: “AudioMixDown”,
“value”: “AAAAAgAAABoAAAA9Aw==”
},
{
“name”: “PhotoFrame”,
“value”: “AAAAAgAAABoAAABVAw==”
},
{
“name”: “Tv_Radio”,
“value”: “AAAAAgAAABoAAABXAw==”
},
{
“name”: “SyncMenu”,
“value”: “AAAAAgAAABoAAABYAw==”
},
{
“name”: “Hdmi1”,
“value”: “AAAAAgAAABoAAABaAw==”
},
{
“name”: “Hdmi2”,
“value”: “AAAAAgAAABoAAABbAw==”
},
{
“name”: “Hdmi3”,
“value”: “AAAAAgAAABoAAABcAw==”
},
{
“name”: “Hdmi4”,
“value”: “AAAAAgAAABoAAABdAw==”
},
{
“name”: “TopMenu”,
“value”: “AAAAAgAAABoAAABgAw==”
},
{
“name”: “PopUpMenu”,
“value”: “AAAAAgAAABoAAABhAw==”
},
{
“name”: “OneTouchTimeRec”,
“value”: “AAAAAgAAABoAAABkAw==”
},
{
“name”: “OneTouchView”,
“value”: “AAAAAgAAABoAAABlAw==”
},
{
“name”: “DUX”,
“value”: “AAAAAgAAABoAAABzAw==”
},
{
“name”: “FootballMode”,
“value”: “AAAAAgAAABoAAAB2Aw==”
},
{
“name”: “iManual”,
“value”: “AAAAAgAAABoAAAB7Aw==”
},
{
“name”: “Netflix”,
“value”: “AAAAAgAAABoAAAB8Aw==”
},
{
“name”: “Assists”,
“value”: “AAAAAgAAAMQAAAA7Aw==”
},
{
“name”: “FeaturedApp”,
“value”: “AAAAAgAAAMQAAABEAw==”
},
{
“name”: “FeaturedAppVOD”,
“value”: “AAAAAgAAAMQAAABFAw==”
},
{
“name”: “GooglePlay”,
“value”: “AAAAAgAAAMQAAABGAw==”
},
{
“name”: “ActionMenu”,
“value”: “AAAAAgAAAMQAAABLAw==”
},
{
“name”: “Help”,
“value”: “AAAAAgAAAMQAAABNAw==”
},
{
“name”: “TvSatellite”,
“value”: “AAAAAgAAAMQAAABOAw==”
},
{
“name”: “WirelessSubwoofer”,
“value”: “AAAAAgAAAMQAAAB+Aw==”
},
{
“name”: “AndroidMenu”,
“value”: “AAAAAgAAAMQAAABPAw==”
}
]
]
}

Hi All,

Thanks a lot for this information, however I’m having an issue calling the shell scripts from within Home Assistant (running on a PC). They work fine from the command line using bash:

$ bash send_command.sh 192.168.1.76 AAAAAgAAABoAAAB8Aw==

but won’t send from within HASS. I’m a total hack at this, so I’m sure it’s something simple in the formatting…hoping someone can help me out.

What I have right now is the .sh files from github saved in the .homeassistant directory, and:

shell_command:
netflix: send_command.sh 192.168.1.76 AAAAAgAAABoAAAB8Aw==

in configuration.yaml

The shell_command is set up correctly and I can call the service from the HASS front end, but nothing happens…I get a toast saying it’s calling the service and then nothing happens on the TV or otherwise. I have the log level set to maximum, but all I get is:

e[36m2018-01-01 17:22:37 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 148698448: Received {‘service_data’: {}, ‘type’: ‘call_service’, ‘id’: 11, ‘service’: ‘netflix’, ‘domain’: ‘shell_command’}e[0m
e[32m2018-01-01 17:22:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=, service_call_id=82562960-6, service=netflix, domain=shell_command>e[0m
e[32m2018-01-01 17:22:37 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=82562960-6>e[0m
e[36m2018-01-01 17:22:37 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 148698448: Sending {‘success’: True, ‘type’: ‘result’, ‘id’: 11, ‘result’: None}e[0m

which seems to indicate that HASS is perfectly happy with the outcome…

I’ve tried single and double quotes around the script name and/or the data. I’ve tried every permutation of specifying a path I can think of, I’ve hardwired the script to include the IP and IRCC strings

…sorry cut off…

I’ve tried single and double quotes around the script name and/or the data. I’ve tried every permutation of specifying a path I can think of, I’ve hardwired the script to include the IP and IRCC strings (which again executed fine from the command line)…no success.

Any assistance would be greatly appreciated…

thanks.

try this

  netflix: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAgAAABoAAAB8Aw=='
#  tv_power: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAAVAw=='
  left: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAQAAAAEAAAAvAw=='
  mute: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAAUAw=='
  play: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAgAAAJcAAAAaAw=='
  pause: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAgAAAJcAAAAZAw=='
  enter: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAALAw=='
  up: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAB0Aw=='
  down: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAB1Aw==' 
  right: '/Users/k/bravia/./send_command.sh 192.168.2.112 AAAAAQAAAAEAAAAzAw=='

Thanks RobDYI,

It turns out the issue is that it was looking in the Python root, not Homeassistant root (where the rest of the config files are)…so, whether I started with ./ or whatever there was no valid path possible to the scripts. Not glamourous but I pasted the script around a few places and kept trying until Netflix turned on.

You would think that max level logging in Home Assistant would throw a file not found or something, but perhaps it was the sh or bash that was throwing the error and HASS couldn’t see it.

Anyway, thanks for the help, and Happy New Year!

Dear RobDYI, thank you for replying me in the other topic. Can I use this script for my stock Sony Barvia component ? And how can I do this please. Thank you ! My regards.

Sorry, you cannot use this with the stock Bravia component. Also, I think you installed HA by hass.io so you cannot install this on your HA.

Ok RobDYI, it’s a sad thing then … Thank you !