I am trying to add a button for a local Danish TV channel on the universal-remote-card.
The locale TV channel exists as an app and I have added the app.
The name is: TV2Play
What is the YAML command for button to select the app?
Where can I find the correct name?
Put this into a search engine and there may be answers there.
site:home-assistant.io universal-remote-card.
I have used Google AI for several hours on the subject without any result.
To which TV or media box?
e.g. for apple TV you have to find the media_content_id to launch an app. My Moonfin app launch script:
script:
cinema_apple_tv_moonfin:
sequence:
- action: media_player.play_media
target:
entity_id: media_player.apple_tv_cinema
data:
media_content_type: app
media_content_id: "org.moonfin.app"
Edit: the custom card you are using has a shortcut for this action but you sill need the media_content_id or media_content_type depending on which TV or media player you are using. See “Sources” GitHub - Nerwyn/universal-remote-card: A completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box. · GitHub
The TV is: Sharp 40" Full HD QLED Google TV 40HF3465E
The local app is called: DR (Danmarks Radio TV)
Another local app: Norlys (Norlys play)
The app’s can be choosen on the offical Sharp remote control and reached by a programmable button on the remote control.
Is there a way to find the correct name for the button function
Try custom keys
type: custom:universal-remote-card
remote_id: remote.xxxxx
custom_keys:
drtv:
icon: xxxxx
name: DRTV
service: remote.turn_on
target:
entity_id: remote.xxxxxx
data:
activity: "https://dr.dk"
Provide your card code…
This is the YAML code for the 4 app’s which work fine.
I would like to add the same function for DR (TV) - The app is allready imported and working.
type: custom:android-tv-card
remote_id: remote.stue_sharp_tv
media_player_id: media_player.stue_sharp_tv
rows:
- - null
- null
- power
- null
- null
- - netflix
- youtube
- appletv
- viaplay
Test this
I haven’t used this custom card in a while
type: custom:universal-remote-card
remote_id: remote.stue_sharp_tv
media_player_id: media_player.stue_sharp_tv
custom_actions:
- type: button
name: drtv
icon: mdi:television-play
tap_action:
action: perform-action
perform_action: remote.turn_on
target:
entity_id: remote.stue_sharp_tv
data:
activity: dk.dr.tvplayer
rows:
- - null
- null
- power
- null
- null
- - netflix
- youtube
- appletv
- viaplay
- drtv
