Skip to content

Instantly share code, notes, and snippets.

@MichaelMKKelly
Last active April 11, 2025 17:50
Show Gist options
  • Select an option

  • Save MichaelMKKelly/86731c02de82ad1891ca515548e7baa7 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelMKKelly/86731c02de82ad1891ca515548e7baa7 to your computer and use it in GitHub Desktop.
Feedreader Example

Example of using Feedreader Integration to display recent news on dashboard

First add the feed you want using the UI

image

and enter your feed URL

image

to be sure to only get the latest news item configure the integration

image

and set to 1 entry

image

now you want to set up some text helpers to hold the data

image

image

ENSURE THEY ARE SET TO A MAX LENGTH OF 255

you should make one for:

RSS Title

RSS Description

RSS Link

RSS Date

now we need to fill these with data from the integration when new news arrives by triggering on the event

example automation:

alias: RSS Feed Reader
description: ""
triggers:
  - trigger: event
    event_type: feedreader
    event_data:
      feed_url: https://newsletter.openhomefoundation.org/rss/
conditions: []
actions:
  - action: input_text.set_value
    metadata: {}
    data:
      value: " {{ trigger.event.data.title }} "
    target:
      entity_id: input_text.rss_title
  - action: input_text.set_value
    metadata: {}
    data:
      value: " {{ trigger.event.data.description }} "
    target:
      entity_id: input_text.rss_description
  - action: input_text.set_value
    metadata: {}
    data:
      value: " {{ trigger.event.data.link }} "
    target:
      entity_id: input_text.rss_link
  - action: input_text.set_value
    metadata: {}
    data:
      value: " {{ trigger.event.data.published }} "
    target:
      entity_id: input_text.rss_date
mode: single

you should change the URL to match your feeds URL and update the helper entities as needed to point to where you want the data.

now you can create a markdown card on your dashbaord to display the information from the feed

example card:

type: markdown
content: |-
  ## {{states('input_text.rss_title')}}
  ### {{states('input_text.rss_description')}}
   {{states('input_text.rss_link')}}
   
   {{states('input_text.rss_date')}}
title: Latest From The Open Home Foundation

should look like this:

image

if it is currently showing no data you can either wait for the next RSS announce or you can reload the integration to force it to grab the most recent news item

@wormuths
Copy link

I'd be happy just having it input the date/time from when it was updated, as in, when the feed was entered into the helper. Basically, the time I added the headline, rather than the exact second it was published. Exact doesn't matter to me (might for some), as it's just a general guideline...

But this integration IS seriously lacking. Changing the number of feeds isn't making a difference. Once again, nothing is downloading for me. I thought it was because the feeds were set to "1", so I changed it to "2". It's made no difference, and nothing is updating because the integration says it isn't detecting anything.

Screenshot_20250411_132005

Screenshot_20250411_132101

The last update happened around midnight last night, and now it no longer updates. Last time this required a restart to fix. There are no errors in the logs, and what's worse, there is NO WAY to disable system polling and use an automation to fire the "feedreader" event on a defined schedule to force it. If it stops, it just stops. No warning, nothing...

I'm setting back to one feed, and restarting. I'll see how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment