šŸ“° Lovelace: RSS Feed Parser Plugin/List Card

I donā€™t understand what you mean by ā€˜zeroth indexā€™.

The sensor has no attributes ie. plus and I think there is something wrong with the config as I dont get the picture and other elements

This is my config

  - platform: feedparser
    name: HLN
    feed_url: 'https://www.hln.be/nieuws/rss.xml'
    date_format: '%a, %b %d %I:%M %p'
    inclusions:
      - title
      - id
      - summary
      - updated
      - media

this is the output
image

what I would like to see is something like this with attributes that are usable:

Iā€™m not a dev, just trying to understand the capabilities of your component and provide some feedback for more improvement.

I canā€™t test right now, but you should be able to do something like this

[sensor.hln.attributes[0].title]

in the useful-markdown-card

Tried does not work, I assume because of missing attributes in the sensor or not support by useful-markdown-card.

Attributes is a list as you see in your screenshot

this is what I get as error when used in the custom markdown card
[[ Template matching failed: sensor.hln.attributes[0].title ]]

That might be a limitation of the card. Feedparser is actually broken for me right now due to an upstream issue in Python 3.7 and havenā€™t taken the time to downgrade to 3.6, so canā€™t play around with this, unfortunately.

However, what should work for sure is my config-template-card and the regular markdown-card. Youā€™d do something like this:

type: 'custom:config-template-card'
variables:
  - states['sensor.hln'].attributes[0]
entities:
  - sensor.hln
card:
  type: markdown
  content: "${vars[0].title}"

Great job with both the sensor and the card. I would really like to use this for managing my favorite podcasts in home assistant. I am thinking of using the sensor against the rss-feed for the podcast, which contains all the info required, including the url to the media. Furthermore it would then be really cool if I could just click the row with the podcast I want to hear, and it would play on one of my media players configured in home assistant.

Have you considered implementing functionality for triggering hass services when one of the rows are clicked? I can imagine quite a few use cases where that would enable some cool features.

Regards
Henrik

You might be interested in my podcast-card instead

1 Like

Thanks for the suggestion iantrich. I have actually had a look at the podcast-card, which looks very nice. My understanding is that the podcastcard is limited to gPodder? Quite a few of the podcasts I am interested in are not available on gPodder.

Do you have any plans for supporting other sources for the podcast-card in the future?

Only other one that Iā€™m aware that is open is Plex that I hope to eventually add once I find the time.

Iā€™m going to give this a try when I get homeā€¦

I cant seem to parse out the data from a feed,

The feed is: https://www.ozbargain.com.au/deals/feed

My config is:

- platform: feedparser
  name: Ozbargain
  feed_url: 'https://www.ozbargain.com.au/deals/feed'
  inclusions:
    - title
    - link
    - category
    - pubDate
    - media

But all I get is:

the title and linkā€¦ and it doesnt show when using the card, as configured:

type: 'custom:list-card'
entity: sensor.ozbargain
title: Ozbargain
columns:
  - title: ''
    type: image
    add_link: link
    field: image
  - title: Title
    field: title
    style:
      - white-space: nowrap
  - title: Description
    field: description

(The card shows NO data)

testing the feed on an online parser returns a result that seems to me to indicate that the feed is valid and SHOULD workā€¦

Would appreciate any help in getting this going :slight_smile:

Thanks for making the component :slight_smile:
Can you advise how to get any data out of the sensor ā€¦

{{states['sensor.bbc_news_feed'].attributes[0]}}

Iā€™ve tried this in the template editor and while it doesnā€™t error it doesnā€™t display anything eitherā€¦

This is my sensor dataā€¦

I donā€™t really know jinja well, but the data is a json object, not a list. I remember going back and forth on how to store the data and looking back a list would make more sense. PR welcome :slight_smile:

Hi, nice parser!

Can you help me with the config? I cannot get the pubDate from this feed:
https://www.apkmirror.com/apk/google-inc/android-auto/feed/

And can you help me using regex ?
I want to find and replace ā€œGoogle Maps, Media & Messaging and by Google LLCā€ to itā€™ll strip that text.
Only thing I found was something like ā€œstring|regex_replace(find=ā€™ā€™, replace=ā€™ā€™, ignorecase=False)ā€ but I cannot get that to work, see https://www.home-assistant.io/docs/configuration/templating/#regular-expressions.

Thanks man!

Hi There,

Having issues setting up my first card. I am using the list-card plugin and it seems to be working fine for txt and links but having issues with images. I donā€™t have a lot of CSS style experience and canā€™t work out how to resize my image. I am trying to set up a Netflix card like the example given below.

Image size way to large and canā€™t reduce it

Feed seems to be working fine

Are you able to post your lovelace code for the below example for me to take a look at please

Thanks Nick

I donā€™t use these anymore, actually :slight_smile: I created a component for trakt and feed that into the upcoming-media-card

Thanks. I donā€™t have this up and running on my machine any longer, hopefully someone else in the community has some insight.

This works under Templates:

{{ state_attr(ā€˜sensor.feedparser_android_autoā€™, ā€œAndroid Auto - Google Maps, Media & Messaging 4.4.5923 by Google LLCā€)|regex_replace(find=ā€™- Google Maps, Media & Messaging ā€˜, replace=ā€™ā€™, ignorecase=False)|regex_replace(find=ā€™ by Google LLCā€™, replace=ā€™ā€™, ignorecase=False) }}

Hope somebody can help me out, thnx!

Version 0.0.8 Released:

Warning: This is a breaking change for the https://github.com/custom-cards/list-card
I donā€™t have an expected date on when Iā€™ll get around to fixing it. If youā€™re using the list-card, do not upgrade to 0.0.8 for now.

  • Preserve timezone information
  • Display entries in a list instead of an object for easier use in templates