From a83ba64ef5e2365fb3b8b45236d0ccd855a3f951 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Fri, 18 May 2018 15:25:35 +1000 Subject: [PATCH] Feedreader configurable update interval and max entries (#5382) * new configuration parameters for feedreader * keep simple and complex configuration examples separate --- source/_components/feedreader.markdown | 31 ++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/source/_components/feedreader.markdown b/source/_components/feedreader.markdown index 5a06cd41712..b5a6b9b3ea5 100644 --- a/source/_components/feedreader.markdown +++ b/source/_components/feedreader.markdown @@ -25,9 +25,36 @@ feedreader: - https://hasspodcast.io/feed/podcast ``` -Configuration variables: +{% configuration %} + urls: + description: List of URLS for your feeds. + required: true + type: list + scan_interval: + description: Defines the update interval of the feeds. + required: false + default: 1 hour + type: interval + max_entries: + description: The maximum number of entries to extract from each feed. + required: false + default: 20 + type: int +{% endconfiguration %} -- **urls** (*Required*): List of URLS for your feeds. +The following configuration example shows how to configure update interval and maximum number of entries: + +```yaml +# Example configuration.yaml entry with optional parameters +feedreader: + urls: + - https://www.home-assistant.io/atom.xml + - https://github.com/blog.atom + - https://hasspodcast.io/feed/podcast + scan_interval: + minutes: 30 + max_entries: 5 +``` Feedreader events can be used out of the box to trigger automation actions, e.g.: