Skip to content

Commit 7f704f9

Browse files
Carlo Costanzofabaff
Carlo Costanzo
authored andcommitted
Add more examples. (home-assistant#2979)
Closes #home-assistant#2687
1 parent ca80944 commit 7f704f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/_components/feedreader.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ feedreader:
2222
urls:
2323
- https://home-assistant.io/atom.xml
2424
- https://github.com/blog.atom
25+
- https://hasspodcast.io/feed/podcast
2526
```
2627
2728
Configuration variables:
@@ -48,13 +49,17 @@ automation:
4849
platform: event
4950
event_type: feedreader
5051
action:
51-
service: notify.notify
52-
data_template: "{{ trigger.event.data.title }}"
52+
service: persistent_notification.create
53+
data_template:
54+
title: "New HA Podcast available"
55+
message: "New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
56+
notification_id: "{{ trigger.event.data.title }}"
5357
```
5458
5559
*Any field under the `<entry>` tag in the feed can be used for example `trigger.event.data.content` will get the body of the feed entry.
5660

5761
For more advanced use cases, a custom component registering to the `feedreader` event type could be used instead:
62+
For a drop in packaged complete example of Feedreader, you can use the [PodCast notifier](https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/hasspodcast.yaml).
5863

5964
```python
6065
EVENT_FEEDREADER = "feedreader"

0 commit comments

Comments
 (0)