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.
