Thanks for your kind words
The services are available here with v0.3.5.Just to be sure; you need to restart HA after installing a new version via HACS.
I did. Version is 0.3.5. TV Android but neither service appears.
I’ve done this another way using CURL and assigning the shell commands to each mini media player button, but would like to do it more elegantly with the services.
My setup is RASPBERRY Pi, Hassio on docker and supervisor.
Service still not appearing. Even rebooted the whole thing and nothon. Current version of Homeassistant is 2020.12.0
Well Murphy’s Law… after writing the above reinstalled everything in new card. Now it shows. Thank you for the patience.
As for the app name showing in the title property when running(ex.: neteflix or youtube) there’s no way right?
All the best!
tried out this component but can’t get the picture mode working on my Sony XH9005, am I missing something? Or isn’t it supported on this model?
Hello! I have this component working with a non-android Sony Bravia TV. The TV is connected with HDMI with a Sony Home Cinema unit which I use as audio output for TV. When I use the remote to turn on the TV everything works fine. However, when I use this addon to turn it on, the TV turns ON, the Home Cinema turns ON, the volume control can control home cinema volume, but I get no sound at all.
Any ideas why is this happening?
@gerard33 - I’m looking at updating your code to make it async, which looks fairly simple. I’m hoping it will solve the fairly regular 10 second warnings/errors I get from HA.
Would you be interested in a PR on it?
Great! All PRs for improvement are more than welcome
Does anyone here use this along with Google Home to add the TV to Google Home? Up until recently, it has been working fine, able to ask google to turn TV on and off, but recently whenever i try to turn on or off, google says “power controls are not available right now”. Anyone else noticed this? Interesting though, if i manually go into Google Home and turn it on through the UI it works?
Feeling like the dumbest guy alive right now, I remember I saw a notification about this thread and I keep thinking it’s on github and not finding anything when i go there
Anyway, updating from my previous post, I manage to get the volume button working (doesn’t work when slider is on) but i still haven’t get to map the buttons on the controller (left right up down enter would be useful now cause every time I turn on the tv it switch to the sound bar screen for me to select source and i need to look for the controller to do that).
Other than that, I truly appreciate the effort and time you put in to make this work, but if you need to test something on android tv (in my case the KD55X7500H, let me know and see what I can help)
Ok, why would you need to map anything? What you need is just to setup the tv by the instructions in github and to add media player card with the created media_player entity.
- platform: braviatv_psk
host: !secret sony_lanip
psk: !secret sony_psk
mac: !secret sony_lanmac
amp: False
android: True
name: Sony TV
This is my config, i dont see how it can be easier to setup…
I believe it’s because of the custom card component iirc. Can you show me the card you have on HA in case I’m doing it wrong?
This is mine when the TV is close
This is the source filter for hdmi
This is the card when the TV is on
I initially set up the tv with different source, I forgot the actual configuration but something like this
- HDMI_3 / ARC to PS4
- HDMI_2 to desktop running HA (main use of the tv for youtube and home media server)
- install a few app directly to the TV (netflix, abc news, yahoo, CNA etc)
So on the last image, when I click on the PlayStation logo, it will turn on the tv then jump to HDMI_1 directly which trigger the ps4 to turn on and I start using it
The desktop is always running so clicking on the ubuntu icon just turn on the tv and jumping directly to desktop or where I last left off
Same goes to the other app, where I can launch the app directly by clicking on the button here instead of
- Get the controller
- Clicking home on the tv to go back to main page
- Loop through the app list
- Launch the app.
I have about the same thing on the yaml like what you show here, this is mine
media_player:
- platform: braviatv_psk
host: !secret 7500IP
psk: !secret 7500PW
android: True
sourcefilter:
- HDMI
time_format: 24H
name: EpicVU1
What I mentioned about mapping is the “button” command shown in braviatv_psk.bravia_command from the github page which I can’t get it to work
This is the current custom card that I am having now (the same one showing on the image above)
I currently added a Sony soundbar with the ps4 and desktop connecting directly to the soundbar and then redirect the signal to the TV via HDMI_3 / ARC now
It’s annoying now that when I turn the TV on (no matter what button I press on the card, it will turn on the tv and go to the “home page” of the soundbar for me to select a source) and I will need use the controller to select the source with the arrow and enter button.
Which defeat the whole purpose of this setup if I need to get the controller
type: 'custom:mini-media-player'
entity: media_player.epicvu1
name: EpicBravia
artwork: material
background: /local/bravia.jpg
volume_stateless: true
volume_step: '2'
max_volume: '40'
shortcuts:
columns: 4
buttons:
- icon: 'mdi:alphabetical'
type: service
id: braviatv_psk.bravia_open_app
data:
entity_id: media_player.epicvu1
uri: >-
com.abc.abcnews-com.disney.datg.android.androidtv.splash.AbcNewsSplashScreenActivity
- icon: 'mdi:chart-areaspline'
type: service
id: braviatv_psk.bravia_open_app
data:
entity_id: media_player.epicvu1
uri: >-
com.bloomberg.btva-com.digiflare.videa.module.core.activities.StartActivity
- icon: 'mdi:island'
type: service
id: braviatv_psk.bravia_open_app
data:
entity_id: media_player.epicvu1
uri: com.channelnewsasia-sg.mediacorp.cna.activities.MainActivity
- icon: 'mdi:earth'
type: service
id: braviatv_psk.bravia_open_app
data:
entity_id: media_player.epicvu1
uri: net.aljazeera.english-com.aljazeera.tv.Home.MainActivity
- icon: 'mdi:ubuntu'
type: source
id: HDMI 2
- icon: 'mdi:sony-playstation'
type: source
id: HDMI 3 / ARC
- icon: 'mdi:netflix'
type: service
id: braviatv_psk.bravia_open_app
data:
entity_id: media_player.epicvu1
uri: com.netflix.ninja-com.netflix.ninja.MainActivity
hide:
runtime: false
power_state: false
icon_state: false
volume_level: false
scale: '1'
For anyone that does come across this, i managed to work out what it was. Within google home, i had my TV entity using this component from HA called “Livingroom TV” under the room “Living Room”. I also had the inbuilt Google Chromecast entity that is auto discovered by Google Home called “Bravia TV” under the same room Livingroom. For some stupid reason, everytime i asked google to “Turn on the Livingroom TV” it would try to turn on the Bravia TV which was in the room Livingroom even though i had a device called “Livingroom TV”. As soon as i removed the Bravia TV from the room Livingroom, it worked fine
Hello, why I dont have a list of apps/inputs?
this is my config:
artwork: cover
icon: 'mdi:spotify'
type: 'custom:mini-media-player'
entity: media_player.bedroom_bravia
name: Bedroom TV
Thanks.
I manage to map the app to some custom button, see two post above this, need to run some code to get all the app that is install on your android tv iirc, i’m not with my pc now but can help you to check it out when i’m home
Hello everyone.
Is it possible to turn the tv on via home assistant? Cant find anything
media_player.turn_on
Hehe too generic, too simple. Always looked at the integration page and forgot that it’s a media player. Thank you.
Any way to get Program Info from Apps Youtube / Emby / Netflix`?
I might be able to help as the initial curl command didn’t work for me…
Replace [YOUR IP] and let me know if they work…
This is the curl command I used to retrieve the list
curl http://[YOUR IP]/sony/appControl -X POST -H "X-Auth-PSK: 1122" -H "Content-Type: text/plain" -d "{ \"method\": \"getApplicationList\", \"id\": 60, \"params\": [], \"version\": \"1.0\" }"
These are what pulled from my Bravia TV
"title":"Play Store",
"uri":"com.sony.dtv.com.android.vending.com.google.android.finsky.tvmainactivity.TvMainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.android.vending.com.google.android.finsky.tvmainactivity.TvMainActivity.png"
"title":"YouTube",
"uri":"com.sony.dtv.com.google.android.youtube.tv.com.google.android.apps.youtube.tv.activity.ShellActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.google.android.youtube.tv.com.google.android.apps.youtube.tv.activity.ShellActivity.png"
"title":"Album",
"uri":"com.sony.dtv.com.sony.dtv.osat.album.com.sonyericsson.album.MainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.sony.dtv.osat.album.com.sonyericsson.album.MainActivity.png"
"title":"Music",
"uri":"com.sony.dtv.com.sony.dtv.osat.music.com.sonyericsson.music.MusicActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.sony.dtv.osat.music.com.sonyericsson.music.MusicActivity.png"
"title":"Programme Guide",
"uri":"com.sony.dtv.com.sony.dtv.tvx.com.sony.dtv.tvx.MainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.sony.dtv.tvx.com.sony.dtv.tvx.MainActivity.png"
"title":"Prime Video",
"uri":"com.sony.dtv.com.amazon.amazonvideo.livingroom.com.amazon.ignition.IgnitionActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.amazon.amazonvideo.livingroom.com.amazon.ignition.IgnitionActivity.png"
"title":"Play Music",
"uri":"com.sony.dtv.com.google.android.music.com.google.android.music.tv.HomeActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.google.android.music.com.google.android.music.tv.HomeActivity.png"
"title":"Play Games",
"uri":"com.sony.dtv.com.google.android.play.games.com.google.android.apps.play.games.app.atv.features.home.HomeActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.google.android.play.games.com.google.android.apps.play.games.app.atv.features.home.HomeActivity.png"
"title":"Play Movies",
"uri":"com.sony.dtv.com.google.android.videos.com.google.android.videos.tv.presenter.activity.TvLauncherActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.google.android.videos.com.google.android.videos.tv.presenter.activity.TvLauncherActivity.png"
"title":"Netflix",
"uri":"com.sony.dtv.com.netflix.ninja.com.netflix.ninja.MainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.netflix.ninja.com.netflix.ninja.MainActivity.png"
"title":"Internet Browser",
"uri":"com.sony.dtv.com.opera.sdk.example.com.opera.sdk.example.SonyBrowserUiActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.opera.sdk.example.com.opera.sdk.example.SonyBrowserUiActivity.png"
"title":"Video",
"uri":"com.sony.dtv.com.sony.dtv.osat.video.com.sonyericsson.video.browser.BrowserActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.sony.dtv.osat.video.com.sonyericsson.video.browser.BrowserActivity.png"
"title":"PlayStation Video",
"uri":"com.sony.dtv.com.sony.snei.video.hhvu.com.sony.snei.video.hhvu.MainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.sony.snei.video.hhvu.com.sony.snei.video.hhvu.MainActivity.png"
"title":"Screen mirroring",
"uri":"com.sony.dtv.screnmirroring.com.screnmirroring.com.StartScreenMirroringHomeActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.screnmirroring.com.screnmirroring.com.StartScreenMirroringHomeActivity.png"
"title":"Disney+",
"uri":"com.sony.dtv.com.disney.disneyplus.com.bamtechmedia.dominguez.main.MainActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.disney.disneyplus.com.bamtechmedia.dominguez.main.MainActivity.png"
"title":"Facebook Watch",
"uri":"com.sony.dtv.com.facebook.katana.com.facebook.katana.Fb4FireTVLaunchActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.facebook.katana.com.facebook.katana.Fb4FireTVLaunchActivity.png"
"title":"Plex",
"uri":"com.sony.dtv.com.plexapp.android.com.plexapp.plex.activities.SplashActivity",
"icon":"http:\/\/[YOUR IP]\/DIAL\/icon\/com.sony.dtv.com.plexapp.android.com.plexapp.plex.activities.SplashActivity.png"
"title":"BBC iPlayer",
"uri":"com.sony.dtv.sonyselect-abf57f386c9db29b14eb49c980682c99e2745109",
"icon":"https:\/\/images.erabu.sony.tv\/icons\/83c126f3-1b70-4998-997b-101ca052c4a4.png"
"title":"ITV Player",
"uri":"com.sony.dtv.sonyselect-8c998c408126fdc8d132d928b3b3e95231ad0061",
"icon":"https:\/\/images.erabu.sony.tv\/icons\/cf8e5af9-0754-4fa4-bd2d-2cf4a9ad1574.png"
"title":"All 4",
"uri":"com.sony.dtv.sonyselect-89ab1b2b2b64b64b28dda5b4861a11e8fd5cc7a7",
"icon":"https:\/\/images.erabu.sony.tv\/icons\/d28a3c32-f309-4854-b439-b9a90b674ded.png"
"title":"My5",
"uri":"com.sony.dtv.sonyselect-a48f2c50b1ba2a4b5e6c1b95e7dd2a1c6426fa2b",
"icon":"https:\/\/images.erabu.sony.tv\/icons\/ede1b7e8-869f-41a0-88be-62308bd7d1f0.jpg"
"title":"YouView",
"uri":"com.sony.dtv.sonyselect-83b73dc5f2211b1c3f09150fe6d28ae3efd805b7",
"icon":"https:\/\/images.erabu.sony.tv\/icons\/ce958b52-a29f-48b0-9949-f11fd96bc2fe.png"
is there a way where you can force tv to open specific content.
Eg youtube video or google moves movie
Basicly I want to be able to turn kids tv on to a specific move without having to browse content and pressing play.