Hi,
I created, with Feedparser, an entity to receive news from an RSS address. Besides the news itself, I would like to show a QR code with the URL of the news. I tried multiple solutions, but nothing worked as expected.
Version 1 doesn’t show a qr code:
type: custom:config-template-card
variables:
# Verwende den YAML multiline Indikator '>' oder '|' und Quotes
urllink: >
{{ state_attr('sensor.rss_feed_ntv', 'entries')[0].link }}
entities:
- sensor.rss_feed_ntv
card:
type: custom:qr-code-card
source: text
# Stelle sicher, dass die Variable korrekt referenziert wird
text: ${urllink}
Version 2 shows a qr code but the qr code contains the code as string instead of the url.
type: custom:config-template-card
entities:
- sensor.rss_feed_ntv
card:
type: custom:qr-code-card
source: text
# Verwende den YAML multiline Indikator '>' oder '|' und Quotes
text: >
{{ state_attr('sensor.rss_feed_ntv', 'entries')[0].link }}
Can someone help me?