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
    ·
    2 days ago

    Can you share a bit about how you got the names for the Netflix and Jellyfin variables please? My daughter asked me yesterday if we could change the YouTube button to SmartTube! I said I didn’t think it was possible! 👀

    Thanks!

    • JelleWho@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      woonkamer_tv is the chromecast name

      so change the “remote.woonkamer_tv” and “media_player.woonkamer_tv”

      Out current automation has grown, but has been unchanged for a bit. Just posting here in case you have some errors of issues.

      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:
            - media_player.woonkamer_tv_2
          to:
            - com.netflix.ninja
          attribute: app_name
        - trigger: state
          entity_id:
            - media_player.woonkamer_tv
          attribute: app_id
          to:
            - Netflix
      conditions: []
      actions:
        - action: media_player.play_media
          metadata: {}
          target:
            entity_id: media_player.woonkamer_tv_2
          data:
            media:
              media_content_id: org.jellyfin.androidtv
              media_content_type: app
      mode: single
      
      • ropatrick@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Thanks, I understood those names but I was curious about the Netflix and Jellyfin variables com.Netflix.ninja and org.Jellyfin.androidtv. How did you figure out what those were? I’ll need to do the same for YT and SmartTube.

        • JelleWho@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          Switch the TV to the input. And see what the entity says in Home Assistant (either open the entity, oor look in development and then the status)