Feedreader configurable update interval and max entries (#5382)

* new configuration parameters for feedreader

* keep simple and complex configuration examples separate
This commit is contained in:
Malte Franken 2018-05-18 15:25:35 +10:00 committed by Sebastian Muszynski
parent 11cf6f8226
commit a83ba64ef5

View File

@ -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.: