As many of you probably know, Google does not allow you to change the buttons of their chromecast remote. We don’t use Netflix at all, but we use Jellyfin. I just though of it and tested it, but Home assistant allows you to track the chromecast and functionality replace one app with another. Making the button now open the jellyfin app

alias: Replace google chromecast nexflix with whoflix
description: >-
  Google does not allow you to re-map the netflix button, but we can launch
  jellyfin when its trying to launch netflix. And thus effectivly replacing the
  button
triggers:
  - trigger: state
    entity_id:
      - remote.woonkamer_tv
    attribute: current_activity
    to:
      - com.netflix.ninja
conditions: []
actions:
  - action: media_player.play_media
    metadata: {}
    target:
      entity_id: media_player.woonkamer_tv
    data:
      media:
        media_content_id: org.jellyfin.androidtv
        media_content_type: app
mode: single
        • ropatrick@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          23 hours ago

          I have this set up to launch SmartTube instead of YouTube. Its working but there is a 1sec delay during which yhe YouTube screen flashes up. Also theres a looping issue if you use the back button to get out of SmartTube.

          However, nice to have a way to remap the buttons without installing an additional app.

          • JelleWho@lemmy.worldOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            20 hours ago

            Good to hear you got it to work. Our chroma cast is wired in, so that might also hide the delay better maybe?

            If you use the back button and the app stays, check in home assistant what the entity is saying. For me it ended up being two different app names

            • ropatrick@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              13 hours ago

              Yeah maybe so. I’ll have a look at the entity names bit I think the loop.is being caused by something in my code. Will report back!