31 lines
1016 B
YAML
31 lines
1016 B
YAML
# Add this to your configuration.yaml or create a new file in config/packages/
|
|
|
|
# RSS Feed Template for Fox News
|
|
template:
|
|
- sensor:
|
|
- name: "Fox News Breaking"
|
|
state: "{{ states('sensor.fox_news_rss') }}"
|
|
attributes:
|
|
articles: "{{ state_attr('sensor.fox_news_rss', 'articles') }}"
|
|
last_updated: "{{ now() }}"
|
|
|
|
# RSS Feed Platform (requires feedparser or rss_feed_template)
|
|
# Option 1: Using feedparser (install via HACS)
|
|
rss_feed_template:
|
|
fox_news_breaking:
|
|
url: "https://feeds.foxnews.com/foxnews/latest"
|
|
scan_interval: 300 # 5 minutes
|
|
date_format: "%Y-%m-%d %H:%M:%S"
|
|
|
|
# Option 2: Using built-in feedparser (if available)
|
|
# feedparser:
|
|
# fox_news:
|
|
# url: "https://feeds.foxnews.com/foxnews/latest"
|
|
# scan_interval: 300
|
|
|
|
# Alternative Fox News RSS feeds:
|
|
# - https://feeds.foxnews.com/foxnews/most-popular
|
|
# - https://feeds.foxnews.com/foxnews/politics
|
|
# - https://feeds.foxnews.com/foxnews/world
|
|
# - https://feeds.foxnews.com/foxnews/business
|