From 5493d33fea6ffe01de253630db3007657657e617 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Tue, 13 Dec 2016 14:34:16 -0500 Subject: [PATCH] Update feedreader.markdown Added additional example of feedreader automation to explain how to access data form the feed in the automation. --- source/_components/feedreader.markdown | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/_components/feedreader.markdown b/source/_components/feedreader.markdown index 099474692a4..b1eee59e2ad 100644 --- a/source/_components/feedreader.markdown +++ b/source/_components/feedreader.markdown @@ -41,6 +41,19 @@ automation: entity_id: script.my_action ``` +```yaml +automation: + - alias: Send notification of RSS feed title when updated + trigger: + platform: event + event_type: feedreader + action: + service: notify.notify + data_template: "{{ trigger.event.data.title }}" +``` + +*Any field under the `` tag in the feed can be used for example `tigger.event.data.content` will get the body of the feed entry. + For more advanced use cases, a custom component registering to the `feedreader` event type could be used instead: ```python