Control Samsung TV application (Netflix, Youtube)

I am trying to integrate my Samsung TV (model UA65CU7000UXZN UHD) with Home Assistant to control it and launch apps like Netflix. I have followed several methods, including using the SamsungTV Custom integration and the SmartThings integration, but I am facing issues with executing commands to launch apps.

Steps Taken:

  1. Installed SamsungTV Custom Integration:
  • Installed via HACS (Home Assistant Community Store).
  • Configured the integration with the IP address of my TV and a SmartThings personal access token.
  1. Created a Script to Launch Netflix:
  • Added the following script in scripts.yaml:
select_netflix_on_samsung_tv:
  alias: Select Netflix on Samsung TV
  sequence:
    - action: media_player.play_media
      target:
        entity_id: media_player.samsung_tv
      data:
        media_content_id: "11101200001"  # Netflix App ID
        media_content_type: "app"
  1. Added a Picture Card to Lovelace Dashboard:
  • Configured a picture card to call the script when tapped:
views:
  - title: Media
    cards:
      - type: grid
        cards:
          - type: picture
            image: /local/netflix.png
            tap_action:
              action: call-service
              service: script.select_netflix_on_samsung_tv
              service_data: {}
            hold_action:
              action: call-service
              service: script.select_netflix_on_samsung_tv
              service_data: {}
  1. Tested the Script:
  • Manually called the script from Developer Tools > Services, but the TV did not respond as expected.

Issues Encountered:

  • The script runs without errors, but the TV does not launch Netflix.
  • Checked Home Assistant logs and found no relevant errors.
  • Verified the app ID for Netflix (11101200001) and confirmed it should be correct for Samsung Tizen TVs.

Additional Information:

  • I also tried using the SmartThings integration to send commands, but faced similar issues.
  • The TV is correctly integrated and recognized by Home Assistant.
  • Other commands like volume control work, but launching apps does not.

Request:

I am seeking help to troubleshoot and resolve this issue. Any guidance on correctly configuring the script or alternative methods to launch apps on my Samsung TV through Home Assistant would be greatly appreciated.

Device Info:
MN : UA65CU7000UXZN
PD : 2/21/2024
FW : T-KSU2ECUABC-2003.0

I’ve been successful using a little different method using the media player command as the tap action on a button on my dashboard. Below is the code for the custom button. This link could also provide you with some additional info: [Samsung Smart TV - Home Assistant]

I hope this helps…

        show_entity_picture: true
        show_name: false
        name: Netflix 
        entity_picture: /local/images/streaming_logos/netflix1.png
        type: custom:button-card
        tap_action:
          action: perform-action
          perform_action: media_player.select_source
          target:
            entity_id: media_player.samsung_8_series_65
          data:
            source: Netflix
        entity: media_player.samsung_8_series_65
        show_state: false
        styles:
          card:
            - padding: 8px
            - border-radius: 7px
          entity_picture:
            - height: null
            - width: 90%