Feedreader Automation, What Am I Doing Wrong?

I have the Feedreader integration installed, and I’m trying to pull in the RSS feed from here.

https://feeds.feedburner.com/breitbart

I created four helpers as shown in the automation below, but no matter what I try, it shows errors when the feed updates. I am trying to make the automation pick out the pieces from the feed and populate the helpers so I can use the latest headline in the UI.

alias: RSS Update (Breitbart News)
description: ""
trigger:
  - platform: event
    event_type: feedreader
    event_data:
      feed_url: https://feeds.feedburner.com/breitbart
    alias: RSS Feed Updated (Breitbart News)

condition: []

action:
  - alias: Update Helper (RSS Date Breitbart)
    service: input_datetime.set_datetime
    data:
      date: "{{ as_datetime(trigger.event.data.pubDate).date() }}"
      time: "{{ as_datetime(trigger.event.data.pubDate).time() }}"
    target:
      entity_id: input_datetime.rss_breitbart_date

  - alias: Update Helper (RSS Title Breitbart)
    service: input_text.set_value
    data:
      value: "{{ trigger.event.data.title }}"
    target:
      entity_id: input_text.rss_breitbart_title

  - alias: Update Helper (RSS Description Breitbart)
    service: input_text.set_value
    data:
      value: "{{ trigger.event.data.description }}"
    target:
      entity_id: input_text.rss_breitbart_description

  - alias: Update Helper (RSS Link Breitbart)
    service: input_text.set_value
    data:
      value: "{{ trigger.event.data.link }}"
    target:
      entity_id: input_text.rss_breitbart_link

mode: single

What could be wrong? I am not good at programming, but I’ve tried a bunch of different random suggestions I’ve seen, thrown it through ChatGPT, and I just keep getting different errors.

Can someone point me in the right direction, or try to fix this?

Thanks!

Please show us the errors, as a first step

Hold tight, I’ll keep you posted. It’s possible I may not have waited long enough for the feedreader event to happen automatically. I’ll post back after I tinker some more so others can follow along.

:+1:

Good day,

So I waited, and waited, and waited… Every now and then the feed would update, but it’s not showing hardly ANY of the latest headlines. I’m not getting an error about the updating of input helpers anymore (which I use in the UI), but those helpers are not being correctly populated all the time.

For example, here is the automation…

alias: RSS Update (Breitbart News)
description: ""
triggers:
  - event_type: feedreader
    event_data:
      feed_url: https://feeds.feedburner.com/breitbart
    alias: RSS Feed Updated (Breitbart News)
    trigger: event
conditions: []
actions:
  - alias: Update Helper (Breitbart News Date)
    action: input_datetime.set_datetime
    metadata: {}
    data:
      timestamp: >-
        {{ strptime(trigger.event.data.published, '%a, %d %b %Y %H:%M:%S
        %z').timestamp() | int }}
    target:
      entity_id: input_datetime.rss_breitbart_date
    enabled: true
  - action: input_text.set_value
    metadata: {}
    data:
      value: "{{ trigger.event.data.title }}"
    target:
      entity_id: input_text.rss_breitbart_title
    alias: Update Helper (Breitbart News Title)
  - action: input_text.set_value
    metadata: {}
    data:
      value: "{{ trigger.event.data.summary | striptags }}"
    target:
      entity_id: input_text.rss_breitbart_description
    alias: Update Helper (Breitbart News Description)
  - action: input_text.set_value
    metadata: {}
    data:
      value: "{{ trigger.event.data.link }}"
    target:
      entity_id: input_text.rss_breitbart_link
    alias: Update Helper (Breitbart News Link)
mode: single

This seems to run about once an hour. The ABSOLUTE LACK of documentation leads to some claims here and there that the Feedreader event triggers once an hour, some claim when Feedreader detects an update to the feed. Who knows? In my case it’s updating without error about once an hour.

For example, the result in the automation trace says this for updating the description helper…

Executed: April 10, 2025 at 11:00:12 AM
Result:

params:
  domain: input_text
  service: set_value
  service_data:
    value: >-
      Union suspends tariffs against the U.S. in favour of a deal, saying it has
      "taken note" of Trump's pause on every country except China. The post
      European Union Continues to Move Towards Trump Trade Deal with Pause on
      Metals Tariffs appeared first on Breitbart.
    entity_id:
      - input_text.rss_breitbart_description
  target:
    entity_id:
      - input_text.rss_breitbart_description
running_script: false

But there are issues. First, this feed entry might not change for many hours, even though the feed has updated numerous times. My markdown card…

type: markdown
content: >
  **{{ states('input_text.rss_breitbart_title') }}**

  {{ states('input_text.rss_breitbart_description') }}

  _{{ as_timestamp(states('input_datetime.rss_breitbart_date')) |
  timestamp_custom('%-m/%-d/%y @ %-I:%M %p') }}_ • [View Article]({{
  states('input_text.rss_breitbart_link') }})

This entry will get stuck. The markdown card will show this entry, and even though a half dozen updates will occur, the entry in the markdown card will continue to show this one. Refresh does nothing. Then magically, it might update. There’s nothing consistent about it.

Second, I’ve tried both “description” and “summary”, but neither will show the article returned above. The description section of this markdown card just says “unknown”. The helper is not being updated by the automation no matter which I use.

I’ve tried changing the maximum number of feeds, no difference. Sometimes changing the number causes the update of the helpers to finally occur, sometimes not. Sometimes, restarting the integration causes the update, sometimes not.

And of course, I’ve waited… And waited, and waited. Sometimes it updates, sometimes not. The Feedreader will say it detected an update, but the helpers don’t update. It’s like the automation doesn’t detect the event and trigger. I can verify that because the integration will show several “detected an update” messages, but the automation hasn’t run for hours to process them.

So my UI feed card just sits there, showing an entry from six hours ago, and ignoring the 10 new articles which occurred since then… And what’s more frustrating, is the only “documentation” is a video from a guy that doesn’t tell you how to do it, but rather is just a link for us to purchase his blueprint.

Any help would be great.

And for more context, I configured a second feed using the exact same process. THIS ONE does update the description, but has the same issues outlined above. The article shown in the helper is from 12 hours ago. I checked, and there are 17 articles since then. So my UI is showing the “latest news” and missing the 17 things that happened since what it’s showing.

My goal is to configure several feeds, and use markdown cards to show the latest headline at various places in the UI. It’s not going well.

One big issue is the input helper has a maximum length of 255.

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1227
First occurred: 5:04:04 PM (32 occurrences)
Last logged: 9:04:13 PM

Failed to set state for input_text.rss_breitbart_description, fall back to unknown
Failed to set state for input_text.rss_newsmax_description, fall back to unknown
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1227, in _async_write_ha_state
    hass.states.async_set_internal(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        entity_id,
        ^^^^^^^^^^
    ...<5 lines>...
        time_now,
        ^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2363, in async_set_internal
    state = State(
        entity_id,
    ...<8 lines>...
        timestamp,
    )
  File "/usr/src/homeassistant/homeassistant/core.py", line 1807, in __init__
    validate_state(state)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 237, in validate_state
    raise InvalidStateError(
    ...<2 lines>...
    )
homeassistant.exceptions.InvalidStateError: Invalid state with length 262. State max length is 255 characters.