Skip to content

Commit 1241a5d

Browse files
micwballoob
authored andcommitted
RSS feed template documentation (home-assistant#2411)
* RSS feed template documentation * Small fixes * Change release version * Update rss_feed_template.markdown Added missing `the` * Option 'requires_api_password', default is True
1 parent efd24ef commit 1241a5d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
ha_category: Front end
11+
ha_release: 0.43
12+
---
13+
14+
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.
15+
16+
E.g. on android, the app "Simple RSS Widget" can be used to display temperatures on the home screen.
17+
18+
19+
```yaml
20+
# Example configuration.yml entry
21+
rss_feed_template:
22+
garden:
23+
requires_api_password: False
24+
title: "Garden {{ as_timestamp(now())|timestamp_custom('%H:%m', True) }}"
25+
items:
26+
- title: "Outside temperature"
27+
description: "{% if is_state('sensor.temp_outside','unknown') %}---{% else %}{{states.sensor.temp_outside.state}} °C{% endif %}"
28+
```
29+
30+
Configuration variables:
31+
32+
- **requires_api_password:** (*Optional*): If true and an api password is set, the password must be passed via '?api_password=...' parameter (Default: True)
33+
- **feed_id** (*Required*): The key is used as id of the feed. The feed can be accessed at /api/rss_template/feed_id (example: 'garden')
34+
- **title** (*Optional*): The title of the feed, which is parsed as [template](/topics/templating/).
35+
- **items** (*Required*): A list of feed items
36+
- **items/title** (*Optional*): The title of the item, which is parsed as [template](/topics/templating/).
37+
- **items/description** (*Optional*): The description of the item, which is parsed as [template](/topics/templating/).

0 commit comments

Comments
 (0)