Hi all,
I’m using the awesome GitHub - kalkih/mini-media-player: Minimalistic media card for Home Assistant Lovelace UI custom card to control my brand new Sony Bravia Google TV. I manage it with Android TV integration and I added to the card the shortcuts to open several apps (I found the name basically looking at the Sources list). I’m looking at how to open a specific HDMI input.
Pros:
control with ADB
state with current App name
Cons:
(it seems) no way to switch to HDMI input
no info on current DTV channel you are seeing
I tried the same with Sony TV integration
Pros:
state with current DTV channel
switch to HDMI input source
Cons:
no control with ADB
no state with current App name (just a generic Smart TV)
Do you have any suggestion on how to “merge” the pros of the 2 integrations into the same Card?
I was thinking about a Template with commands to act on one or other entity and the same for the state (taking it from one of them based on input type)… do you see other options pls?
I was able to solve the issue I had and I’m sharing it here if it could be useful for someone with same needs…
The important part is that with mini-media-player shortcuts you can send commands to other services and Sony TV integration offers a Remote integration so combining them together I had what I was looking for:
Using built-in resources I created a Vertical stack card in which I put
Mini-media-player controlling the Android TV with shortcuts to used applications (shortcuts visible only when TV is turned on)
Conditional card (TV turned on) with Markdown showing currently viewed channel (TV channel taken from media_player.sony_tv or Android Application taken from media_player.android_tv
Conditional card (TV turned on) with Buttons acting as remote