Weblink (url) templating doesn't work

Hello. I’m trying to add a link to the latest release notes in an entities card. But the URL doesn’t point to the right URL in the browser.

Screenshot 2021-09-09 at 16.48.35

When I check {{ states.binary_sensor.updater.attributes.release_notes }} in Developer Tools I get the URL I want: https://www.home-assistant.io/blog/2021/09/01/release-20219/
I tried a lot of variations with data-template and value-template it didn’t fix the issue. Any tips?


type: entities
entities:
  - entity: sensor.local_version
    name: HA installed version
  - entity: binary_sensor.updater
    name: HA Updates
    type: custom:secondaryinfo-entity-row
    secondary_info: >-
      Newest Version:{% if states('sensor.latest_version_available') !=
      'sensor.local_version' %} {{states('sensor.latest_version_available')}} {%
      else %} {% endif %}
  - type: weblink
    name: Latest release notes
    url: '{{ states.binary_sensor.updater.attributes.release_notes }}'
  - entity: sensor.hacs
show_header_toggle: false
state_color: true
title: Home Assistant

Is there a special reason for not using a hardcoded weblink like https://github.com/home-assistant/core/releases?

:joy: Didn’t think of that solution. :+1:

Ah, ok. I was irritated e only thing I thought was: Wow, he must mean a very special scenario :smile: