Skip to content
Discussion options

You must be logged in to vote

The best way to do this is using a script with variables.

The script:

alias: Turn On TV and Open App
sequence:
  - action: remote.turn_on
    metadata: {}
    data:
    target:
      entity_id: remote.lounge_google_tv
  - action: remote.turn_on
    metadata: {}
    data:
      activity: "{{ app }}"
    target:
      entity_id: remote.lounge_google_tv
description: ""

The custom action:

type: button
name: netflix
icon: mdi:netflix
tap_action:
  action: perform-action
  perform_action: script.turn_on
  target:
    entity_id: script.turn_on_tv_and_open_app
  data:
    variables:
      app: netflix://

You can use the default sources lists to get the information needed to open different apps. Y…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Nerwyn
Comment options

You must be logged in to vote
1 reply
@pghattas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants