I’m looking for a method to get RSS feeds and associated images into Lovelace.
I’ve been using Feedparser with its custom list card, but it inexplicably stopped getting images. I had some luck making another user’s modifications to one of the custom config files, but it only seems to support a single feed.
I see other users having the same type issues, but Feedparser appears to no longer be supported. Are there no other alternatives?
Feedparser Feedreader is a core component and as such supported and maintained in general. I had fixed a few bugs in the past, but I’m not using this component myself anymore. Have you filed a bug report when functionality stopped working?
Edited: Sorry, mixed up a core component (Feedreader) with a custom component (Feedparser).
But from what I understand, Feedreader only puts things on the event bus for automation purposes, such as when a feed is updated, and doesn’t expose the actual feed article or associated images for display on a Lovelace dashboard.
I’m surprised that something that has been around for as long as RSS has, that there is no core component in for this in HA, and that there is only one custom component offering that would allow one to post feeds to the dashboard.
Regardless, I appreciate everyone that took the time to weigh in.
Looks like a general lack of response on both GitHub and the developer’s HA community support forum.
Last developer post on the forum appears to be from early March; GitHub issues extend back to 2019, with one similar to mine submitted in September of this year. Last issue action logged was also from March.
To be fair, I’m not that adept at navigating GitHub, but there are like 30+ forks to this custom component, which to my understanding means 30+ variants. Not quite sure how to determine which, if any, I should be attempting to use…
If you click on the forks you can see what action they have had, it’ll say something like “This repo is 2 commits ahead and 25 commits behind the original.” You can probably guess that the fork was created a while ago and the forker wanted to fix some particular thing.
No, I think it was more like #56 on the GitHub list - no article images. I have one active feed that works, which also retrieves article images, and that’s only because I found and used someone else’s custom code in the forum to replace the .py file in FeedParser’s custom component folder.
If I try to implement a second feed, I get the article, but no images. Have tried other links as well to verify, so it’s not the other RSS feeds that are having issues…
With everything captured, render the contents on a markdown card:
# The Gateway Pundit
---
**{{ states('input_text.news_item_title_tgp') }}**
{{ as_datetime(states('input_datetime.news_item_date_tgp')).strftime('%B %d, %Y %H:%M:%S') }} - [Read More]({{ states('input_text.news_item_link_tgp') }})
 }}) <<<<<<Render the image from the URL
S/O to SmartHomeJunkie, his walkthrough video was a great starting point. I figured out the image part by applying the same logic along with the changed variables tab in the traces feature of the automation.
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘event’
And in Trace TimeLine :
Triggered manually at 2 novembre 2023 à 10:44:28
Appeler le service “Saisie de texte: Définir” sur News Title
Stopped because an error was encountered at 2 novembre 2023 à 10:44:28 (runtime: 0.02 seconds)
I was wondering if this is still working for you? I’ve given up on getting images into Feedparser, and followed along with SmartHomeJunkie’s post on how to use FeedReader, but was disappointed that images weren’t part of the offering.
As far as I can tell, I followed your code to the letter, but I only seem to get the date in.
I’m about to ditch the whole idea that RSS is fully implemented in Home Assistant. Any ideas?
Thank you so much! I did follow the instructional video on feedreader and was wondering if i could add image also this code semmed to work just gotta wait for feed to update to see if it worked as expected.