Skip to content

Instantly share code, notes, and snippets.

@roelven
Last active November 4, 2025 12:25
Show Gist options
  • Select an option

  • Save roelven/d12e9d67b6d2845c201b33a0b6d68d1e to your computer and use it in GitHub Desktop.

Select an option

Save roelven/d12e9d67b6d2845c201b33a0b6d68d1e to your computer and use it in GitHub Desktop.
Set up your Samsung Frame TV with correct status tracking in Home Assistant

Set up your Samsung Frame TV with correct status tracking in Home Assistant

  1. Set up your TV + connect it to your LAN
  2. Install the HA Samsung Smartthings integration
    • Make sure to connect it to your Samsung account, so that the integration will automatically provide the auth token in the next step.
    • Read more here
  3. Install ha-samsungtv-smart using HACS
  4. Configure the integration, make sure to turn your TV on as you'll need to approve this on your Frame.
  5. Add the following snippet to your HA configuration.yaml:
    • - platform: template
        sensors:
          frame_tv_mode:
            friendly_name: "Frame TV Mode"
            value_template: >-
              {% set e = 'media_player.the_frame' %}
              {% set s = states(e) %}
              {% set art = state_attr(e, 'art_mode') %}
              {% set art2 = state_attr(e, 'art_mode_status') %}
              {% set src = state_attr(e, 'source') %}
              {% if s in ['off', 'unavailable', 'unknown'] %}
                OFF
              {% elif (art is boolean and art) or (art2 in ['on', True]) or (src in ['Art','Art Mode','art']) %}
                Art mode
              {% else %}
                ON
              {% endif %}
            icon_template: >-
              {% if states('sensor.frame_tv_mode') == 'Art mode' %}mdi:palette
              {% elif states('sensor.frame_tv_mode') == 'ON' %}mdi:television
              {% else %}mdi:power
              {% endif %}
      
  6. Voila! Now you can create automations based on what your TV status is :).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment