Awesome. I got it working on my older bravia 100% . But with my newer one (2 months old) It turns off the tv and switches sources fine, but will not turn on the tv. What are the settings on the bravia that I need to look at to make sure that WoL is setup correctly?
Does the new TV have Android TV? Then use android: True
.
If it’s not an Android TV then make sure you use the correct MAC address.
Ahh I forgot the android: True on that entry. My wife is getting really tired of me rebooting HA today. LOL . One more time I guess. LOL
Thanks
Can this be used to launch the apps on a non-Android Bravia? I’ve got the ability to switch channels and inputs but can’t see a way to trigger Netflix or Plex for example.
Edit: found the post which describes how to do this for Netflix above, however substituting “Netflix” with “Plex” does not work.
This only works for Netflix, at least on non Android TV Bravia’s.
If it’s of any help to you at all, I’ve had a dig with Wireshark and it appears what’s required is a HTTP POST to http://IP-ADDRESS/DIAL/apps/com.sony.tv.opa-plex-5.
Unfortunately that’s where my usefulness ends
Getting an error in my log when restated HA, has something changes?
2019-01-07 21:45:46 ERROR (Thread-5) [homeassistant.util.package] Unable to install package https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5: HTTP error 502 while getting https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5
Could not install requirement https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5 because of error 502 Server Error: Bad Gateway for url: https://github.com/gerard33/braviarc/archive/0.4.5.zip
Could not install requirement https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5 because of HTTP error 502 Server Error: Bad Gateway for url: https://github.com/gerard33/braviarc/archive/0.4.5.zip for URL https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5
2019-01-07 21:45:46 ERROR (MainThread) [homeassistant.requirements] Not initializing media_player.braviatv_psk because could not install requirement https://github.com/gerard33/braviarc/archive/0.4.5.zip#braviarc==0.4.5
I finally got a sleep timer to work!!!
I found the following 3 options work as PLAY_MEDIA_OPTIONS
‘Sleep’, ‘SleepTimer’, ‘GooglePlay’,
Sleep seems to just turn my TV off, but SleepTimer will set a 15 minute timer, additional runs will set increments in the following order (15, 30, 45, 60, 90, 120, off)
GooglePlay launches Google Play.
Some Sony remotes do have a “YouTube” button, but I was not successful finding an option that would work.
That looks like you are using an old version of braviatv_psk.py
.
Latest version can be found here https://github.com/custom-components/media_player.braviatv_psk.
Hi, I’m trying to get this working on Hassio but no luck. I originally had my Bravia setup using the instruction here…
I’ve removed the config and the .yaml ebtry and replaced with yours, when I ‘check config’ the dial never completes, does spins and spins. Upon restart the device does not show up. I have completed all the steps outlined in the instructions in Hassio and on the TV.
Any ideas? Thank you
For some reason this seems to hang to state “TV started, waiting for program info”. After that theres no difference if I close or start TV. Plugging tv from mains doesn’t affect anything. Also component power button doesn’t do anything even it says “turning off tv”.
Restarting hassio resolves situation until it happens again. Using ver 0.2.4 with non android tv. And previously this worked fine. Any clue?
Here it is still working fine, also on a non Android TV. Something changed in your config.yaml or in your TVs IP address maybe?
Hah, got it working again. It was about tv IP. I had changed my router and mistyped tv mac for IP reservation table. So reserved IP wasn’t applied and got random IP from dhcp. And I didn’t first check TV IP because this component partly worked. Thanks
on the remote there is the netflix button but I do not see it with this setting, is there a way to make netflix appear between the channels?
great!!!
is it possible to have the pause play buttons etc … or to have some sort of remote control with lovelace or other? thank you
Yes definitely. You can use all options shown here https://github.com/custom-components/media_player.braviatv_psk/blob/master/custom_components/media_player/braviatv_psk.py#L44-L48.
I use the excellent Mini Media Player from @kalkih with some remote buttons which looks like this.
Could you please post an example of Lovelace button configuration for Mini Media Player? I mean the string to call bravia tv component.
Here is the config. All options to use can be found in the link in my post above.
Edit: changed HDMI2 to source.
- type: custom:mini-media-player
entity: media_player.sony_bravia_tv
icon: 'mdi:television'
hide:
power_state: false
volume_stateless: true
shortcuts:
hide_when_off: true
buttons:
- icon: mdi:numeric-1-box
# name: NPO1
type: tvshow
id: Num1
- icon: mdi:numeric-2-box
type: tvshow
id: Num2
- icon: mdi:numeric-3-box
type: tvshow
id: Num3
- icon: mdi:netflix
type: source
id: 'HDMI 2'
- icon: mdi:play-circle
type: tvshow
id: Play
- icon: mdi:pause-circle
type: tvshow
id: TvPause
- icon: mdi:information
type: tvshow
id: Display
- icon: mdi:television-guide
type: tvshow
id: EPG
I also use these options that I manually added.