Skip to content

Commit 0a1fe59

Browse files
committed
RSS feed template documentation
1 parent 335b8ff commit 0a1fe59

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: page
3+
title: "RSS feed template"
4+
description: "Instructions how to setup an RSS feed for sensor information and other."
5+
date: 2017-04-11 20:42
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
---
11+
12+
The `rss_feed_template` component can export any information from Home Assistant as static RSS feed. This can be used to display those information on several devices using RSS readers. While native apps for Home Assistant are not widely available, native RSS readers exists for almost any platform.
13+
14+
E.g. on android, the app "Simple RSS Widget" can be used to display temperatures on home screen.
15+
16+
17+
```yaml
18+
# Example configuration.yml entry
19+
rss_feed_template:
20+
garden:
21+
title: "Garden {{ as_timestamp(now())|timestamp_custom('%H:%m', True) }}"
22+
items:
23+
- title: "Outside temperature"
24+
description: "{% if is_state('sensor.temp_outside','unknown') %}---{% else %}{{states.sensor.temp_outside.state}} °C{% endif %}"
25+
```
26+
27+
Configuration variables:
28+
29+
- **feed_id** (*Required*): The key is used as id of the feed. The feed can be accessed at /api/rss/feed_id (example: 'garden')
30+
- **title** (*Optional*): The title of the feed, which is parsed as [template](/topics/templating/).
31+
- **items** (*Required*): A list of feed items
32+
- **items/title** (*Optional*): The title of the item, which is parsed as [template](/topics/templating/).
33+
- **items/description** (*Optional*): The description of the item, which is parsed as [template](/topics/templating/).

0 commit comments

Comments
 (0)