📰 Lovelace: RSS Feed Parser Plugin/List Card

I have trakt.tv VIP account that has an RSS feed. I have a trakt component as well that doesn’t require a VIP account, but doesn’t provide as much information, unfortunately

thanks, I was hoping its the sonarr’s calendar rss feed lol

There’s a sonar upcoming media component already: https://github.com/custom-components/sensor.sonarr_upcoming_media

Yes, thanks. After I replied to you I did a quick search and found it.
thanks again

1 Like

I’m thinking about extending this or create a specialized one that will feed into the upcoming media card

Does this work on Hassio lovelace?

I can’t think of any component that doesn’t work with all installations of home assistant, this one is no exception.

1 Like

FYI, I do have a trakt component now if you’re still looking https://github.com/custom-components/sensor.trakt

I’m trying to get this espn rss feed up and running http://www.espn.com/espn/rss/news. I’ve been mostly successful except the images from the feed are not being pulled into the sensor. I see there is a reference in the thread to the images not being pulled so I assume this wasn’t fixed? I have no inclusions or exclusions selected so it should be returning everything.

This is an example of what is being pulled for one story. The images are included in the rss feed but don’t appear in the sensor.

Sources: Teams told AB trade likely by Friday: {
  "title": "Sources: Teams told AB trade likely by Friday",
  "title_detail": {
    "type": "text/plain",
    "language": null,
    "base": "http://www.espn.com/espn/rss/news",
    "value": "Sources: Teams told AB trade likely by Friday"
  },
  "summary": "Teams that have talked to the Steelers about acquiring Antonio Brown have been told by Pittsburgh that a deal is expected to be in place by Friday, sources tell ESPN's Adam Schefter.",
  "summary_detail": {
    "type": "text/html",
    "language": null,
    "base": "http://www.espn.com/espn/rss/news",
    "value": "Teams that have talked to the Steelers about acquiring Antonio Brown have been told by Pittsburgh that a deal is expected to be in place by Friday, sources tell ESPN's Adam Schefter."
  },
  "links": [
    {
      "rel": "alternate",
      "type": "text/html",
      "href": "http://www.espn.com/nfl/story/_/id/26149941/teams-told-ab-trade-likely-friday"
    }
  ],
  "link": "http://www.espn.com/nfl/story/_/id/26149941/teams-told-ab-trade-likely-friday",
  "published": "Wed, Mar 06 09:16 AM",
  "id": "26149941",
  "guidislink": false
}

Yeah, it appears to be something upstream with feedparser. I haven’t put in much effort into debugging it beyond that. If you setup a log statement on the parsedFeed here

https://github.com/custom-components/sensor.feedparser/blob/master/custom_components/feedparser/sensor.py#L63

You’ll see that none of the image fields are preserved. I believe that is because image is not in the RSS spec and not listed in the feedparser docs https://pythonhosted.org/feedparser/reference.html

I found this in the documentation. I assume it’s not what is needed?

https://pythonhosted.org/feedparser/reference-feed-image.html

Add that log and you’ll see that the feed image is parsed, but you’re trying to get the enities image.

Ah. I understand now. I was hoping to create a page inside of home assistant that has all the feeds I like to read in one place with the images. This gets me mostly there. Thanks for answering.

Yeah, not sure why it is so strict

I see there is some reference in prior posts to changing the scan interval of the sensor. If I wanted to make it every 10 minutes would Exactly should I change?

Look at this line

SCAN_INTERVAL = timedelta(minutes=10)

Thanks for this, i am using it with my local Fuel Watch to get the fuel prices in my area
Screenshot_1

I am new too using RSS feeds like this but on my way to work this morning i was checking the website for fuel prices and thought ‘i wonder if i can just put this in to homeassistant’ and sure enough you have solved my problem :smiley:

If anybody was wondering how to find what things they can add under inclusions just open your RSS feed in a web browser and look for the things in “<>” like etc
I thought that might help as i was wondering the same thing at first
Thanks again

4 Likes

Thanks! Would you be cool with updating the Readme on the repo with a PR with some details on what you think is the easiest way to find inclusions?

1 Like

can you show your sensor setup for this ?

Lee from WA

@krakupkiwi, I would like to know how you did this too

Do you have an account with fuelwatch, using a third party supply or are you using a public login?

edit: do you usse an RSS call something like: https://www.fuelwatch.wa.gov.au/fuelwatch/fuelWatchRSS?Product=1&Suburb=Duncraig

sharing your config would be very helpful!

Phil from WA.