mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
parent
ca80944d74
commit
7f704f9cbc
@ -22,6 +22,7 @@ feedreader:
|
|||||||
urls:
|
urls:
|
||||||
- https://home-assistant.io/atom.xml
|
- https://home-assistant.io/atom.xml
|
||||||
- https://github.com/blog.atom
|
- https://github.com/blog.atom
|
||||||
|
- https://hasspodcast.io/feed/podcast
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -48,13 +49,17 @@ automation:
|
|||||||
platform: event
|
platform: event
|
||||||
event_type: feedreader
|
event_type: feedreader
|
||||||
action:
|
action:
|
||||||
service: notify.notify
|
service: persistent_notification.create
|
||||||
data_template: "{{ trigger.event.data.title }}"
|
data_template:
|
||||||
|
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 }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
*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.
|
*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.
|
||||||
|
|
||||||
For more advanced use cases, a custom component registering to the `feedreader` event type could be used instead:
|
For more advanced use cases, a custom component registering to the `feedreader` event type could be used instead:
|
||||||
|
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).
|
||||||
|
|
||||||
```python
|
```python
|
||||||
EVENT_FEEDREADER = "feedreader"
|
EVENT_FEEDREADER = "feedreader"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user