home-assistant.io/source/_integrations/feedreader.markdown
2025-04-24 17:27:01 +02:00

3.3 KiB

title, description, ha_category, ha_release, ha_iot_class, ha_domain, ha_config_flow, ha_platforms, ha_integration_type, related, ha_codeowners
title description ha_category ha_release ha_iot_class ha_domain ha_config_flow ha_platforms ha_integration_type related ha_codeowners
Feedreader Instructions on how to integrate RSS feeds into Home Assistant.
Event
Other
0.18 Cloud Polling feedreader true
event
integration
docs title
/common-tasks/general/#defining-a-custom-polling-interval Defining a custom polling interval
@mib1185

Add an RSS/Atom feed reader that polls feeds every hour and sends new entries into the event bus.

{% include integrations/config_flow.md %}

{% configuration_basic %} URL: description: The URL of the RSS/Atom feed you want to integrate. {% endconfiguration_basic %}

{% include integrations/option_flow.md %}

{% configuration_basic %} Maximum feed entries: description: The maximum number of entries to extract from each feed. {% endconfiguration_basic %}

Usage

Automation

Feedreader events can be used out of the box to {% term trigger %} automation actions, e.g.:

automation:
  - alias: "Trigger action when new element(s) in RSS feed"
    triggers:
      - trigger: event
        event_type: feedreader
    actions:
      - action: script.turn_on
        target:
          entity_id: script.my_action

{% raw %}

automation:
  - alias: "Send notification of RSS feed title when updated"
    triggers:
      - trigger: event
        event_type: feedreader
        event_data:
          feed_url: "https://hasspodcast.io/feed/podcast"
    actions:
      - action: persistent_notification.create
        data:
          title: "New HA Podcast available"
          message: "New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
          notification_id: "{{ trigger.event.data.title }}"

{% endraw %}

The trigger.event.data variable contains at least the following keys, there might be more depending on the data the configured feed is providing.

Key Description
trigger.event.data.link The URL to this feed entry.
trigger.event.data.title The title of this feed entry.
trigger.event.data.description The description of this feed entry.
trigger.event.data.content The content of this feed entry.

Event entity

An {% term "Event entity" %} entity will be created for each configured feed which always represents the latest entry of the feed.

Video tutorial

This video tutorial explains how to set up the feedreader and show a list of news feed items on your dashboard in Home Assistant.

Event listener

For more advanced use cases, a custom integration registering to the feedreader {% term Event %} type could be used instead:

EVENT_FEEDREADER = "feedreader"
hass.bus.listen(EVENT_FEEDREADER, event_listener)

To get started developing custom integrations, please refer to the developers documentation

Other examples

For a drop in packaged complete example of Feedreader, you can use the PodCast notifier.

Remove the integration

{% include integrations/remove_device_service.md %}